nux-1.16.0
nux::HScrollBar Class Reference
Inheritance diagram for nux::HScrollBar:
nux::ScrollBar nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::Introspectable

List of all members.

Public Member Functions

 HScrollBar (NUX_FILE_LINE_PROTO)
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
virtual AreaFindAreaUnderMouse (const Point &mouse_position, NuxEventType event_type)
void DrawLeftTriangle (GraphicsEngine &GfxContext, int width, int height, const Geometry &geo, BasePainter &painter)
void DrawRightTriangle (GraphicsEngine &GfxContext, int width, int height, const Geometry &geo, BasePainter &painter)
virtual void Draw (GraphicsEngine &GfxContext, bool force_draw)
void SetContainerSize (int x, int y, int w, int h)
void SetContentSize (int x, int y, int w, int h)
void SetContentOffset (float dx, float dy)
void ComputeScrolling ()
void SetValue (float value)
void SetParameterName (const char *parameter_name)
void RecvStartScrollRight (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvStartScrollLeft (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvEndScrollRight (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvEndScrollLeft (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvTrackMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvTrackMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvTrackMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)
void OnSliderMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void OnSliderMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags)
void OnSliderMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags)

Public Attributes

sigc::signal< void > sigClick
sigc::signal< void, float, int > OnScrollLeft
sigc::signal< void, float, int > OnScrollRight
sigc::signal< void > sigHScrollBarSliderMouseDown
bool b_MouseDownTimer
bool b_MouseUpTimer
float m_color_factor

Protected Member Functions

virtual long PostLayoutManagement (long LayoutResult)
bool AtMinimum ()
bool AtMaximum ()

Protected Attributes

HLayouthlayout
InputArea_slider
InputArea_scroll_left_button
InputArea_scroll_right_button
InputArea_track
int content_width_
int content_height_
float content_offset_x_
float content_offset_y_
int container_width_
int container_height_
int m_TrackWidth
int m_TrackHeight
int m_SlideBarOffsetX
int m_SlideBarOffsetY
float stepX
float stepY
int m_SliderDragPositionX
int m_SliderDragPositionY
TimerFunctorcallback
TimerFunctorleft_callback
TimerFunctorright_callback
TimerFunctortrackleft_callback
TimerFunctortrackright_callback
TimerHandle m_LeftTimerHandler
TimerHandle m_RightTimerHandler
TimerHandle m_TrackLeftTimerHandler
TimerHandle m_TrackRightTimerHandler
Point m_TrackMouseCoord

Friends

class HLayout
class VLayout
class Layout

Detailed Description

Definition at line 36 of file HScrollBar.h.


Member Function Documentation

Area * nux::HScrollBar::FindAreaUnderMouse ( const Point mouse_position,
NuxEventType  event_type 
) [virtual]

Return the area under the mouse pointer.

Returns:
The Area under the mouse pointer.

Reimplemented from nux::View.

Definition at line 273 of file HScrollBar.cpp.

References nux::Area::AcceptMouseWheelEvent(), nux::Area::TestMousePointerInclusion(), and nux::Area::TestMousePointerInclusionFilterMouseWheel().

Referenced by nux::ScrollView::FindAreaUnderMouse().

  {
    bool mouse_inside = TestMousePointerInclusionFilterMouseWheel(mouse_position, event_type);

    if(mouse_inside == false)
      return NULL;

    NUX_RETURN_VALUE_IF_TRUE(_scroll_right_button->TestMousePointerInclusion(mouse_position, event_type), _scroll_right_button);
    NUX_RETURN_VALUE_IF_TRUE(_scroll_left_button->TestMousePointerInclusion(mouse_position, event_type), _scroll_left_button);
    NUX_RETURN_VALUE_IF_TRUE(_slider->TestMousePointerInclusion(mouse_position, event_type), _slider);
    NUX_RETURN_VALUE_IF_TRUE(_track->TestMousePointerInclusion(mouse_position, event_type), _track);

    if((event_type == NUX_MOUSE_WHEEL) && (!AcceptMouseWheelEvent()))
      return NULL;
    return this;
  }

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends