This module contains some common functions used by wxPython-AUI to manipulate colours, bitmaps, text and gradient shadings.
This module contains some common functions used by wxPython-AUI to manipulate colours, bitmaps, text and gradient shadings.
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: |
|
---|
Draws a gradient-shaded rectangle.
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.
Parameter: | c – the input colour to analyze. |
---|
Convert the given image (in place) to a grayed-out version, appropriate for a ‘disabled’ appearance.
Param: | bitmap: the bitmap to gray-out. |
---|
Make a pixel grayed-out. If the pixel matches the maskColor, it won’t be changed.
Parameters: |
|
---|
Darken/lighten the input colour c.
Parameters: |
|
---|