libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgAudio::UIMouseEventsBase Class Referenceabstract

#include <UIMouseEventsBase.hpp>

Inheritance diagram for AlgAudio::UIMouseEventsBase:
AlgAudio::UIVisibilityBase AlgAudio::UIWidget AlgAudio::UIButton AlgAudio::UICheckbox AlgAudio::UIContainerMultiple AlgAudio::UIContainerSingle AlgAudio::UILabel AlgAudio::UIProgressBar AlgAudio::UISeparator AlgAudio::UITextArea AlgAudio::UITextEntry

Public Member Functions

virtual void CustomMouseEnter (Point2D)
 
virtual void CustomMouseLeave (Point2D)
 
virtual void CustomMouseMotion (Point2D, Point2D)
 
virtual bool CustomMousePress (bool, MouseButton, Point2D)
 
void OnMouseEnter (Point2D)
 
void OnMouseLeave (Point2D)
 
void OnMouseMotion (Point2D, Point2D)
 
bool OnMousePress (bool, MouseButton, Point2D)
 
virtual void RequestFocus ()=0
 
void SetFocusable (bool f)
 
- Public Member Functions inherited from AlgAudio::UIVisibilityBase
bool IsDrawn () const
 
bool IsInvisible () const
 
void SetDisplayMode (DisplayMode m)
 

Public Attributes

Point2D last_mouse_pos
 
Signal on_clicked
 
Signal< Point2Don_motion
 
Signal< bool > on_pointed
 
Signal< bool > on_pressed
 
- Public Attributes inherited from AlgAudio::UIVisibilityBase
Signal on_display_mode_changed
 

Protected Member Functions

 UIMouseEventsBase ()
 
- Protected Member Functions inherited from AlgAudio::UIVisibilityBase
 UIVisibilityBase ()
 

Protected Attributes

bool focusable = true
 
bool pointed = false
 
bool pressed = false
 
- Protected Attributes inherited from AlgAudio::UIVisibilityBase
DisplayMode display_mode = DisplayMode::Visible
 

Additional Inherited Members

- Public Types inherited from AlgAudio::UIVisibilityBase
enum  DisplayMode { DisplayMode::Visible, DisplayMode::EmptySpace, DisplayMode::Invisible }
 

Constructor & Destructor Documentation

AlgAudio::UIMouseEventsBase::UIMouseEventsBase ( )
inlineprotected

Member Function Documentation

virtual bool AlgAudio::UIMouseEventsBase::CustomMousePress ( bool  ,
MouseButton  ,
Point2D   
)
inlinevirtual

This call is supposed to return TRUE iff it's the end of the click chain, i.e. the event was NOT passed to another widget. It must return FALSE if the event was passed to any child widget.

Reimplemented in AlgAudio::CanvasView, AlgAudio::UIBox, AlgAudio::StandardModuleGUI, AlgAudio::UIAnimDrawer, AlgAudio::UILayered, AlgAudio::UISlider, AlgAudio::UICentered, AlgAudio::UIMarginBox, and AlgAudio::UIPosition.

void AlgAudio::UIMouseEventsBase::OnMouseEnter ( Point2D  )
void AlgAudio::UIMouseEventsBase::OnMouseLeave ( Point2D  )
void AlgAudio::UIMouseEventsBase::OnMouseMotion ( Point2D  ,
Point2D   
)
bool AlgAudio::UIMouseEventsBase::OnMousePress ( bool  ,
MouseButton  ,
Point2D   
)
virtual void AlgAudio::UIMouseEventsBase::RequestFocus ( )
pure virtual
void AlgAudio::UIMouseEventsBase::SetFocusable ( bool  f)
inline

Member Data Documentation

bool AlgAudio::UIMouseEventsBase::focusable = true
protected
Point2D AlgAudio::UIMouseEventsBase::last_mouse_pos
Signal AlgAudio::UIMouseEventsBase::on_clicked
Signal<Point2D> AlgAudio::UIMouseEventsBase::on_motion
Signal<bool> AlgAudio::UIMouseEventsBase::on_pointed
Signal<bool> AlgAudio::UIMouseEventsBase::on_pressed
bool AlgAudio::UIMouseEventsBase::pointed = false
protected
bool AlgAudio::UIMouseEventsBase::pressed = false
protected

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