A docking guide window for single docking hint (not diamond-shaped HUD).
wx.lib.agw.aui.framemanager.AuiDockingGuide
Default class constructor. Used internally, do not call it in your code! |
|
Moves the docking window to the new position. Overridden in children classes. |
|
Creates the docking guide window shape based on which docking bitmaps are used. |
|
Checks if the mouse position is inside the target window rect. |
|
Returns whether the docking direction is valid. |
|
Sets the correct shape for the docking guide window. |
|
If the platform supports it, sets the shape of the window to that depicted by region. |
|
Sets the docking direction as valid or invalid. |
|
Updates the docking guide images depending on the mouse position, using focused |
AuiSingleDockingGuide
(AuiDockingGuide)¶A docking guide window for single docking hint (not diamond-shaped HUD).
__init__
(self, parent, direction=0)¶Default class constructor. Used internally, do not call it in your code!
parent – the AuiManager
parent;
direction (integer) – one of wx.TOP
, wx.BOTTOM
, wx.LEFT
, wx.RIGHT
.
AeroMove
(self, pos)¶Moves the docking window to the new position. Overridden in children classes.
pos (wx.Point) – the new docking guide position.
CreateShapesWithStyle
(self, useWhidbey)¶Creates the docking guide window shape based on which docking bitmaps are used.
useWhidbey (bool) – if True
, use Whidbey-style bitmaps; if False
, use the
Aero-style bitmaps.
HitTest
(self, x, y)¶Checks if the mouse position is inside the target window rect.
x (integer) – the x mouse position;
y (integer) – the y mouse position.
IsValid
(self)¶Returns whether the docking direction is valid.
SetGuideShape
(self, event=None)¶Sets the correct shape for the docking guide window.
event – on wxGTK, a wx.WindowCreateEvent
event to process.
SetShape
(self, region)¶If the platform supports it, sets the shape of the window to that depicted by region.
The system will not display or respond to any mouse event for the pixels that lie
outside of the region. To reset the window to the normal rectangular shape simply call
SetShape
again with an empty region.
region (Region) – the shape of the frame.
Note
Overridden for wxMAC.
SetValid
(self, valid)¶Sets the docking direction as valid or invalid.
valid (bool) – whether the docking direction is allowed or not.