#include <HImHideOverlappedText.h>
Static Public Member Functions | |
static void | FilterOff () |
static void | FilterOn () |
static bool | IsFilterOn () |
static void | RegisterCallbacks () |
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
static void HImHideOverlappedText::FilterOff | ( | ) | [static] |
This method disables the processing of overlapped text. Call this from within an open driver segment.
static void HImHideOverlappedText::FilterOn | ( | ) | [static] |
This method enables the processing of overlapped text. Call this from within an open driver segment.
static bool HImHideOverlappedText::IsFilterOn | ( | ) | [static] |
static void HImHideOverlappedText::RegisterCallbacks | ( | ) | [static] |
This method sets up callbacks that will be used to intercept and draw text.