![]() |
Audacity 3.2.0
|
The widget to the left of a ToolBar that allows it to be dragged around to NEW positions. More...
#include <Grabber.h>
Public Member Functions | |
| Grabber (wxWindow *parent, Identifier id) | |
| Methods for Grabber. More... | |
| virtual | ~Grabber () |
| bool | AcceptsFocusFromKeyboard () const override |
| void | PushButton (bool state) |
| void | SetAsSpacer (bool bIsSpacer) |
| void | SetToolTip (const TranslatableString &toolTip) |
Protected Member Functions | |
| void | OnLeftDown (wxMouseEvent &event) |
| void | OnLeftUp (wxMouseEvent &event) |
| void | OnEnter (wxMouseEvent &event) |
| void | OnLeave (wxMouseEvent &event) |
| void | OnErase (wxEraseEvent &event) |
| void | OnPaint (wxPaintEvent &event) |
| void | OnKeyDown (wxKeyEvent &event) |
Private Member Functions | |
| void | DrawGrabber (wxDC &dc) |
| void | SendEvent (wxEventType type, const wxPoint &pos, bool escaping) |
Private Attributes | |
| const Identifier | mIdentifier |
| bool | mOver |
| bool | mPressed |
| bool | mAsSpacer |
The widget to the left of a ToolBar that allows it to be dragged around to NEW positions.
| Grabber::Grabber | ( | wxWindow * | parent, |
| Identifier | id | ||
| ) |
Methods for Grabber.
Definition at line 54 of file Grabber.cpp.
|
virtual |
Definition at line 78 of file Grabber.cpp.
|
inlineoverride |
|
private |
Definition at line 117 of file Grabber.cpp.
References ThemeBase::Colour(), AColor::Light(), mAsSpacer, AColor::Medium(), mOver, mPressed, and theTheme.
Referenced by OnPaint().
|
protected |
Definition at line 212 of file Grabber.cpp.
|
protected |
Definition at line 260 of file Grabber.cpp.
|
protected |
Definition at line 276 of file Grabber.cpp.
References SendEvent().
|
protected |
Definition at line 241 of file Grabber.cpp.
References mOver.
|
protected |
Definition at line 185 of file Grabber.cpp.
References PushButton(), and SendEvent().
|
protected |
Definition at line 199 of file Grabber.cpp.
References PushButton().
|
protected |
Definition at line 268 of file Grabber.cpp.
References DrawGrabber().
| void Grabber::PushButton | ( | bool | state | ) |
Definition at line 168 of file Grabber.cpp.
References mAsSpacer, mOver, and mPressed.
Referenced by OnLeftDown(), OnLeftUp(), and ToolBar::SetDocked().
|
private |
Definition at line 85 of file Grabber.cpp.
References mIdentifier.
Referenced by OnKeyDown(), and OnLeftDown().
| void Grabber::SetAsSpacer | ( | bool | bIsSpacer | ) |
Definition at line 99 of file Grabber.cpp.
References mAsSpacer.
| void Grabber::SetToolTip | ( | const TranslatableString & | toolTip | ) |
Definition at line 109 of file Grabber.cpp.
References TranslatableString::Stripped(), and TranslatableString::Translation().
Referenced by ToolBar::SetDocked(), and ToolBar::UpdatePrefs().
|
private |
Definition at line 146 of file Grabber.h.
Referenced by DrawGrabber(), OnEnter(), PushButton(), and SetAsSpacer().
|
private |
Definition at line 143 of file Grabber.h.
Referenced by SendEvent().
|
private |
Definition at line 144 of file Grabber.h.
Referenced by DrawGrabber(), OnEnter(), OnLeave(), and PushButton().
|
private |
Definition at line 145 of file Grabber.h.
Referenced by DrawGrabber(), and PushButton().