This is the main implementation of RibbonPanel.
__init__ | Default class constructor. |
AddChild | |
CanAutoMinimise | Query if the panel can automatically minimise itself at small sizes. |
CommonInit | |
DoGetBestSize | |
DoGetNextLargerSize | |
DoGetNextSmallerSize | |
DoSetSize | |
GetDefaultBorder | |
GetExpandedDummy | Get the dummy panel of an expanded panel. |
GetExpandedPanel | Get the expanded panel of a dummy panel. |
GetExpandedPosition | |
GetMinNotMinimisedSize | |
GetMinSize | |
GetMinimisedIcon | Get the bitmap to be used in place of the panel children when it is minimised. |
GetPanelSizerBestSize | |
GetPanelSizerMinSize | |
HideExpanded | Hide the panel’s external expansion. |
IsHovered | Query is the mouse is currently hovered over the panel. |
IsMinimised | Query if the panel would be minimised at a given size. |
IsMinimised1 | Query if the panel is currently minimised. |
IsMinimised2 | Query if the panel would be minimised at a given size. |
IsSizingContinuous | |
Layout | |
OnChildKillFocus | |
OnEraseBackground | |
OnKillFocus | |
OnMouseClick | |
OnMouseEnter | |
OnMouseEnterChild | |
OnMouseLeave | |
OnMouseLeaveChild | |
OnPaint | |
OnSize | |
Realize | Realize all children of the panel. |
RemoveChild | |
SetArtProvider | Set the art provider to be used. |
ShouldSendEventToDummy | |
ShowExpanded | Show the panel externally expanded. |
TestPositionForHover | |
TryAfter | |
__del__ |
This is the main implementation of RibbonPanel.
Default class constructor.
Parameters: |
|
---|
Get the dummy panel of an expanded panel.
Note
This should be called on an expanded panel to get the dummy associated with it - it will return None when called on the dummy itself.
See also
Get the expanded panel of a dummy panel.
Note
This should be called on a dummy panel to get the expanded panel associated with it - it will return None when called on the expanded panel itself.
See also
Get the bitmap to be used in place of the panel children when it is minimised.
Hide the panel’s external expansion.
Returns: | True if the panel was un-expanded, False if it was not (normally due to it not being expanded in the first place). |
---|
See also
Query is the mouse is currently hovered over the panel.
Returns: | True if the cursor is within the bounds of the panel (i.e. hovered over the panel or one of its children), False otherwise. |
---|
Query if the panel would be minimised at a given size.
Parameters: | at_size – MISSING DESCRIPTION. |
---|
Query if the panel would be minimised at a given size.
Parameters: | at_size – MISSING DESCRIPTION. |
---|
Realize all children of the panel.
Reimplemented from RibbonControl.
Set the art provider to be used.
Normally called automatically by RibbonPage when the panel is created, or the art provider changed on the page. The new art provider will be propagated to the children of the panel.
Reimplemented from RibbonControl.
Parameters: | art – MISSING DESCRIPTION. |
---|
Show the panel externally expanded.
When a panel is minimised, it can be shown full-size in a pop-out window, which is refered to as being (externally) expanded.
Returns: | True if the panel was expanded, False if it was not (possibly due to it not being minimised, or already being expanded). |
---|
Note
When a panel is expanded, there exist two panels - the original panel (which is refered to as the dummy panel) and the expanded panel. The original is termed a dummy as it sits in the ribbon bar doing nothing, while the expanded panel holds the panel children.
See also