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 43 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 47 of file Grabber.h.

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

Member Function Documentation

wxEvent* GrabberEvent::Clone ( ) const
inlineoverride

Definition at line 73 of file Grabber.h.

References safenew.

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

Definition at line 60 of file Grabber.h.

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

Definition at line 70 of file Grabber.h.

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

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

Definition at line 65 of file Grabber.h.

66  {
67  mPos = pos;
68  }
wxPoint mPos
Definition: Grabber.h:80

Member Data Documentation

bool GrabberEvent::mEscaping {}
protected

Definition at line 81 of file Grabber.h.

wxPoint GrabberEvent::mPos
protected

Definition at line 80 of file Grabber.h.


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