File: wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (156 lines) | stat: -rw-r--r-- 7,127 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.agw.aui.framemanager

.. highlight:: python



.. _wx.lib.agw.aui.framemanager.AuiSingleDockingGuide:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.aui.framemanager.AuiSingleDockingGuide**
==========================================================================================================================================

A docking guide window for single docking hint (not diamond-shaped HUD). 



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>AuiSingleDockingGuide</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.lib.agw.aui.framemanager.AuiSingleDockingGuide_inheritance.png" alt="Inheritance diagram of AuiSingleDockingGuide" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.agw.aui.framemanager.AuiDockingGuide.html" title="wx.lib.agw.aui.framemanager.AuiDockingGuide" alt="" coords="25,547,343,576"/> <area shape="rect" id="node6" href="wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.html" title="wx.lib.agw.aui.framemanager.AuiSingleDockingGuide" alt="" coords="5,624,363,653"/> <area shape="rect" id="node2" href="wx.Frame.html" title="wx.Frame" alt="" coords="143,469,224,499"/> <area shape="rect" id="node3" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="128,83,239,112"/> <area shape="rect" id="node8" href="wx.WindowBase.html" title="wx.WindowBase" alt="" coords="123,160,244,189"/> <area shape="rect" id="node4" href="wx.Object.html" title="wx.Object" alt="" coords="85,5,167,35"/> <area shape="rect" id="node5" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="192,5,293,35"/> <area shape="rect" id="node7" href="wx.Window.html" title="wx.Window" alt="" coords="139,237,228,267"/> <area shape="rect" id="node10" href="wx.NonOwnedWindow.html" title="wx.NonOwnedWindow" alt="" coords="105,315,263,344"/> <area shape="rect" id="node9" href="wx.TopLevelWindow.html" title="wx.TopLevelWindow" alt="" coords="113,392,255,421"/> </map> 
   </p>

|


|super_classes| Known Superclasses
==================================

:class:`wx.lib.agw.aui.framemanager.AuiDockingGuide`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.__init__`              Default class constructor. Used internally, do not call it in your code!
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.AeroMove`              Moves the docking window to the new position. Overridden in children classes.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.CreateShapesWithStyle` Creates the docking guide window shape based on which docking bitmaps are used.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.HitTest`               Checks if the mouse position is inside the target window rect.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.IsValid`               Returns whether the docking direction is valid.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.SetGuideShape`         Sets the correct shape for the docking guide window.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.SetShape`              If the platform supports it, sets the shape of the window to that depicted by `region`.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.SetValid`              Sets the docking direction as valid or invalid.
:meth:`~wx.lib.agw.aui.framemanager.AuiSingleDockingGuide.UpdateDockGuide`       Updates the docking guide images depending on the mouse position, using focused
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: AuiSingleDockingGuide(AuiDockingGuide)

   A docking guide window for single docking hint (not diamond-shaped HUD). 

   .. method:: __init__(self, parent, direction=0)

      Default class constructor. Used internally, do not call it in your code!
      
      :param `parent`: the :class:`AuiManager` parent;
      :param integer `direction`: one of ``wx.TOP``, ``wx.BOTTOM``, ``wx.LEFT``, ``wx.RIGHT``.


   .. method:: AeroMove(self, pos)

      Moves the docking window to the new position. Overridden in children classes.
      
      :param wx.Point `pos`: the new docking guide position.


   .. method:: CreateShapesWithStyle(self, useWhidbey)

      Creates the docking guide window shape based on which docking bitmaps are used.
      
      :param bool `useWhidbey`: if ``True``, use Whidbey-style bitmaps; if ``False``, use the
       Aero-style bitmaps.
       


   .. method:: HitTest(self, x, y)

      Checks if the mouse position is inside the target window rect.
      
      :param integer `x`: the `x` mouse position;
      :param integer `y`: the `y` mouse position.


   .. method:: IsValid(self)

      Returns whether the docking direction is valid. 


   .. method:: SetGuideShape(self, event=None)

      Sets the correct shape for the docking guide window.
      
      :param `event`: on wxGTK, a :class:`wx.WindowCreateEvent` event to process.


   .. method:: 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
      :meth:`SetShape` again with an empty region.
      
      :param Region `region`: the shape of the frame.
      
      :note: Overridden for wxMAC.


   .. method:: SetValid(self, valid)

      Sets the docking direction as valid or invalid.
      
      :param bool `valid`: whether the docking direction is allowed or not.


   .. method:: UpdateDockGuide(self, pos)

      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.
      
      :param wx.Point `pos`: the mouse position.