
Controls may be disabled, which stops them from reacting to user input.
Public Member Functions | |
| virtual bool | hasFocus () const =0 |
| checks if this object has the keyboard focus | |
| virtual bool | isEnabled () const =0 |
| checks if this widget is enabled | |
| virtual bool | isUnder (const Point &pt) const =0 |
| checks if this widget is positioned under the given point. | |
| virtual void | processKeyEvent (KeyEvent &evt)=0 |
| notifies the widget of a key event | |
| virtual void | processMouseMotion (MouseEvent &evt)=0 |
| notifies the widget of a mouse motion | |
| virtual void | processMousePress (MouseEvent &evt)=0 |
| notifies the widget of a pressed mouse button | |
| virtual void | processMouseRelease (MouseEvent &evt)=0 |
| notifies the widget of a released mouse button | |
| virtual void | releaseFocus () const =0 |
| drops the input focus | |
| virtual bool | requestFocus ()=0 |
| attempts to get the input focus for this object | |
| virtual void | setEnabled (bool e)=0 |
| enables or disables this widget | |
| virtual | ~Control () |
|
|
|
|
|
checks if this object has the keyboard focus
Implemented in ONE::gui::Component, and ONE::gui::TopLevel. |
|
|
checks if this widget is enabled
Implemented in ONE::gui::Widget. |
|
|
checks if this widget is positioned under the given point.
Implemented in ONE::gui::Picture, and ONE::gui::Widget. |
|
|
notifies the widget of a key event
If this is not a top level container and the widget processes the event, it must call the events Implemented in ONE::gui::AbstractButton, ONE::gui::CommandField, ONE::gui::Console, ONE::gui::Frame, ONE::gui::Label, ONE::gui::List, ONE::gui::Panel, ONE::gui::Picture, ONE::gui::ScrollBar, ONE::gui::ScrollBarSlider, ONE::gui::TextField, ONE::gui::TitleBar, ONE::gui::Viewport, and ONE::gui::Window. |
|
|
notifies the widget of a mouse motion This event may occur both inside and outside of this object's bounds. Implemented in ONE::gui::AbstractButton, ONE::gui::Console, ONE::gui::Frame, ONE::gui::Label, ONE::gui::List, ONE::gui::Panel, ONE::gui::Picture, ONE::gui::ScrollBar, ONE::gui::ScrollBarSlider, ONE::gui::TextField, ONE::gui::TitleBar, ONE::gui::Viewport, and ONE::gui::Window. |
|
|
notifies the widget of a pressed mouse button
Implementations may assume that the mouse position is on this widget (i.e. Implemented in ONE::gui::AbstractButton, ONE::gui::Console, ONE::gui::Frame, ONE::gui::Label, ONE::gui::List, ONE::gui::Panel, ONE::gui::Picture, ONE::gui::ScrollBar, ONE::gui::ScrollBarSlider, ONE::gui::TextField, ONE::gui::TitleBar, ONE::gui::Viewport, and ONE::gui::Window. |
|
|
notifies the widget of a released mouse button This event may occur both inside and outside of this object's bounds. Implemented in ONE::gui::AbstractButton, ONE::gui::Console, ONE::gui::Frame, ONE::gui::Label, ONE::gui::List, ONE::gui::Panel, ONE::gui::Picture, ONE::gui::ScrollBar, ONE::gui::ScrollBarSlider, ONE::gui::TextField, ONE::gui::TitleBar, ONE::gui::Viewport, and ONE::gui::Window. |
|
|
drops the input focus
Implemented in ONE::gui::Component, and ONE::gui::TopLevel. |
|
|
attempts to get the input focus for this object
The function may not succeed in acquiring the focus in some situations. For example, calling this function on a top level container while a modal
Implemented in ONE::gui::Component, and ONE::gui::TopLevel. |
|
|
enables or disables this widget Disabled widgets will no longer react to user input.
Implemented in ONE::gui::Button, ONE::gui::Console, ONE::gui::Frame, ONE::gui::TitleBar, and ONE::gui::Widget. |
1.4.3