AGW Logo

agw_title AuiDockingGuideWindow

Target class for AuiSingleDockingGuide and AuiCenterDockingGuide.

hierarchy Inheritance Diagram

Inheritance diagram for: AuiDockingGuideWindow

Inheritance diagram of AuiDockingGuideWindow


method_summary Methods Summary

__init__Default class constructor.
DrawDraws the whole docking guide window (not used if the docking guide images are ok).
DrawArrowDraws the docking guide arrow icon (not used if the docking guide images are ok).
DrawBackgroundDraws the docking guide background.
DrawDottedLineDraws a dotted line (not used if the docking guide images are ok).
DrawIconDraws the docking guide icon (not used if the docking guide images are ok).
IsValidReturns whether the docking direction is valid.
OnEraseBackgroundHandles the wx.EVT_ERASE_BACKGROUND event for AuiDockingGuideWindow.
OnPaintHandles the wx.EVT_PAINT event for AuiDockingGuideWindow.
SetValidSets the docking direction as valid or invalid.
UpdateDockGuideUpdates the docking guide images depending on the mouse position, using focused images if the mouse is inside the docking guide or unfocused images if it is outside.

API Class API

class AuiDockingGuideWindow(wx.Window)[source]

Target class for AuiSingleDockingGuide and AuiCenterDockingGuide.



__init__(parent, rect, direction=0, center=False, useAero=False)[source]

Default class constructor. Used internally, do not call it in your code!

Parameters:
  • parent – the AuiDockingGuideWindow parent;
  • rect – the window rect;
  • direction – one of wx.TOP, wx.BOTTOM, wx.LEFT, wx.RIGHT, wx.CENTER;
  • center – whether the calling class is a AuiCenterDockingGuide;
  • useAero – whether to use the new Aero-style bitmaps or Whidbey-style bitmaps for the docking guide.


Draw(dc)[source]

Draws the whole docking guide window (not used if the docking guide images are ok).

Parameters:dc – a wx.DC device context object.


DrawArrow(dc)[source]

Draws the docking guide arrow icon (not used if the docking guide images are ok).

Parameters:dc – a wx.DC device context object.



DrawBackground(dc)[source]

Draws the docking guide background.

Parameters:dc – a wx.DC device context object.



DrawDottedLine(dc, point, length, vertical)[source]

Draws a dotted line (not used if the docking guide images are ok).

Parameters:
  • dc – a wx.DC device context object;

  • point – a wx.Point where to start drawing the dotted line;
  • length – the length of the dotted line;
  • vertical – whether it is a vertical docking guide window or not.


DrawIcon(dc)[source]

Draws the docking guide icon (not used if the docking guide images are ok).

Parameters:dc – a wx.DC device context object.



IsValid()[source]

Returns whether the docking direction is valid.



OnEraseBackground(event)[source]

Handles the wx.EVT_ERASE_BACKGROUND event for AuiDockingGuideWindow.

Parameters:event – a wx.EraseEvent to be processed.

Note

This is intentionally empty to reduce flickering while drawing.



OnPaint(event)[source]

Handles the wx.EVT_PAINT event for AuiDockingGuideWindow.

Parameters:event – a wx.PaintEvent to be processed.


SetValid(valid)[source]

Sets the docking direction as valid or invalid.

Parameters:valid – whether the docking direction is allowed or not.


UpdateDockGuide(pos)[source]

Updates the docking guide images depending on the mouse position, using focused images if the mouse is inside the docking guide or unfocused images if it is outside.

Parameters:pos – a wx.Point mouse position.

Tree

Table Of Contents

Previous topic

AuiDockingGuideInfo

Next topic

AuiDockingHintWindow