wx.lib.agw.aui.framemanager.AuiDockingGuideWindow¶
Target class for AuiDockingGuide and AuiCenterDockingGuide.
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. Used internally, do not call it in your code! |
|
Draws the whole docking guide window (not used if the docking guide images are ok). |
|
Draws the docking guide arrow icon (not used if the docking guide images are ok). |
|
Draws the docking guide background. |
|
Draws a dotted line (not used if the docking guide images are ok). |
|
Draws the docking guide icon (not used if the docking guide images are ok). |
|
Returns whether the docking direction is valid. |
|
Handles the |
|
Handles the |
|
Sets the docking direction as valid or invalid. |
|
Updates the docking guide images depending on the mouse position, using focused |
Class API¶
- class AuiDockingGuideWindow(wx.Window)¶
Target class for
AuiDockingGuideandAuiCenterDockingGuide.
Methods¶
- __init__(self, parent, rect, direction=0, center=False, useAero=False)¶
Default class constructor. Used internally, do not call it in your code!
- Parameters:
parent – the
AuiManagerparent;rect (wx.Rect) – the window rect;
direction (integer) – one of
wx.TOP,wx.BOTTOM,wx.LEFT,wx.RIGHT,wx.CENTER;center (bool) – whether the calling class is a
AuiCenterDockingGuide;useAero (bool) – whether to use the new Aero-style bitmaps or Whidbey-style bitmaps for the docking guide.
- Draw(self, dc)¶
Draws the whole docking guide window (not used if the docking guide images are ok).
- Parameters:
dc – a
wx.DCdevice context object.
- DrawArrow(self, dc)¶
Draws the docking guide arrow icon (not used if the docking guide images are ok).
- Parameters:
dc – a
wx.DCdevice context object.
- DrawBackground(self, dc)¶
Draws the docking guide background.
- Parameters:
dc – a
wx.DCdevice context object.
- DrawDottedLine(self, dc, point, length, vertical)¶
Draws a dotted line (not used if the docking guide images are ok).
- DrawIcon(self, dc)¶
Draws the docking guide icon (not used if the docking guide images are ok).
- Parameters:
dc – a
wx.DCdevice context object.
- IsValid(self)¶
Returns whether the docking direction is valid.
- OnEraseBackground(self, event)¶
Handles the
wx.EVT_ERASE_BACKGROUNDevent forAuiDockingGuideWindow.- Parameters:
event – a
EraseEventto be processed.
Note
This is intentionally empty to reduce flickering while drawing.
- OnPaint(self, event)¶
Handles the
wx.EVT_PAINTevent forAuiDockingGuideWindow.- Parameters:
event – a
PaintEventto be processed.
- SetValid(self, valid)¶
Sets the docking direction as valid or invalid.
- Parameters:
valid (bool) – whether the docking direction is allowed or not.