__init__ | Default class constructor. |
Append | Add an item to the gallery (with complex client data). |
CalculateMinSize | |
Clear | Remove all items from the gallery. |
CommonInit | |
DoGetBestSize | |
DoGetNextLargerSize | |
DoGetNextSmallerSize | |
EnsureVisible | Scroll the gallery to ensure that the given item is visible. |
GetActiveItem | Get the currently active item, or None if there is none. |
GetCount | Get the number of items in the gallery. |
GetDefaultBorder | |
GetDownButtonState | Get the state of the scroll down button. |
GetExtensionButtonState | Get the state of the “extension” button. |
GetHoveredItem | Get the currently hovered item, or None if there is none. |
GetItem | Get an item by index. |
GetItemClientData | Get the client data associated with a gallery item. |
GetSelection | Get the currently selected item, or None if there is none. |
GetUpButtonState | Get the state of the scroll up button. |
IsEmpty | Query if the gallery has no items in it. |
IsHovered | Query is the mouse is currently hovered over the gallery. |
IsSizingContinuous | |
Layout | |
OnEraseBackground | |
OnMouseDClick | |
OnMouseDown | |
OnMouseEnter | |
OnMouseLeave | |
OnMouseMove | |
OnMouseUp | |
OnPaint | |
OnSize | |
Realize | |
ScrollLines | Scroll the gallery contents by some amount. |
SetItemClientData | Set the client data associated with a gallery item. |
SetSelection | Set the selection to the given item, or removes the selection if item == None. |
TestButtonHover |
Default class constructor.
Parameters: |
|
---|
Add an item to the gallery (with complex client data).
Parameters: |
|
---|
Scroll the gallery to ensure that the given item is visible.
Parameters: | item – MISSING DESCRIPTION. |
---|
Get the currently active item, or None if there is none.
The active item is the item being pressed by the user, and will thus become the selected item if the user releases the mouse button.
Get the currently hovered item, or None if there is none.
The hovered item is the item underneath the mouse cursor.
Get the client data associated with a gallery item.
Parameters: | item – MISSING DESCRIPTION. |
---|
Get the currently selected item, or None if there is none.
The selected item is set by SetSelection, or by the user clicking on an item.
Query is the mouse is currently hovered over the gallery.
Returns: | True if the cursor is within the bounds of the gallery (not just hovering over an item), False otherwise. |
---|
Scroll the gallery contents by some amount.
Reimplemented from wx.Window.
Parameters: | lines – Positive values scroll toward the end of the gallery, while negative values scroll toward the start. |
---|---|
Returns: | True if the gallery scrolled at least one pixel in the given direction, False if it did not scroll. |
Set the client data associated with a gallery item.
Parameters: |
|
---|
Set the selection to the given item, or removes the selection if item == None.
Note that this not cause any events to be emitted.
Parameters: | item – MISSING DESCRIPTION. |
---|