
Viewport control Widget
Public Types | |
| typedef ONE::util::ConstIterator< const Widget * > | ChildConstItr |
| typedef ONE::util::SmartPointer< ChildConstItr, ONE::util::DestructiveCopy > | ChildConstItrSP |
| typedef ONE::util::Iterator< Widget * > | ChildItr |
| typedef ONE::util::SmartPointer< ChildItr, ONE::util::DestructiveCopy > | ChildItrSP |
Public Member Functions | |
| virtual void | add (Component *, const LayoutConstraint *) |
| virtual void | clear () |
| void | draw (Renderer2D *r, const int &x, const int &y, const int &w, const int &h) |
| draws a portion of this object | |
| void | draw (Renderer2D *) |
| draws this object. | |
| Color | getBackground () const |
| accesses the color that should be used to render the object's background. | |
| const Bounds & | getBounds () const |
| accesses this object's bounds | |
| int | getChildCount () const |
| ChildConstItrSP | getChildren () const |
| ChildItrSP | getChildren () |
| virtual const IMSP & | getDefaultInputMap () const |
| accesses this widget's default input map | |
| const UIDSP & | getDelegate () const |
| DelegateID | getDelegateID () const |
| accesses the ID that identifies the object's UIDelegate type | |
| Color | getDisabledBackground () const |
| accesses the color that should be used to render the object's background when the object is disabled | |
| Color | getDisabledForeground () const |
| accesses the color that should be used to render the object's foreground when the object is disabled. | |
| Color | getFocus () const |
| accesses the color that should be used to render the component focus | |
| Color | getForeground () const |
| accesses the color that should be used to render the object's foreground. | |
| const IMSP & | getInputMap () const |
| const SliderModelPtr & | getModel () const |
| Orientation | getOrientation () const |
| Viewport * | getOwner () const |
| Widget * | getParent () const |
| const Point & | getPosition () const |
| accesses this object's position | |
| Size | getPreferredSize () const |
| determines this object's preferred size. | |
| const Size & | getSize () const |
| accesses this object's size | |
| bool | hasChildren () const |
| bool | hasFocus () const |
| checks if this component has the input focus | |
| bool | isEnabled () const |
| checks if this widget is enabled | |
| bool | isOpaque () const |
| checks this object's opacity | |
| virtual bool | isUnder (const Point &) const |
| virtual bool | isVisible () const |
| acesses the visibility property | |
| void | layout () |
| lays out this component's internal elements | |
| void | processKeyEvent (KeyEvent &) |
| notifies the widget of a key event | |
| void | processMouseMotion (MouseEvent &) |
| notifies the widget of a mouse motion | |
| void | processMousePress (MouseEvent &) |
| notifies the widget of a pressed mouse button | |
| void | processMouseRelease (MouseEvent &) |
| notifies the widget of a released mouse button | |
| void | releaseFocus () const |
| drops the input focus | |
| virtual void | remove (Component *) |
| bool | requestFocus () |
| requests the input focus for this component. | |
| void | scheduleLayout () |
schedules a call to layout | |
| ScrollBar (Viewport *own, Orientation o, const SliderModelPtr &mdl=0) | |
| void | setBackground (const Color &c, bool laf=true) |
| changes this object's background color | |
| void | setBounds (const int &x, const int &y, const int &w, const int &h) |
| void | setBounds (const Bounds &b) |
| changes this object's bounds | |
| void | setDisabledBackground (const Color &c, bool laf=true) |
| changes this object's disabled background color | |
| void | setDisabledForeground (const Color &c, bool laf=true) |
| changes this object's disabled foreground color | |
| virtual void | setEnabled (bool) |
| enables or disables this component | |
| void | setFocus (const Color &c, bool laf=true) |
| changes the color that will be used to draw the component focus marker | |
| void | setForeground (const Color &c, bool laf=true) |
| changes this object's foreground color | |
| void | setInputMap (const IMSP &im, bool laf=true) |
| void | setModel (const SliderModelPtr &mdl) |
| void | setOpaque (bool o, bool laf=true) |
| changes this object's opacity | |
| void | setOwner (Viewport *v) |
| void | setParent (Widget *p) |
| changes this component's parent | |
| void | setPosition (const int &x, const int &y) |
| void | setPosition (const Point &p) |
| changes this object's position | |
| void | setPreferredSize (const Size &s) |
| sets the object's preferred size | |
| void | setSize (const int &w, const int &h) |
| void | setSize (const Size &s) |
| changes this object's size | |
| virtual void | setVisible (bool vis) |
| void | updateUI () |
| ~ScrollBar () | |
Protected Types | |
| typedef unsigned int | bits |
Protected Member Functions | |
| void | doDraw (Renderer2D *, const int &, const int &, const int &, const int &) |
| performs subclass-specific drawing | |
| bool | getBit (const bits &bit) const |
| void | setBit (const bits &bit, bool val) |
Protected Attributes | |
| Size | prefSize |
Static Protected Attributes | |
| static const bits | ENABLED |
| static const bits | LSCHED |
| set when this object is scheduled to be laid out | |
| static const bits | OPQ |
| opacity bit | |
| static const bits | VIS |
| visibility bit | |
Classes | |
| struct | Listener |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
the default implementation of this function does nothing Implements ONE::gui::Widget. Reimplemented in ONE::gui::Panel. |
|
|
the default implementation of this function does nothing Implements ONE::gui::Widget. Reimplemented in ONE::gui::Panel. |
|
||||||||||||||||||||||||
|
performs subclass-specific drawing
Implementations of this function may assume that this object is visible and that
Implements ONE::gui::Displayable. |
|
||||||||||||||||||||||||
|
draws a portion of this object
This function calls
|
|
|
draws this object.
This function calls |
|
|
accesses the color that should be used to render the object's background.
|
|
|
|
|
|
accesses this object's bounds
The
|
|
|
the default implementation of this function returns Reimplemented from ONE::gui::Component. |
|
|
the default implementation of this function returns Reimplemented from ONE::gui::Component. |
|
|
the default implementation of this function returns Reimplemented from ONE::gui::Component. |
|
|
accesses this widget's default input map The default implementation returns an empty map. Subclasses may override this function in order to specify a different default map.
Reimplemented in ONE::gui::AbstractButton, ONE::gui::CommandField, ONE::gui::Frame, ONE::gui::List, and ONE::gui::ScrollBarSlider. |
|
|
|
|
|
accesses the ID that identifies the object's UIDelegate type
Subclasses of this class must override this function in order to receive a proper delegate. See
Implements ONE::gui::Displayable. |
|
|
accesses the color that should be used to render the object's background when the object is disabled
|
|
|
accesses the color that should be used to render the object's foreground when the object is disabled.
|
|
|
accesses the color that should be used to render the component focus
|
|
|
accesses the color that should be used to render the object's foreground.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements ONE::gui::Widget. |
|
|
accesses this object's position
|
|
|
determines this object's preferred size.
If this object has a non-degenerate preferred size (i.e. Implements ONE::gui::Displayable. |
|
|
accesses this object's size
|
|
|
the default implementation of this function returns Reimplemented from ONE::gui::Component. |
|
|
checks if this component has the input focus
This function queries the
Implements ONE::gui::Control. |
|
|
checks if this widget is enabled
Implements ONE::gui::Control. |
|
|
checks this object's opacity objects that are set to not opaque (i.e. transparent) should not draw their background display.
|
|
|
This implementation checks if the given point is within the widget's bounds and then queries the delegate. Implements ONE::gui::Control. Reimplemented in ONE::gui::Picture. |
|
|
acesses the visibility property
The default value is
|
|
|
lays out this component's internal elements
This function may not change this object's bounds. Implementations should lay out their internal elements according to the currently set bounds. Implements ONE::gui::Displayable. |
|
|
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 Implements ONE::gui::Control. |
|
|
notifies the widget of a mouse motion This event may occur both inside and outside of this object's bounds. Implements ONE::gui::Control. |
|
|
notifies the widget of a pressed mouse button
Implementations may assume that the mouse position is on this widget (i.e. Implements ONE::gui::Control. |
|
|
notifies the widget of a released mouse button This event may occur both inside and outside of this object's bounds. Implements ONE::gui::Control. |
|
|
drops the input focus
Implements ONE::gui::Control. |
|
|
the default implementation of this function does nothing Implements ONE::gui::Widget. Reimplemented in ONE::gui::Panel. |
|
|
requests the input focus for this component.
The
Implements ONE::gui::Control. |
|
|
schedules a call to
This function makes component layout more efficient as several calls to this function within one frame duration result in only one call to |
|
||||||||||||
|
changes this object's background color
The setting is active immediately. If
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
changes this object's bounds
See
|
|
||||||||||||
|
changes this object's disabled background color
The setting is active immediately. If
|
|
||||||||||||
|
changes this object's disabled foreground color
The setting is active immediately. If
|
|
|
enables or disables this component Disabled components no longer react to user input. If this object has children, they are modified accordingly. Implements ONE::gui::Control. Reimplemented in ONE::gui::Button, ONE::gui::Console, ONE::gui::Frame, and ONE::gui::TitleBar. |
|
||||||||||||
|
changes the color that will be used to draw the component focus marker
The setting is active immediately. If
|
|
||||||||||||
|
changes this object's foreground color
The setting is active immediately. If
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
changes this object's opacity
The setting is active immediately. If
|
|
|
|
|
|
changes this component's parent If a previous parent was set, this component will be removed from it.
|
|
||||||||||||
|
|
|
|
changes this object's position Note that this function does not request a re-layout.
|
|
|
sets the object's preferred size If the value is set to an empty size object, the component will calculate its preferred size.
|
|
||||||||||||
|
|
|
|
changes this object's size Note that this function does not request a re-layout.
|
|
|
This function releases the input focus if the widget is set to invisible. Reimplemented from ONE::gui::Displayable. |
|
|
Updates the super class and the widget's Reimplemented from ONE::gui::Widget. |
|
|
|
|
|
set when this object is scheduled to be laid out
|
|
|
opacity bit
|
|
|
|
|
|
visibility bit
|
1.4.3