bWidgets
Core widget toolkit designed for Blender
bWidgets::bwAbstractButtonHandler Class Reference

#include <bwAbstractButton.h>

+ Inheritance diagram for bWidgets::bwAbstractButtonHandler:
+ Collaboration diagram for bWidgets::bwAbstractButtonHandler:

Public Member Functions

 bwAbstractButtonHandler (bwAbstractButton &button)
 
virtual ~bwAbstractButtonHandler ()=default
 
void onMouseEnter (bwEvent &) override
 
void onMouseLeave (bwEvent &) override
 
void onMousePress (bwMouseButtonEvent &) override
 
void onMouseRelease (bwMouseButtonEvent &) override
 
- Public Member Functions inherited from bWidgets::bwScreenGraph::EventHandler
 EventHandler ()=default
 
virtual ~EventHandler ()=default
 
void addEventListener (EventType event_type, EventListener listener)
 
virtual void onMouseMove (bwEvent &)
 
virtual void onMouseEnter (bwEvent &)
 
virtual void onMouseLeave (bwEvent &)
 
virtual void onMousePress (bwMouseButtonEvent &)
 
virtual void onMouseRelease (bwMouseButtonEvent &)
 
virtual void onMouseClick (bwMouseButtonEvent &)
 
virtual void onMouseDrag (bwMouseButtonDragEvent &)
 
virtual void onMouseWheel (bwMouseWheelEvent &)
 

Protected Member Functions

void apply ()
 

Protected Attributes

bwAbstractButtonbutton
 

Additional Inherited Members

- Public Types inherited from bWidgets::bwScreenGraph::EventHandler
enum  EventType { MOUSE_ENTER , MOUSE_LEAVE , TOT_EVENT_TYPES }
 

Constructor & Destructor Documentation

◆ bwAbstractButtonHandler()

bWidgets::bwAbstractButtonHandler::bwAbstractButtonHandler ( bwAbstractButton button)

◆ ~bwAbstractButtonHandler()

virtual bWidgets::bwAbstractButtonHandler::~bwAbstractButtonHandler ( )
virtualdefault

Member Function Documentation

◆ apply()

void bWidgets::bwAbstractButtonHandler::apply ( )
protected

◆ onMouseEnter()

void bWidgets::bwAbstractButtonHandler::onMouseEnter ( bwEvent )
overridevirtual

◆ onMouseLeave()

void bWidgets::bwAbstractButtonHandler::onMouseLeave ( bwEvent )
overridevirtual

◆ onMousePress()

void bWidgets::bwAbstractButtonHandler::onMousePress ( bwMouseButtonEvent event)
overridevirtual

◆ onMouseRelease()

void bWidgets::bwAbstractButtonHandler::onMouseRelease ( bwMouseButtonEvent event)
overridevirtual

Member Data Documentation

◆ button

bwAbstractButton& bWidgets::bwAbstractButtonHandler::button
protected

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