|
nux-1.14.0
|
Public Member Functions | |
| VScrollBar (NUX_FILE_LINE_PROTO) | |
| virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
| virtual Area * | FindAreaUnderMouse (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 | |
| VLayout * | vlayout |
| 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 |
| TimerFunctor * | callback |
| TimerFunctor * | up_callback |
| TimerFunctor * | down_callback |
| TimerFunctor * | trackup_callback |
| TimerFunctor * | trackdown_callback |
| TimerHandle | m_UpTimerHandler |
| TimerHandle | m_DownTimerHandler |
| TimerHandle | m_TrackUpTimerHandler |
| TimerHandle | m_TrackDownTimerHandler |
| Point | m_TrackMouseCoord |
Friends | |
| class | HLayout |
| class | VLayout |
| class | Layout |
Definition at line 36 of file VScrollBar.h.
| Area * nux::VScrollBar::FindAreaUnderMouse | ( | const Point & | mouse_position, |
| NuxEventType | event_type | ||
| ) | [virtual] |
Return 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;
}