nux-1.16.0
nux::VScrollBar Class Reference
Inheritance diagram for nux::VScrollBar:
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

 VScrollBar (NUX_FILE_LINE_PROTO)
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
virtual AreaFindAreaUnderMouse (const Point &mouse_position, NuxEventType event_type)
void DrawDownTriangle (GraphicsEngine &GfxContext, int width, int height, const Geometry &geo, BasePainter &painter)
void DrawUpTriangle (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 RecvStartScrollDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvStartScrollUp (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvEndScrollDown (int x, int y, unsigned long button_flags, unsigned long key_flags)
void RecvEndScrollUp (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 > OnScrollUp
sigc::signal< void, float, int > OnScrollDown
sigc::signal< void > sigVScrollBarSliderMouseDown
bool b_MouseDownTimer
bool b_MouseUpTimer
float m_color_factor

Protected Member Functions

void RecvMouseWheel (int x, int y, int wheel_delta, long button_flags, unsigned long key_flags)
virtual long PostLayoutManagement (long LayoutResult)
bool AtMinimum ()
bool AtMaximum ()

Protected Attributes

VLayoutvlayout
InputArea_slider
InputArea_scroll_up_button
InputArea_scroll_down_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
TimerFunctorup_callback
TimerFunctordown_callback
TimerFunctortrackup_callback
TimerFunctortrackdown_callback
TimerHandle m_UpTimerHandler
TimerHandle m_DownTimerHandler
TimerHandle m_TrackUpTimerHandler
TimerHandle m_TrackDownTimerHandler
Point m_TrackMouseCoord

Friends

class HLayout
class VLayout
class Layout

Detailed Description

Definition at line 36 of file VScrollBar.h.


Member Function Documentation

Area * nux::VScrollBar::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 278 of file VScrollBar.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_down_button->TestMousePointerInclusion(mouse_position, event_type), _scroll_down_button);
    NUX_RETURN_VALUE_IF_TRUE(_scroll_up_button->TestMousePointerInclusion(mouse_position, event_type), _scroll_up_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