nux-1.16.0
|
Public Member Functions | |
ComboBoxSimple (NUX_FILE_LINE_PROTO) | |
ActionItem * | AddItem (const TCHAR *label, int Uservalue=0) |
void | RemoveItem (ActionItem *item) |
void | RemoveAllItem () |
void | OnMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | OnPopupStop () |
void | RecvMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvSigActionTriggered (MenuPage *, ActionItem *) |
void | RecvSigActionTriggered2 (TableCtrl *table, TableItem *item, unsigned int row, unsigned int column) |
void | RecvSigTerminateMenuCascade () |
void | RecvGeometryChanged (Area *area, Geometry &geo) |
const TCHAR * | GetSelectionLabel () const |
int | GetSelectionUserValue () const |
int | GetNumItem () const |
ActionItem * | GetItem (int index) const |
int | GetSelectionIndex () const |
void | SetSelectionIndex (int index) |
void | MoveSelectionUp () |
void | MoveSelectionDown () |
MenuPage * | GetMenuPage () |
Public Attributes | |
sigc::signal< void, ComboBoxSimple * > | sigTriggered |
sigc::signal< void, ActionItem * > | sigActionTriggered |
Protected Member Functions | |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual Area * | FindAreaUnderMouse (const Point &mouse_position, NuxEventType event_type) |
void | RecvClosingMenuSignal (MenuPage *menu_page) |
virtual void | DoSetFocused (bool focused) |
Protected Attributes | |
MenuPage * | m_CurrentMenu |
ActionItem * | m_SelectedAction |
bool | m_block_focus |
Definition at line 37 of file ComboBoxSimple.h.
Area * nux::ComboBoxSimple::FindAreaUnderMouse | ( | const Point & | mouse_position, |
NuxEventType | event_type | ||
) | [protected, virtual] |
Return the area under the mouse pointer.
Reimplemented from nux::View.
Definition at line 190 of file ComboBoxSimple.cpp.
References nux::Area::AcceptMouseWheelEvent(), nux::Area::TestMousePointerInclusion(), and nux::Area::TestMousePointerInclusionFilterMouseWheel().
{ bool mouse_inside = TestMousePointerInclusionFilterMouseWheel(mouse_position, event_type); if(mouse_inside == false) return NULL; NUX_RETURN_VALUE_IF_TRUE(_combo_box_opening_area->TestMousePointerInclusion(mouse_position, event_type), _combo_box_opening_area); NUX_RETURN_VALUE_IF_TRUE(_combo_box_area->TestMousePointerInclusion(mouse_position, event_type), _combo_box_area); if((event_type == NUX_MOUSE_WHEEL) && (!AcceptMouseWheelEvent())) return NULL; return this; }