2 % automatically generated by HelpGen $Revision$ from
3 % panedrawpl.h at 21/Jan/02 21:14:19
7 \section{\class{cbPaneDrawPlugin
}}\label{cbpanedrawplugin
}
10 Simple but all-in-one plugin implementation. Resembles the look and feel of
11 to MFC control-bars. The class handles painting of the pane and the items in it;
12 it generates bar/layout customization events, when the user right-clicks the bar/pane.
13 Hooking an instance of this and row-layout plugins for each pane
14 would be enough for the frame layout to function properly
15 (they are plugged in automatically by the wxFrameLayout class).
17 \wxheading{Derived from
}
19 \helpref{cbPluginBase
}{cbpluginbase
}
21 \wxheading{Include files
}
25 \wxheading{Data structures
}
27 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{cbPaneDrawPlugin::cbPaneDrawPlugin
}\label{cbpanedrawplugincbpanedrawplugin
}
32 \func{}{cbPaneDrawPlugin
}{\param{wxFrameLayout*
}{pPanel
},
\param{int
}{paneMask = wxALL
\_PANES}}
34 Constructor taking frame layout pane and a pane mask.
37 \func{}{cbPaneDrawPlugin
}{\void}
42 \membersection{cbPaneDrawPlugin::
\destruct{cbPaneDrawPlugin
}}\label{cbpanedrawplugindtor
}
44 \func{}{\destruct{cbPaneDrawPlugin
}}{\void}
49 \membersection{cbPaneDrawPlugin::Clone
}\label{cbpanedrawpluginclone
}
51 \func{cbPluginBase*
}{Clone
}{\void}
53 Clone function, returning a new instance of this class.
56 \membersection{cbPaneDrawPlugin::DrawBarInnerShadeRect
}\label{cbpanedrawplugindrawbarinnershaderect
}
58 \func{void
}{DrawBarInnerShadeRect
}{\param{cbBarInfo*
}{pBar
},
\param{wxDC\&
}{dc
}}
60 Internal helper: draws the inner bar shading.
63 \membersection{cbPaneDrawPlugin::DrawDraggedHandle
}\label{cbpanedrawplugindrawdraggedhandle
}
65 \func{void
}{DrawDraggedHandle
}{\param{const wxPoint\&
}{pos
},
\param{cbDockPane\&
}{pane
}}
67 Internal helper: draws the dragged handle.
70 \membersection{cbPaneDrawPlugin::DrawLowerRowHandle
}\label{cbpanedrawplugindrawlowerrowhandle
}
72 \func{void
}{DrawLowerRowHandle
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
74 Internal helper: draws the lower row handle.
77 \membersection{cbPaneDrawPlugin::DrawLowerRowShades
}\label{cbpanedrawplugindrawlowerrowshades
}
79 \func{void
}{DrawLowerRowShades
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
},
\param{int
}{level
}}
81 Internal helper: draws the lower row shading.
84 \membersection{cbPaneDrawPlugin::DrawPaneShade
}\label{cbpanedrawplugindrawpaneshade
}
86 \func{void
}{DrawPaneShade
}{\param{wxDC\&
}{dc
},
\param{int
}{alignment
}}
88 Internal helper: draws the pane shading.
91 \membersection{cbPaneDrawPlugin::DrawPaneShadeForRow
}\label{cbpanedrawplugindrawpaneshadeforrow
}
93 \func{void
}{DrawPaneShadeForRow
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
95 Internal helper: draws the pane shading for a row.
98 \membersection{cbPaneDrawPlugin::DrawShade
}\label{cbpanedrawplugindrawshade
}
100 \func{void
}{DrawShade
}{\param{int
}{level
},
\param{wxRect\&
}{rect
},
\param{int
}{alignment
},
\param{wxDC\&
}{dc
}}
102 Internal helper: draws shading.
105 \membersection{cbPaneDrawPlugin::DrawShade1
}\label{cbpanedrawplugindrawshade1
}
107 \func{void
}{DrawShade1
}{\param{int
}{level
},
\param{wxRect\&
}{rect
},
\param{int
}{alignment
},
\param{wxDC\&
}{dc
}}
109 Internal helper: draws shading.
112 \membersection{cbPaneDrawPlugin::DrawUpperRowHandle
}\label{cbpanedrawplugindrawupperrowhandle
}
114 \func{void
}{DrawUpperRowHandle
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
}}
116 Internal helper: draws the upper row handle.
119 \membersection{cbPaneDrawPlugin::DrawUpperRowShades
}\label{cbpanedrawplugindrawupperrowshades
}
121 \func{void
}{DrawUpperRowShades
}{\param{cbRowInfo*
}{pRow
},
\param{wxDC\&
}{dc
},
\param{int
}{level
}}
123 Internal helper: draws the upper row shading.
126 \membersection{cbPaneDrawPlugin::OnDrawBarDecorations
}\label{cbpanedrawpluginondrawbardecorations
}
128 \func{void
}{OnDrawBarDecorations
}{\param{cbDrawBarDecorEvent\&
}{event
}}
130 Handler for draw bar decorations events.
133 \membersection{cbPaneDrawPlugin::OnDrawBarHandles
}\label{cbpanedrawpluginondrawbarhandles
}
135 \func{void
}{OnDrawBarHandles
}{\param{cbDrawBarHandlesEvent\&
}{event
}}
137 Handler for draw bar handles events.
140 \membersection{cbPaneDrawPlugin::OnDrawPaneBackground
}\label{cbpanedrawpluginondrawpanebackground
}
142 \func{void
}{OnDrawPaneBackground
}{\param{cbDrawPaneBkGroundEvent\&
}{event
}}
144 Handler for draw pane background events.
147 \membersection{cbPaneDrawPlugin::OnDrawPaneDecorations
}\label{cbpanedrawpluginondrawpanedecorations
}
149 \func{void
}{OnDrawPaneDecorations
}{\param{cbDrawPaneDecorEvent\&
}{event
}}
151 Handler for draw pane decoration events.
154 \membersection{cbPaneDrawPlugin::OnDrawRowBackground
}\label{cbpanedrawpluginondrawrowbackground
}
156 \func{void
}{OnDrawRowBackground
}{\param{cbDrawRowBkGroundEvent\&
}{event
}}
158 Handler for draw row background events.
161 \membersection{cbPaneDrawPlugin::OnDrawRowDecorations
}\label{cbpanedrawpluginondrawrowdecorations
}
163 \func{void
}{OnDrawRowDecorations
}{\param{cbDrawRowDecorEvent\&
}{event
}}
165 Handler for draw row decoration events.
168 \membersection{cbPaneDrawPlugin::OnDrawRowHandles
}\label{cbpanedrawpluginondrawrowhandles
}
170 \func{void
}{OnDrawRowHandles
}{\param{cbDrawRowHandlesEvent\&
}{event
}}
172 Handler for draw row handles events.
175 \membersection{cbPaneDrawPlugin::OnFinishDrawInArea
}\label{cbpanedrawpluginonfinishdrawinarea
}
177 \func{void
}{OnFinishDrawInArea
}{\param{cbFinishDrawInAreaEvent\&
}{event
}}
179 Handler for finish draw in area events.
182 \membersection{cbPaneDrawPlugin::OnLButtonDown
}\label{cbpanedrawpluginonlbuttondown
}
184 \func{void
}{OnLButtonDown
}{\param{cbLeftDownEvent\&
}{event
}}
186 Handler for left mouse button down events.
189 \membersection{cbPaneDrawPlugin::OnLButtonUp
}\label{cbpanedrawpluginonlbuttonup
}
191 \func{void
}{OnLButtonUp
}{\param{cbLeftUpEvent\&
}{event
}}
193 Handler for left mouse button up events.
196 \membersection{cbPaneDrawPlugin::OnLDblClick
}\label{cbpanedrawpluginonldblclick
}
198 \func{void
}{OnLDblClick
}{\param{cbLeftDClickEvent\&
}{event
}}
200 Handler for left double-click mouse button down events.
203 \membersection{cbPaneDrawPlugin::OnMouseMove
}\label{cbpanedrawpluginonmousemove
}
205 \func{void
}{OnMouseMove
}{\param{cbMotionEvent\&
}{event
}}
207 Handler for mouse move events.
210 \membersection{cbPaneDrawPlugin::OnRButtonUp
}\label{cbpanedrawpluginonrbuttonup
}
212 \func{void
}{OnRButtonUp
}{\param{cbRightUpEvent\&
}{event
}}
214 Handler for right mouse button up events.
217 \membersection{cbPaneDrawPlugin::OnSizeBarWindow
}\label{cbpanedrawpluginonsizebarwindow
}
219 \func{void
}{OnSizeBarWindow
}{\param{cbSizeBarWndEvent\&
}{event
}}
221 Handler for bar size events.
224 \membersection{cbPaneDrawPlugin::OnStartDrawInArea
}\label{cbpanedrawpluginonstartdrawinarea
}
226 \func{void
}{OnStartDrawInArea
}{\param{cbStartDrawInAreaEvent\&
}{event
}}
228 Handler for start draw in area events.
231 \membersection{cbPaneDrawPlugin::SetDarkPixel
}\label{cbpanedrawpluginsetdarkpixel
}
233 \func{void
}{SetDarkPixel
}{\param{int
}{x
},
\param{int
}{y
},
\param{wxDC\&
}{dc
}}
235 Internal helper: sets a dark pixel at the given location.
238 \membersection{cbPaneDrawPlugin::SetLightPixel
}\label{cbpanedrawpluginsetlightpixel
}
240 \func{void
}{SetLightPixel
}{\param{int
}{x
},
\param{int
}{y
},
\param{wxDC\&
}{dc
}}
242 Internal helper: sets a light pixel at the given location.