ToolMap
|
This class contains information for every Window node to be added. More...
#include <wxTreeMultiCtrl.h>
Public Member Functions | |
wxTreeMultiWindowInfo (int flags, int frontSpacing, int topSpacing) | |
int | Indent (int num=1) |
int | Outdent (int num=1) |
void | SetFrontSpacing (int frontSpacing) |
int | GetFrontSpacing () const |
void | SetTopSpacing (int topSpacing) |
int | GetTopSpacing () const |
int | SetFlags (int flags) |
int | GetFlags () const |
int | AddFlag (int flag_mask) |
int | RemoveFlag (int flag_mask) |
This class contains information for every Window node to be added.
This class can be used to modify the behaviour of the Window node to be added, and can be reused to pass along upon every wxTreeMultiCtrl::AppendWindow call. For example:
The class is created to prevent long parameter lists in the functions. Other ways to manipulate a newly added Window node are;
|
inline |
Or's the given flag with the current flagset, and adds it. The old flag set is returned before the OR is applied.
|
inline |
Gets the current flags set.
|
inline |
Gets front spacing. This will return the current indent level set. If Indent or Outdent is used, this level represents the current Indent level.
|
inline |
Adds indent to original front spacing and increments it with that value (quick extra indent). The original value of FrontSpacing (see SetFrontSpacing() gets indented by multiplying the 'num' factor (default = 1) times the indent value. So if the FrontSpacing was set to 10, and Indent(2) is called, the new indent will be 30. (10 + 2 * 10). The original FrontSpacing value is remembered, so calling Outdent(2) will bring it back to 10 (30 - (2*10). Calling SetFrontSpacing with a new value, deletes the old indent.
|
inline |
Reduces indent a number of times, by subtracting 'num' times the original FrontSpacing value from the current FrontSpacing value (quick extra indent). Thus if the original FrontSpacing was set to 10, and the current indent value is 40, Outdent(2) will do 40 - (2 * 10) = 20
|
inline |
And's the given flag in a negated manner and removes this flag set from the current flags. The old flag set is returned.
|
inline |
Sets the current flags set, and returns previous flags state.
|
inline |
Sets FrontSpacing value. This also resets the current indent level.
|
inline |
Sets top spacing. This means the number of pixels spacing between the last node and the next one to be added.