wxHyperTextMapping: wxList

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

=1=10mm void wxHyperTextMapping(void)

Constructor.

wxHyperTextMapping::∼wxHyperTextMapping

=1=10mm void ∼wxHyperTextMapping(void)

Destructor.

wxHyperTextMapping::AddMapping

=1=10mm void AddMapping(intblockType, inttextSize, inttextFamily, inttextStyle,
inttextWeight, char *textColour, char *name, intattribute = -1,
intvisibility = 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

=1=10mm void ClearMapping(void)

Deletes all members of the mapping list.

wxHyperTextMapping::FindByName

=1=10mm void FindByName(char *name)

Finds a mapping structure by name.

wxHyperTextMapping::GetMapping

=1=10mm Bool GetMapping(int 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.