This is the description of standalone Python functions in the aui.aui_utilities module.
BitmapFromBits | BitmapFromBits() is a utility function that creates a |
BlendColour | Blends the two colour component fg and bg into one colour component, adding an optional alpha channel. |
ChopText | Chops the input text if its size does not fit in max_size, by cutting the text and adding ellipsis at the end. |
Clip | Clips the value in a based on the extremes b and c. |
CopyAttributes | Copies pens, brushes, colours and fonts from the old tab art to the new one. |
DarkenBitmap | Darkens the input bitmap on wxMAC using the input colour. |
DrawGradientRectangle | Draws a gradient-shaded rectangle. |
DrawMACCloseButton | Draws the wxMAC tab close button using wx.GraphicsContext. |
FindFocusDescendant | Find a window with the focus, that is also a descendant of the given window. |
GetBaseColour | Returns the face shading colour on push buttons/backgrounds, mimicking as closely |
GetDockingImage | Returns the correct name of the docking bitmap depending on the input parameters. |
GetLabelSize | Returns the AuiToolBar item label size. |
GetSlidingPoints | Returns the point at which the sliding in and out of a minimized pane begins. |
IndentPressedBitmap | Indents the input rectangle rect based on the value of button_state. |
LightColour | Brighten input colour by percent. |
LightContrastColour | Creates a new, lighter colour based on the input colour c. |
MakeDisabledBitmap | Convert the given image (in place) to a grayed-out version, appropriate for a ‘disabled’ appearance. |
MakeGray | Make a pixel grayed-out. |
PaneCreateStippleBitmap | Creates a stipple bitmap to be used in a wx.Brush. |
RescaleScreenShot | Rescales a bitmap to be 300 pixels wide (or tall) at maximum. |
StepColour | Darken/lighten the input colour c. |
TakeScreenShot | Takes a screenshot of the screen at given position and size (rect). |
BitmapFromBits() is a utility function that creates a masked bitmap from raw bits (XBM format).
Parameters: |
|
---|
Blends the two colour component fg and bg into one colour component, adding an optional alpha channel.
Parameters: |
|
---|
Chops the input text if its size does not fit in max_size, by cutting the text and adding ellipsis at the end.
Parameters: |
|
---|
Clips the value in a based on the extremes b and c.
Parameters: |
|
---|
Copies pens, brushes, colours and fonts from the old tab art to the new one.
Parameters: |
|
---|
Darkens the input bitmap on wxMAC using the input colour.
Parameters: |
|
---|
Draws a gradient-shaded rectangle.
Parameters: |
|
---|
Draws the wxMAC tab close button using wx.GraphicsContext.
Parameters: |
|
---|
Find a window with the focus, that is also a descendant of the given window. This is used to determine the window to initially send commands to.
Parameters: | ancestor – the window to check for ancestry. |
---|
Returns the face shading colour on push buttons/backgrounds, mimicking as closely as possible the platform UI colours.
Returns the correct name of the docking bitmap depending on the input parameters.
Parameters: |
|
---|
Returns the AuiToolBar item label size.
Parameters: |
|
---|
Returns the point at which the sliding in and out of a minimized pane begins.
Parameters: |
|
---|
Indents the input rectangle rect based on the value of button_state.
Parameters: |
|
---|
Brighten input colour by percent.
Parameters: |
|
---|
Creates a new, lighter colour based on the input colour c.
Parameters: | c – the input colour to analyze. |
---|
Convert the given image (in place) to a grayed-out version, appropriate for a ‘disabled’ appearance.
Parameters: | bitmap – the bitmap to gray-out. |
---|
Make a pixel grayed-out. If the pixel matches the maskColour, it won’t be changed.
Parameters: |
|
---|
Creates a stipple bitmap to be used in a wx.Brush. This is used to draw sash resize hints.
Rescales a bitmap to be 300 pixels wide (or tall) at maximum.
Parameters: |
|
---|
Darken/lighten the input colour c.
Parameters: |
|
---|
Takes a screenshot of the screen at given position and size (rect).
Parameters: | rect – the screen rectangle for which we want to take a screenshot. |
---|