Audacity  2.2.2
Public Member Functions | Protected Attributes | List of all members
GrabberEvent Class Referencefinal

Grabber Class. More...

#include <Grabber.h>

Inheritance diagram for GrabberEvent:

Public Member Functions

 GrabberEvent (wxEventType type=wxEVT_NULL, wxWindowID winid=0, const wxPoint &pt=wxDefaultPosition, bool escaping=false)
 
 GrabberEvent (const GrabberEvent &event)=default
 
const wxPoint & GetPosition () const
 
void SetPosition (const wxPoint &pos)
 
bool IsEscaping () const
 
wxEvent * Clone () const override
 

Protected Attributes

wxPoint mPos
 
bool mEscaping {}
 

Detailed Description

Grabber Class.

Definition at line 42 of file Grabber.h.

Constructor & Destructor Documentation

GrabberEvent::GrabberEvent ( wxEventType  type = wxEVT_NULL,
wxWindowID  winid = 0,
const wxPoint &  pt = wxDefaultPosition,
bool  escaping = false 
)
inline

Definition at line 46 of file Grabber.h.

50  : wxCommandEvent(type, winid)
51  {
52  mPos = pt;
53  mEscaping = escaping;
54  }
wxPoint mPos
Definition: Grabber.h:79
bool mEscaping
Definition: Grabber.h:80
GrabberEvent::GrabberEvent ( const GrabberEvent event)
default

Member Function Documentation

wxEvent* GrabberEvent::Clone ( ) const
inlineoverride

Definition at line 72 of file Grabber.h.

References safenew.

73  {
74  return safenew GrabberEvent(*this);
75  }
#define safenew
Definition: Audacity.h:223
GrabberEvent(wxEventType type=wxEVT_NULL, wxWindowID winid=0, const wxPoint &pt=wxDefaultPosition, bool escaping=false)
Definition: Grabber.h:46
const wxPoint& GrabberEvent::GetPosition ( ) const
inline

Definition at line 59 of file Grabber.h.

60  {
61  return mPos;
62  }
wxPoint mPos
Definition: Grabber.h:79
bool GrabberEvent::IsEscaping ( ) const
inline

Definition at line 69 of file Grabber.h.

Referenced by ToolManager::OnGrabber(), and ToolDock::OnGrabber().

69 { return mEscaping; }
bool mEscaping
Definition: Grabber.h:80
void GrabberEvent::SetPosition ( const wxPoint &  pos)
inline

Definition at line 64 of file Grabber.h.

65  {
66  mPos = pos;
67  }
wxPoint mPos
Definition: Grabber.h:79

Member Data Documentation

bool GrabberEvent::mEscaping {}
protected

Definition at line 80 of file Grabber.h.

wxPoint GrabberEvent::mPos
protected

Definition at line 79 of file Grabber.h.


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