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

#include <bwTextBox.h>

+ Inheritance diagram for bWidgets::bwTextBoxHandler:
+ Collaboration diagram for bWidgets::bwTextBoxHandler:

Public Member Functions

 bwTextBoxHandler (bwTextBox &textbox)
 
virtual ~bwTextBoxHandler ()=default
 
void onMouseEnter (bwEvent &) override
 
void onMouseLeave (bwEvent &) override
 
void onMousePress (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 startTextEditing ()
 
void endTextEditing ()
 

Protected Attributes

bwTextBoxtextbox
 
bool is_dragging = false
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ bwTextBoxHandler()

bWidgets::bwTextBoxHandler::bwTextBoxHandler ( bwTextBox textbox)

◆ ~bwTextBoxHandler()

virtual bWidgets::bwTextBoxHandler::~bwTextBoxHandler ( )
virtualdefault

Member Function Documentation

◆ endTextEditing()

void bWidgets::bwTextBoxHandler::endTextEditing ( )
protected

◆ onMouseEnter()

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

◆ onMouseLeave()

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

◆ onMousePress()

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

◆ startTextEditing()

void bWidgets::bwTextBoxHandler::startTextEditing ( )
protected

Member Data Documentation

◆ is_dragging

bool bWidgets::bwTextBoxHandler::is_dragging = false
protected

◆ textbox

bwTextBox& bWidgets::bwTextBoxHandler::textbox
protected

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