tbx  0.7.3
Public Member Functions | List of all members
tbx::SliderValueChangedEvent Class Reference

Information on event generated when the value of the slider has been changed. More...

#include <slider.h>

Inheritance diagram for tbx::SliderValueChangedEvent:
tbx::ValueChangedEvent tbx::EventInfo

Public Member Functions

 SliderValueChangedEvent (IdBlock &id_block, PollBlock &data)
 Construct the event from Toolbox and WIMP event data. More...
 
bool drag_start_or_click () const
 Check if value was changed by a click or start of dragging of the bar. More...
 
bool drag_in_progress () const
 Check if the drag is in progress. More...
 
bool drag_ended () const
 Check if this is the end of a drag. More...
 
- Public Member Functions inherited from tbx::ValueChangedEvent
 ValueChangedEvent (IdBlock &id_block, PollBlock &data)
 Construct the event from Toolbox and WIMP event data. More...
 
int value () const
 Get the value of the gadget that delivered the event. More...
 
- Public Member Functions inherited from tbx::EventInfo
 EventInfo (const IdBlock &id_block, PollBlock &data)
 Contruct the event information from the id_block and data update by the toolbox.
 
const IdBlockid_block () const
 IdBlock for the current event. More...
 

Additional Inherited Members

- Protected Attributes inherited from tbx::EventInfo
PollBlock_data
 raw data from the event
 

Detailed Description

Information on event generated when the value of the slider has been changed.

Constructor & Destructor Documentation

tbx::SliderValueChangedEvent::SliderValueChangedEvent ( IdBlock id_block,
PollBlock data 
)
inline

Construct the event from Toolbox and WIMP event data.

Parameters
id_blockToolbox IDs for this event
dataInformation returned from the WIMP for this event

Member Function Documentation

bool tbx::SliderValueChangedEvent::drag_ended ( ) const
inline

Check if this is the end of a drag.

Returns
true if this event is the end of a slider drag
bool tbx::SliderValueChangedEvent::drag_in_progress ( ) const
inline

Check if the drag is in progress.

Returns
true if a drag of the slider is in progress
bool tbx::SliderValueChangedEvent::drag_start_or_click ( ) const
inline

Check if value was changed by a click or start of dragging of the bar.

Returns
true if value was changed by a click or start of dragging of the bar.

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