Audacity  2.2.0
Grabber Class Referencefinal

The widget to the left of a ToolBar that allows it to be dragged around to NEW positions. More...

#include <Grabber.h>

Inheritance diagram for Grabber:

Public Member Functions

 Grabber (wxWindow *parent, wxWindowID id)
 Methods for Grabber. More...
 
virtual ~Grabber ()
 
bool AcceptsFocusFromKeyboard () const override
 
void PushButton (bool state)
 
void SetAsSpacer (bool bIsSpacer)
 

Protected Member Functions

void OnLeftDown (wxMouseEvent &event)
 
void OnEnter (wxMouseEvent &event)
 
void OnLeave (wxMouseEvent &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

bool mOver
 
bool mPressed
 
bool mAsSpacer
 

Detailed Description

The widget to the left of a ToolBar that allows it to be dragged around to NEW positions.

Constructor & Destructor Documentation

Grabber::Grabber ( wxWindow *  parent,
wxWindowID  id 
)

Methods for Grabber.

References _(), ThemeBase::Colour(), and theTheme.

Grabber::~Grabber ( )
virtual

Member Function Documentation

bool Grabber::AcceptsFocusFromKeyboard ( ) const
inlineoverride
void Grabber::DrawGrabber ( wxDC &  dc)
private
void Grabber::OnEnter ( wxMouseEvent &  event)
protected

References mAsSpacer, and mOver.

void Grabber::OnKeyDown ( wxKeyEvent &  event)
protected

References SendEvent().

void Grabber::OnLeave ( wxMouseEvent &  event)
protected

References mOver.

void Grabber::OnLeftDown ( wxMouseEvent &  event)
protected

References PushButton(), and SendEvent().

void Grabber::OnPaint ( wxPaintEvent &  event)
protected

References DrawGrabber().

void Grabber::PushButton ( bool  state)

References mAsSpacer, mOver, and mPressed.

Referenced by OnLeftDown(), and ToolBar::SetDocked().

void Grabber::SendEvent ( wxEventType  type,
const wxPoint &  pos,
bool  escaping 
)
private

Referenced by OnKeyDown(), and OnLeftDown().

void Grabber::SetAsSpacer ( bool  bIsSpacer)

References mAsSpacer.

Referenced by AdornedRulerPanel::ReCreateButtons().

Member Data Documentation

bool Grabber::mAsSpacer
private
bool Grabber::mOver
private
bool Grabber::mPressed
private

Referenced by DrawGrabber(), and PushButton().


The documentation for this class was generated from the following files: