A simple class which holds information about UltimateListItem
visual
attributes for the header/footer items (client rectangles, positions, etc…).
Default class constructor. |
|
Checks/unchecks a header item. |
|
Checks/unchecks a footer item. |
|
Returns the custom renderer associated with this item (if any). |
|
Returns the header/footer item font. |
|
Returns the footer item format. |
|
Returns a Python list with the zero-based indexes of the images associated |
|
Returns the footer item kind. |
|
Returns the header item format. |
|
Returns a Python list with the zero-based indexes of the images associated |
|
Returns information about the item. |
|
Returns the header item kind. |
|
Returns a bit field representing the state of the item. |
|
Returns the header/footer item text. |
|
Returns the header/footer item tooltip. |
|
Returns the header/footer item width, in pixels. |
|
Returns |
|
Returns |
|
Returns |
|
Initializes the header/footer item. |
|
Returns whether the header item is checked or not. |
|
Returns whether the footer item is checked or not. |
|
Returns |
|
Associate a custom renderer to this item. |
|
Sets a new font for the header item. |
|
Sets a new font for the footer item. |
|
Sets the footer item format. |
|
Sets the footer item kind. |
|
Sets the header item format. |
|
Sets the header/footer item height, in pixels. |
|
Sets information about the header/footer item. |
|
Sets the header item kind. |
|
Sets the header/footer item position. |
|
Sets the item state flags. |
|
Sets the header/footer item text. |
|
Sets the header/footer item tooltip. |
|
Sets the header/footer item width, in pixels. |
UltimateListHeaderData
(object)¶A simple class which holds information about UltimateListItem
visual
attributes for the header/footer items (client rectangles, positions, etc…).
__init__
(self, item=None)¶Default class constructor.
item – another instance of UltimateListHeaderData
.
Check
(self, checked=True)¶Checks/unchecks a header item.
checked – True
to check an item, False
to uncheck it.
Note
This method is meaningful only for check and radio header items.
Checks/unchecks a footer item.
checked – True
to check an item, False
to uncheck it.
Note
This method is meaningful only for check and radio footer items.
GetCustomRenderer
(self)¶Returns the custom renderer associated with this item (if any).
GetFont
(self)¶Returns the header/footer item font.
Returns the footer item format.
Returns a Python list with the zero-based indexes of the images associated with the footer item into the image list.
Returns the footer item kind.
See also
SetKind
for a list of valid item kinds.
GetFormat
(self)¶Returns the header item format.
GetImage
(self)¶Returns a Python list with the zero-based indexes of the images associated with the header item into the image list.
GetItem
(self, item)¶Returns information about the item.
item – an instance of UltimateListHeaderData
.
GetState
(self)¶Returns a bit field representing the state of the item.
See also
SetState
for a list of valid item states.
GetText
(self)¶Returns the header/footer item text.
GetToolTip
(self)¶Returns the header/footer item tooltip.
GetWidth
(self)¶Returns the header/footer item width, in pixels.
Returns True
if the footer item has at least one image associated
with it.
HasImage
(self)¶Returns True
if the header item has at least one image associated
with it.
HasText
(self)¶Returns True
if the currently set text colour is valid.
Init
(self)¶Initializes the header/footer item.
IsChecked
(self)¶Returns whether the header item is checked or not.
Returns whether the footer item is checked or not.
IsHit
(self, x, y)¶Returns True
if the input position is inside the item client rectangle.
x – the x mouse position;
y – the y mouse position.
SetCustomRenderer
(self, renderer)¶Associate a custom renderer to this item.
renderer – a class able to correctly render the item.
Note
the renderer class must implement the methods DrawHeaderButton and GetForegroundColor.
SetFont
(self, font)¶Sets a new font for the header item.
font – an instance of wx.Font
.
Sets a new font for the footer item.
font – an instance of wx.Font
.
Sets the footer item format.
format – the footer item format.
Sets the footer item kind.
kind – the footer item kind.
See also
SetKind
for a list of valid item kinds.
SetFormat
(self, format)¶Sets the header item format.
format – the header item format.
SetHeight
(self, h)¶Sets the header/footer item height, in pixels.
h – an integer value representing the header/footer height.
SetItem
(self, item)¶Sets information about the header/footer item.
info – an instance of UltimateListHeaderData
.
SetKind
(self, kind)¶Sets the header item kind.
kind – may be one of the following integers:
Item Kind |
Description |
---|---|
0 |
A normal item |
1 |
A checkbox-like item |
2 |
A radiobutton-type item |
SetPosition
(self, x, y)¶Sets the header/footer item position.
x – the item x position;
y – the item y position.
SetState
(self, flag)¶Sets the item state flags.
state – any combination of the following bits:
State Bits |
Hex Value |
Description |
---|---|---|
|
0x0 |
Don’t care what the state is |
|
0x1 |
The item is highlighted to receive a drop event |
|
0x2 |
The item has the focus |
|
0x4 |
The item is selected |
|
0x8 |
The item is in the cut state |
|
0x10 |
The item is disabled |
|
0x20 |
The item has been filtered |
|
0x40 |
The item is in use |
|
0x80 |
The item has been picked |
|
0x100 |
The item is a drag and drop source |
SetText
(self, text)¶Sets the header/footer item text.
text – the new header/footer text.
SetToolTip
(self, tip)¶Sets the header/footer item tooltip.
tip – the new header/footer tooltip.
SetWidth
(self, w)¶Sets the header/footer item width, in pixels.
w – an integer value representing the header/footer width.