Audacity 3.2.0
Public Member Functions | Protected Attributes | List of all members
ExpandingToolBarEvtHandler Class Referencefinal

A custom event handler for ExpandingToolBar. More...

Inheritance diagram for ExpandingToolBarEvtHandler:
[legend]
Collaboration diagram for ExpandingToolBarEvtHandler:
[legend]

Public Member Functions

 ExpandingToolBarEvtHandler (ExpandingToolBar *toolbar, wxWindow *window, wxEvtHandler *inheritedEvtHandler)
 
bool ProcessEvent (wxEvent &evt) override
 
 ~ExpandingToolBarEvtHandler ()
 

Protected Attributes

ExpandingToolBarmToolBar
 
wxWindow * mWindow
 
wxEvtHandler * mInheritedEvtHandler
 

Detailed Description

A custom event handler for ExpandingToolBar.

Definition at line 271 of file ExpandingToolBar.cpp.

Constructor & Destructor Documentation

◆ ExpandingToolBarEvtHandler()

ExpandingToolBarEvtHandler::ExpandingToolBarEvtHandler ( ExpandingToolBar toolbar,
wxWindow *  window,
wxEvtHandler *  inheritedEvtHandler 
)
inline

Definition at line 274 of file ExpandingToolBar.cpp.

277 {
278 mToolBar = toolbar;
279 mWindow = window;
280 mInheritedEvtHandler = inheritedEvtHandler;
281
282 window->PushEventHandler(this);
283}

References mInheritedEvtHandler, mToolBar, and mWindow.

◆ ~ExpandingToolBarEvtHandler()

ExpandingToolBarEvtHandler::~ExpandingToolBarEvtHandler ( )
inline

Definition at line 295 of file ExpandingToolBar.cpp.

296 {
297 mWindow->RemoveEventHandler(this);
298 }

References mWindow.

Member Function Documentation

◆ ProcessEvent()

bool ExpandingToolBarEvtHandler::ProcessEvent ( wxEvent &  evt)
inlineoverride

Definition at line 285 of file ExpandingToolBar.cpp.

286 {
287// if (mToolBar->IsCursorInWindow())
289// else
290// mToolBar->TryAutoExpand();
291
292 return mInheritedEvtHandler->ProcessEvent(evt);
293 }

References mInheritedEvtHandler, mToolBar, and ExpandingToolBar::TryAutoExpand().

Here is the call graph for this function:

Member Data Documentation

◆ mInheritedEvtHandler

wxEvtHandler* ExpandingToolBarEvtHandler::mInheritedEvtHandler
protected

Definition at line 303 of file ExpandingToolBar.cpp.

Referenced by ExpandingToolBarEvtHandler(), and ProcessEvent().

◆ mToolBar

ExpandingToolBar* ExpandingToolBarEvtHandler::mToolBar
protected

Definition at line 301 of file ExpandingToolBar.cpp.

Referenced by ExpandingToolBarEvtHandler(), and ProcessEvent().

◆ mWindow

wxWindow* ExpandingToolBarEvtHandler::mWindow
protected

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