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

#include <bwEvent.h>

+ Inheritance diagram for bWidgets::bwMouseButtonDragEvent:
+ Collaboration diagram for bWidgets::bwMouseButtonDragEvent:

Public Types

enum  DragState { DRAGGING_BELOW_THRESHOLD , DRAGGING }
 
- Public Types inherited from bWidgets::bwMouseButtonEvent
enum class  Button { LEFT , RIGHT , WHEEL , UNKNOWN }
 

Public Member Functions

 bwMouseButtonDragEvent (Button _button, bwPoint _location)
 
void addMouseMovement (bwPoint new_location)
 
- Public Member Functions inherited from bWidgets::bwMouseButtonEvent
 bwMouseButtonEvent (Button _button, bwPoint _location)
 
- Public Member Functions inherited from bWidgets::bwEvent
 bwEvent (bwPoint _location)
 
virtual ~bwEvent ()=default
 
void swallow ()
 
void unswallow ()
 
auto isSwallowed () const -> bool
 

Public Attributes

bwDistance drag_distance
 
DragState drag_state
 
- Public Attributes inherited from bWidgets::bwMouseButtonEvent
const Button button
 
- Public Attributes inherited from bWidgets::bwEvent
const bwPoint location
 

Static Public Attributes

static const short DRAG_THRESHOLD = 3
 

Member Enumeration Documentation

◆ DragState

Enumerator
DRAGGING_BELOW_THRESHOLD 
DRAGGING 

Constructor & Destructor Documentation

◆ bwMouseButtonDragEvent()

bWidgets::bwMouseButtonDragEvent::bwMouseButtonDragEvent ( Button  _button,
bwPoint  _location 
)

Member Function Documentation

◆ addMouseMovement()

void bWidgets::bwMouseButtonDragEvent::addMouseMovement ( bwPoint  new_location)

Member Data Documentation

◆ drag_distance

bwDistance bWidgets::bwMouseButtonDragEvent::drag_distance

◆ drag_state

DragState bWidgets::bwMouseButtonDragEvent::drag_state

◆ DRAG_THRESHOLD

const short bWidgets::bwMouseButtonDragEvent::DRAG_THRESHOLD = 3
static

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