HImHideOverlappedText Class Reference

#include <HImHideOverlappedText.h>

Static Public Member Functions

static void FilterOff ()
 
static void FilterOn ()
 
static bool IsFilterOn ()
 
static void RegisterCallbacks ()
 

Detailed Description

HImHideOverlappedText is a class for "hidden text" mode. The idea is to have text obscure other text but not geometry. The requirement that it not obscure other geometry precludes a simple rectangle inserted behind the text, and pushes us into this more sophisticated mechanism.
The first step is that we set an IM callback to intercept all text drawing and store all such calls into a linked list during the normal update. At the end of the update, we z-sort everything and insert the text calls into a quad tree to resolve what text should be drawn with as few comparisons as possible.

This class is a filter that can be turned of and on per driver segment to use call FilterOn and FilterOff from a open driver segment

Member Function Documentation

◆ FilterOff()

static void HImHideOverlappedText::FilterOff ( )
static

This method disables the processing of overlapped text. Call this from within an open driver segment.

◆ FilterOn()

static void HImHideOverlappedText::FilterOn ( )
static

This method enables the processing of overlapped text. Call this from within an open driver segment.

◆ IsFilterOn()

static bool HImHideOverlappedText::IsFilterOn ( )
static
Returns
True if hide overlapped text is on or false if otherwise.

◆ RegisterCallbacks()

static void HImHideOverlappedText::RegisterCallbacks ( )
static

This method sets up callbacks that will be used to intercept and draw text.


The documentation for this class was generated from the following file: