|
nux-1.14.0
|
Public Member Functions | |
| HSplitter (NUX_FILE_LINE_PROTO) | |
| virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
| virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
| virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
| void | AddWidget (Area *ic, float stretchfactor) |
| void | ResetSplitConfig () |
| void | clearContent () |
| void | OnSplitterMouseDown (t_s32 x, t_s32 y, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos) |
| void | OnSplitterMouseUp (t_s32 x, t_s32 y, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos) |
| void | OnSplitterMouseDrag (t_s32 x, t_s32 y, t_s32 dx, t_s32 dy, unsigned long button_flags, unsigned long key_flags, t_s32 header_pos) |
| virtual void | OverlayDrawing (GraphicsEngine &GfxContext) |
| virtual bool | CanBreakLayout () |
| Return true if this object can break the layout. | |
| virtual Area * | FindAreaUnderMouse (const Point &mouse_position, NuxEventType event_type) |
Protected Member Functions | |
| virtual long | ComputeChildLayout () |
| virtual void | DoneRedraw () |
| void | ResizeSplitter (t_s32 header_pos) |
| void | setResizeOnSplitterRelease (bool b) |
| bool | getResizeOnSplitterRelease () |
| virtual bool | AcceptKeyNavFocus () |
| virtual Area * | KeyNavIteration (KeyNavDirection direction) |
Definition at line 30 of file HSplitter.h.
| Area * nux::HSplitter::FindAreaUnderMouse | ( | const Point & | mouse_position, |
| NuxEventType | event_type | ||
| ) | [virtual] |
Return the area under the mouse pointer.
Reimplemented from nux::View.
Definition at line 577 of file HSplitter.cpp.
References nux::Area::AcceptMouseWheelEvent(), nux::Area::FindAreaUnderMouse(), and nux::Area::TestMousePointerInclusionFilterMouseWheel().
{
bool mouse_inside = TestMousePointerInclusionFilterMouseWheel(mouse_position, event_type);
if(mouse_inside == false)
return NULL;
std::vector<MySplitter*>::iterator splitter_it;
for (splitter_it = m_SplitterObject.begin(); splitter_it != m_SplitterObject.end(); splitter_it++)
{
Area* found_area = (*splitter_it)->FindAreaUnderMouse(mouse_position, event_type);
if(found_area)
return found_area;
}
std::vector<Area *>::iterator it;
for(it = m_InterfaceObject.begin(); it != m_InterfaceObject.end(); it++)
{
Area* found_area = (*it)->FindAreaUnderMouse(mouse_position, event_type);
if(found_area)
return found_area;
}
if((event_type == NUX_MOUSE_WHEEL) && (!AcceptMouseWheelEvent()))
return NULL;
return this;
}