Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module artmanager :: Class ArtManager |
|
object
--+ |Object
--+ |EvtHandler
--+ | ArtManager
This class provides various art utilities, such as creating shadow, providing lighter / darker colors for a given color, etc...
Method Summary | |
---|---|
Default class constructor. | |
Adds a new theme to the stock. | |
Returns the background color of a control when not in focus. | |
Returns the best fit size for the supplied label & bitmap. | |
Used internally. | |
Convert the given image to a bitmap. | |
Creates a grey bitmap image from bmp. | |
Like the LightColour() function, but create the color darker by percent. | |
Draws a shadow using background bitmap. | |
Color rectangle according to the theme. | |
Color rectangle according to the theme. | |
Color rectangle according to the theme. | |
Draws resize sash. | |
Draws the menu bar background according to the active theme. | |
Enables menu border drawing (XP style only). | |
Draws the text & bitmap on the input dc. | |
Draws the toolbar background according to the active theme. | |
Adds a shadow under the window (Windows Only). | |
FillStockBitmaps(self)
| |
Return the surrounding color for a control. | |
Free(self)
(Class method) | |
Get(self)
(Class method) | |
Returns the menomonic index of the label. | |
Return the padding buffer for a text or bitmap. | |
Returns the top left x & y cordinates of the bitmap drawing. | |
Returns the available colour schemes. | |
Returns the font used by this theme. | |
Returns True if the meun bar should be painted with vertical gradient. | |
Returns menu bar morder drawing flag. | |
Returns the current colour scheme. | |
Returns the menu bar face colour. | |
Returns the menu bar selection color. | |
Gets the visibility depth of the menu in Metallic style. | |
Returns the colour used for menu face. | |
Returns the menu theme. | |
Returns the sunken flag for MS 2007 buttons. | |
Do Drop shadow under toolbar?. | |
Gets a bitmap from a stock. | |
Returns the colour used for disabled menu items. | |
Returns the colour used for enabled menu items. | |
Returns the top left x & y cordinates of the text drawing. | |
Returns the theme (Blue, Silver, Green etc.) base color, if no theme is active it return the active caption colour, lighter in 30%. | |
GetTransparency(self)
| |
Returns the background color of a control when it is in focus. | |
Initialise the colour map. | |
Initializes the bitmaps and colours. | |
Returns whether a color is dark or light. | |
Return light contrast of color. | |
Used internally. | |
Return mix of input colors. | |
Handles the wx.EVT_SYS_COLOUR_CHANGED event for ArtManager. | |
Paint a region with gradient coloring. | |
Paint rectagnle with gradient coloring; the gradient lines are diagonal and may start from the upper left corner or from the upper right corner. | |
Paint a region with gradient coloring. | |
Paint the rectangle with gradient coloring; the gradient lines are either horizontal or vertical. | |
Creates a random colour. | |
Sets the menu bar gradient style. | |
Sets the menu bar color scheme to use. | |
Set the menu theme, possible values (Style2007, StyleXP). | |
Sets MS 2007 button style sunken. | |
Enables/Disables toobar shadow drop. | |
SetTransparency(self,
amount)
| |
Takes a screenshot of the screen at give pos & size (rect). | |
Truncates a given string to fit given width size. |
Property Summary |
---|
Instance Method Details |
---|
__init__(self)
|
AddMenuTheme(self, render)Adds a new theme to the stock. |
BackgroundColor(self)Returns the background color of a control when not in focus. |
CalcButtonBestSize(self, label, bmp)Returns the best fit size for the supplied label & bitmap. |
CanMakeWindowsTransparent(self)Used internally. |
ConvertToBitmap(self, xpm, alpha=None)Convert the given image to a bitmap. |
CreateGreyBitmap(self, bmp)Creates a grey bitmap image from bmp. |
DarkColour(self, color, percent)Like the LightColour() function, but create the color darker by percent. |
DrawBitmapShadow(self, dc, rect, where=3)Draws a shadow using background bitmap. |
DrawButton(self, dc, rect, theme, state, input=None)Color rectangle according to the theme. |
DrawButtonColour(self, dc, rect, theme, state, color)Color rectangle according to the theme. |
DrawButtonTheme(self, dc, rect, theme, state, useLightColours=True)Color rectangle according to the theme. |
DrawDragSash(self, rect)Draws resize sash. |
DrawMenuBarBg(self, dc, rect)Draws the menu bar background according to the active theme. |
DrawMenuBarBorder(self, border)Enables menu border drawing (XP style only). |
DrawTextAndBitmap(self, dc, rect, text, enable=True, font=<wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' a..., fontColor=wx.Colour(), bitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap ..., grayBitmap=<wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap ..., style=0)Draws the text & bitmap on the input dc. |
DrawToolBarBg(self, dc, rect)Draws the toolbar background according to the active theme. |
DropShadow(self, wnd, drop=True)Adds a shadow under the window (Windows Only). |
FrameColour(self)Return the surrounding color for a control. |
GetAccelIndex(self, label)Returns the menomonic index of the label. (e.g. 'lab&el' --> will result in 3 and labelOnly = label) |
GetAlignBuffer(self)Return the padding buffer for a text or bitmap. |
GetBitmapStartLocation(self, dc, rect, bitmap, text='', style=0)Returns the top left x & y cordinates of the bitmap drawing. |
GetColourSchemes(self)Returns the available colour schemes. |
GetFont(self)Returns the font used by this theme. |
GetMBVerticalGradient(self)Returns True if the meun bar should be painted with vertical gradient. |
GetMenuBarBorder(self)Returns menu bar morder drawing flag. |
GetMenuBarColourScheme(self)Returns the current colour scheme. |
GetMenuBarFaceColour(self)Returns the menu bar face colour. |
GetMenuBarSelectionColour(self)Returns the menu bar selection color. |
GetMenuBgFactor(self)Gets the visibility depth of the menu in Metallic style. The higher the value, the menu bar will look more raised |
GetMenuFaceColour(self)Returns the colour used for menu face. |
GetMenuTheme(self)Returns the menu theme. |
GetMS2007ButtonSunken(self)Returns the sunken flag for MS 2007 buttons. |
GetRaiseToolbar(self)Do Drop shadow under toolbar?. |
GetStockBitmap(self, name)Gets a bitmap from a stock. If bitmap does not exist, return wx.NullBitmap. |
GetTextColourDisable(self)Returns the colour used for disabled menu items. |
GetTextColourEnable(self)Returns the colour used for enabled menu items. |
GetTextStartLocation(self, dc, rect, bitmap, text, style=0)Returns the top left x & y cordinates of the text drawing. In case the text is too long, the text is being fixed (the text is cut and a '...' mark is added in the end). |
GetThemeBaseColour(self, useLightColours=True)Returns the theme (Blue, Silver, Green etc.) base color, if no theme is active it return the active caption colour, lighter in 30%. |
HighlightBackgroundColor(self)Returns the background color of a control when it is in focus. |
InitColours(self)Initialise the colour map. |
Initialize(self)Initializes the bitmaps and colours. |
IsDark(self, color)Returns whether a color is dark or light. |
LightColour(self, color, percent)Return light contrast of color. The color returned is from the scale of color -> white. The percent determines how light the color will be. Percent = 100 return white, percent = 0 returns color. |
MakeWindowTransparent(self, wnd, amount)Used internally. |
MixColors(self, firstColor, secondColor, percent)Return mix of input colors. |
OnSysColourChange(self, event)Handles the wx.EVT_SYS_COLOUR_CHANGED event for ArtManager. |
PaintCrescentGradientBox(self, dc, rect, startColor, endColor, concave=True)Paint a region with gradient coloring. The gradient is in crescent shape which fits the 2007 style. |
PaintDiagonalGradientBox(self, dc, rect, startColor, endColor, startAtUpperLeft=True, trimToSquare=True)Paint rectagnle with gradient coloring; the gradient lines are diagonal and may start from the upper left corner or from the upper right corner. |
PaintGradientRegion(self, dc, region, startColor, endColor, vertical=True)Paint a region with gradient coloring. |
PaintStraightGradientBox(self, dc, rect, startColor, endColor, vertical=True)Paint the rectangle with gradient coloring; the gradient lines are either horizontal or vertical. |
RandomColour()Creates a random colour. |
SetMBVerticalGradient(self, v)Sets the menu bar gradient style. |
SetMenuBarColour(self, scheme)Sets the menu bar color scheme to use. |
SetMenuTheme(self, theme)Set the menu theme, possible values (Style2007, StyleXP). |
SetMS2007ButtonSunken(self, sunken)Sets MS 2007 button style sunken. |
SetRaiseToolbar(self, rais)Enables/Disables toobar shadow drop. |
TakeScreenShot(self, rect, bmp)Takes a screenshot of the screen at give pos & size (rect). |
TruncateText(self, dc, text, maxWidth)Truncates a given string to fit given width size. if the text does not fit into the given width it is truncated to fit. the format of the fixed text is <truncate text ..>. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:55:32 2009 | http://epydoc.sf.net |