Home | Trees | Index | Help |
|
---|
Package wx :: Class RendererNative |
|
object
--+
|
RendererNative
One of the design principles of wxWidgets is to use the native widgets on every platform in order to be as close to the native look and feel on every platform. However there are still cases when some generic widgets are needed for various reasons, but it can sometimes take a lot of messy work to make them conform to the native LnF.
The wx.RendererNative class is a collection of functions that have platform-specific implementations for drawing certain parts of genereic controls in ways that are as close to the native look as possible.
Method Summary | |
---|---|
__init__(self)
| |
__repr__(self)
| |
Draw a button like the one used by wx.ComboBox to show a drop down
window. | |
Draw a drop down arrow that is suitable for use outside a combo box. | |
Draw the header control button (such as whar is used by wx.ListCtrl
in report mode.) | |
Draw the border for a sash window: this border must be such that the sash drawn by DrawSplitterSash blends into it well. | |
Draw a sash. | |
Draw the expanded/collapsed icon for a tree control item. | |
RendererNative |
Return the currently used renderer (Static method) |
RendererNative |
Return the default (native) implementation for this platform -- this is also the one used by default but this may be changed by calling wx.RendererNative.Set in which case the return value of this method
may be different from the return value of wx.RendererNative.Get . (Static method)
|
RendererNative |
Return the generic implementation of the renderer. (Static method) |
SplitterRenderParams |
Get the splitter parameters, see wx.SplitterRenderParams . |
RendererVersion |
Returns the version of the renderer. |
RendererNative |
Set the renderer to use, passing None reverts to using the default renderer. (Static method) |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Method Details |
---|
DrawComboBoxDropButton(self, win, dc, rect, flags=0)Draw a button like the one used by The flags parameter may have the wx.CONTROL_PRESSED or wx.CONTROL_CURRENT bits set.
|
DrawDropArrow(self, win, dc, rect, flags=0)Draw a drop down arrow that is suitable for use outside a combo box. Arrow will have a transparent background. rect is not entirely filled by the arrow. Instead, you should use bounding rectangle of a drop down button which arrow matches the size you need. flags may have the wx.CONTROL_PRESSED or wx.CONTROL_CURRENT bit set.
|
DrawHeaderButton(self, win, dc, rect, flags=0)Draw the header control button (such as whar is used by
|
DrawSplitterBorder(self, win, dc, rect, flags=0)Draw the border for a sash window: this border must be such that the
sash drawn by
|
DrawSplitterSash(self, win, dc, size, position, orient, flags=0)Draw a sash. The orient parameter defines whether the sash should be vertical or horizontal and how the position should be interpreted.
|
DrawTreeItemButton(self, win, dc, rect, flags=0)Draw the expanded/collapsed icon for a tree control item.
|
GetSplitterParams(self, win)Get the splitter parameters, see
|
GetVersion(self)Returns the version of the renderer. Will be used for ensuring compatibility of dynamically loaded renderers.
|
Static Method Details |
---|
Get()Return the currently used renderer
|
GetDefault()Return the default (native) implementation for this platform -- this
is also the one used by default but this may be changed by calling
|
GetGeneric()Return the generic implementation of the renderer. Under some
platforms, this is the default renderer implementation, others have
platform-specific default renderer which can be retrieved by calling
|
Set(renderer)Set the renderer to use, passing None reverts to using the default renderer. Returns the previous renderer used with Set or None.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:45:31 2007 | http://epydoc.sf.net |