An object of this class stores a list of block mapping structures. The programmer needs to call wxHyperTextWindow::SetMapping with an object of this class, to specify how blocks are interpreted; several instances of wxHyperTextWindow could make use of the same wxHyperTextMapping.
wxHyperTextMapping::wxHyperTextMapping
voidwxHyperTextMapping
Constructor.
wxHyperTextMapping::wxHyperTextMapping
voidwxHyperTextMapping
Destructor.
wxHyperTextMapping::AddMapping
voidAddMappingint blockType, int textSize, int textFamily, int textStyle,
int textWeight, char * textColour, char *name, int attribute = -1,
int visibility = TRUE
Adds a mapping for a block type. blockType must be unique, and any parameters which have the default value (-1 for integers, NULL for strings) will be instantiated according to the context of the block. That is, if a block is nested with another block, the outer block's characteristics are used to fill in the default values.
See wxhelp.cc for examples.
wxHyperTextMapping::ClearMapping
voidClearMapping
Deletes all members of the mapping list.
wxHyperTextMapping::FindByName
voidFindByNamechar *name
Finds a mapping structure by name.
wxHyperTextMapping::GetMapping
BoolGetMappingint blockType, int * textSize, int *textFamily, int *textStyle,
int *textWeight, char **textColour, char **name, int *attribute,
int *visibility
Gets mapping values for a given block, returning FALSE if not found.