Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::gui::CommandField Class Reference

Inheritance diagram for ONE::gui::CommandField:

Inheritance graph
[legend]
List of all members.

Detailed Description

TextField especially for the use as a command input widget.

The CommandField fires a TextEvent containing the currently displayed text whenever the registered action key is pressed.

Author:
Daniel Seibert


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
typedef TextListener * LPtr
typedef KeyListener * LPtr

Public Member Functions

virtual void add (Component *, const LayoutConstraint *)
void addKeyListener (const LPtr &l)
void addTextListener (const LPtr &l)
virtual void clear ()
bool clearsOnExecute () const
 checks if the input is cleared when the action key is pressed
void clearText ()
 CommandField (const string &t="")
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.
 EventDispatcher ()
 EventDispatcher ()
void execute ()
 emulates a press of the action key
void fireEvent (TextEvent &e) const
 notifies all registered listeners
void fireEvent (KeyEvent &e) const
 notifies all registered listeners
Color getBackground () const
 accesses the color that should be used to render the object's background.
const BrdSPgetBorder () const
 accesses the component's border
const BrdDSPgetBorderDelegate () const
const BoundsgetBounds () const
 accesses this object's bounds
int getCaretPosition () const
virtual int getChildCount () const
virtual ChildConstItrSP getChildren () const
virtual ChildItrSP getChildren ()
const IMSPgetDefaultInputMap () const
 accesses this widget's default input map
const UIDSPgetDelegate () const
DelegateID getDelegateID () const
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
const FntSPgetFont () const
 accesses the font that should be used to render the text
Color getForeground () const
 accesses the color that should be used to render the object's foreground.
unsigned char getHorizontalAlignment () const
const IMSPgetInputMap () const
TextModelPtr getModel () const
WidgetgetParent () const
const PointgetPosition () const
 accesses this object's position
Size getPreferredSize () const
 determines this object's preferred size.
const SizegetSize () const
 accesses this object's size
std::string getText () const
const PointgetTextOffset () const
 accesses the text position offset
unsigned char getVerticalAlignment () const
virtual bool hasChildren () const
bool hasFocus () const
 checks if this component has the input focus
bool isEnabled () const
 checks if this widget is enabled
bool isMuted () const
 reflects this dispatcher's muted state.
bool isMuted () const
 reflects this dispatcher's muted state.
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 processTextModelEvent (TextModelEvent &)
void releaseFocus () const
 drops the input focus
virtual void remove (Component *)
void removeKeyListener (const LPtr &l)
void removeTextListener (const LPtr &l)
bool requestFocus ()
 requests the input focus for this component.
void scheduleLayout ()
 schedules a call to layout
void setBackground (const Color &c, bool laf=true)
 changes this object's background color
void setBorder (const BrdSP &b, bool laf=true)
 changes the component's border
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 setCaretIndex (index pos)
void setClearOnExecute (bool c)
 controls if the field should be cleared when the action key is pressed.
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 setFont (const FntSP &fnt, bool laf=true)
void setForeground (const Color &c, bool laf=true)
 changes this object's foreground color
void setHorizontalAlignment (const char &halign, bool laf=true)
void setInputMap (const IMSP &im, bool laf=true)
void setModel (const TextModelPtr &)
void setMuted (bool mute)
 mutes or un-mutes the dispatcher
void setMuted (bool mute)
 mutes or un-mutes the dispatcher
void setOpaque (bool o, bool laf=true)
 changes this object's opacity
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
void setText (const std::string &t)
void setVerticalAlignment (const char &valign, bool laf=true)
virtual void setVisible (bool vis)
void updateUI ()

Protected Types

typedef unsigned int bits

Protected Member Functions

void add (const LPtr &l)
 registers a listener
void add (const LPtr &l)
 registers a listener
void doDraw (Renderer2D *, const int &, const int &, const int &, const int &)
 performs subclass-specific drawing
bool getBit (const bits &bit) const
void layout (const Bounds &)
void remove (const LPtr &l)
 de-registers a listener.
void remove (const LPtr &l)
 de-registers a listener.
void setBit (const bits &bit, bool val)

Protected Attributes

Size prefSize
Point textOffset

Static Protected Attributes

static const bits CLEAR_ON_EXEC
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


Member Typedef Documentation

typedef unsigned int ONE::gui::Displayable::bits [protected, inherited]
 

typedef ONE::util::ConstIterator<const Widget*> ONE::gui::Widget::ChildConstItr [inherited]
 

typedef ONE::util::SmartPointer<ChildConstItr,ONE::util::DestructiveCopy> ONE::gui::Widget::ChildConstItrSP [inherited]
 

typedef ONE::util::Iterator<Widget*> ONE::gui::Widget::ChildItr [inherited]
 

typedef ONE::util::SmartPointer<ChildItr,ONE::util::DestructiveCopy> ONE::gui::Widget::ChildItrSP [inherited]
 

typedef TextListener * ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::LPtr [inherited]
 

typedef KeyListener * ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::LPtr [inherited]
 


Constructor & Destructor Documentation

ONE::gui::CommandField::CommandField const string &  t = ""  ) 
 


Member Function Documentation

void ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::add const LPtr l  )  [protected, inherited]
 

registers a listener

Parameters:
l a listener

void ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::add const LPtr l  )  [protected, inherited]
 

registers a listener

Parameters:
l a listener

virtual void ONE::gui::Component::add Component ,
const LayoutConstraint
[virtual, inherited]
 

the default implementation of this function does nothing

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Panel.

void ONE::util::KeyDispatcher::addKeyListener const LPtr l  )  [inline, inherited]
 

void ONE::util::TextDispatcher::addTextListener const LPtr l  )  [inline, inherited]
 

virtual void ONE::gui::Component::clear  )  [virtual, inherited]
 

the default implementation of this function does nothing

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Panel.

bool ONE::gui::CommandField::clearsOnExecute  )  const
 

checks if the input is cleared when the action key is pressed

Returns:
true if the input is cleared, false if it remains unchanged after executing the command

void ONE::gui::TextField::clearText  )  [inherited]
 

void ONE::gui::TextField::doDraw Renderer2D ,
const int &  ,
const int &  ,
const int &  ,
const int & 
[protected, virtual, inherited]
 

performs subclass-specific drawing

Implementations of this function may assume that this object is visible and that r is in 2D mode.

Parameters:
r the renderer used to draw this object
x the left edge of the drawable area
y the top edge of the drawable are
w the width of the drawable area
h the height of the drawable are

Implements ONE::gui::Displayable.

void ONE::gui::Displayable::draw Renderer2D r,
const int &  x,
const int &  y,
const int &  w,
const int &  h
[inherited]
 

draws a portion of this object

This function calls doDraw(Renderer2D*,int,int,int,int) if this object is set to visible. Note that the renderer must be active in 2D mode.

Parameters:
r the renderer used to draw this object
x the left edge of the drawn area
y the top edge of the drawn are
w the width of the drawn area
h the height of the drawn are

void ONE::gui::Displayable::draw Renderer2D  )  [inline, inherited]
 

draws this object.

This function calls draw(Renderer2D*,int,int,int,int) with this object's bounds.

ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::EventDispatcher  )  [inherited]
 

ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::EventDispatcher  )  [inherited]
 

void ONE::gui::CommandField::execute  ) 
 

emulates a press of the action key

void ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::fireEvent TextEvent e  )  const [inherited]
 

notifies all registered listeners

The listeners are called in the order in which they were added.
This function is provided primarily for use by subclasses. However, it may also be called from the outside in order to inject events into the system. Note that great care should be taken when doing so. For example, listeners generally rely on the event's source being identical to the instance that passes them around, i.e. this event dispatcher.

Parameters:
e the event to forward to each listener

void ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::fireEvent KeyEvent e  )  const [inherited]
 

notifies all registered listeners

The listeners are called in the order in which they were added.
This function is provided primarily for use by subclasses. However, it may also be called from the outside in order to inject events into the system. Note that great care should be taken when doing so. For example, listeners generally rely on the event's source being identical to the instance that passes them around, i.e. this event dispatcher.

Parameters:
e the event to forward to each listener

Color ONE::gui::Displayable::getBackground  )  const [inline, inherited]
 

accesses the color that should be used to render the object's background.

Returns:
a color

bool ONE::gui::Displayable::getBit const bits bit  )  const [inline, protected, inherited]
 

const BrdSP & ONE::gui::Bordered::getBorder  )  const [inline, inherited]
 

accesses the component's border

Returns:
the border or 0 if no border is set

const BrdDSP & ONE::gui::Bordered::getBorderDelegate  )  const [inline, inherited]
 

const Bounds & ONE::gui::Displayable::getBounds  )  const [inline, inherited]
 

accesses this object's bounds

The Bounds object represents the position of the top left corner as well as the size of this object's bounding rectangle.

Returns:
this object's bounds

int ONE::gui::TextField::getCaretPosition  )  const [inherited]
 

virtual int ONE::gui::Component::getChildCount  )  const [virtual, inherited]
 

the default implementation of this function returns 0

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Console, ONE::gui::Panel, ONE::gui::ScrollBar, ONE::gui::TitleBar, and ONE::gui::Viewport.

virtual ChildConstItrSP ONE::gui::Component::getChildren  )  const [virtual, inherited]
 

the default implementation of this function returns 0

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Console, ONE::gui::Panel, ONE::gui::ScrollBar, ONE::gui::TitleBar, and ONE::gui::Viewport.

virtual ChildItrSP ONE::gui::Component::getChildren  )  [virtual, inherited]
 

the default implementation of this function returns 0

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Console, ONE::gui::Panel, ONE::gui::ScrollBar, ONE::gui::TitleBar, and ONE::gui::Viewport.

const IMSP& ONE::gui::CommandField::getDefaultInputMap  )  const [virtual]
 

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.

Returns:
the widget's default input map

Reimplemented from ONE::gui::Widget.

const UIDSP & ONE::gui::Displayable::getDelegate  )  const [inline, inherited]
 

DelegateID ONE::gui::TextField::getDelegateID  )  const [virtual, inherited]
 

Implements ONE::gui::Bordered.

Color ONE::gui::Widget::getDisabledBackground  )  const [inline, inherited]
 

accesses the color that should be used to render the object's background when the object is disabled

Returns:
a color

Color ONE::gui::Widget::getDisabledForeground  )  const [inline, inherited]
 

accesses the color that should be used to render the object's foreground when the object is disabled.

Returns:
a color

Color ONE::gui::Widget::getFocus  )  const [inline, inherited]
 

accesses the color that should be used to render the component focus

Returns:
a color

const FntSP& ONE::gui::TextField::getFont  )  const [inherited]
 

accesses the font that should be used to render the text

Returns:
a font

Color ONE::gui::Displayable::getForeground  )  const [inline, inherited]
 

accesses the color that should be used to render the object's foreground.

Returns:
a color

unsigned char ONE::gui::TextField::getHorizontalAlignment  )  const [inherited]
 

const IMSP & ONE::gui::Widget::getInputMap  )  const [inline, inherited]
 

TextModelPtr ONE::gui::TextField::getModel  )  const [inherited]
 

Widget* ONE::gui::Component::getParent  )  const [virtual, inherited]
 

Returns:
this object's parent

Implements ONE::gui::Widget.

const Point & ONE::gui::Displayable::getPosition  )  const [inline, inherited]
 

accesses this object's position

Returns:
the position of this object's top left corner

Size ONE::gui::TextField::getPreferredSize  )  const [virtual, inherited]
 

determines this object's preferred size.

If this object has a non-degenerate preferred size (i.e. Size::isZero returns false), that value is returned. Otherwise, this function calculates the optimal size for this object.

Implements ONE::gui::Displayable.

const Size & ONE::gui::Displayable::getSize  )  const [inline, inherited]
 

accesses this object's size

Returns:
the size of this object's bounding rectangle

std::string ONE::gui::TextField::getText  )  const [inherited]
 

const Point& ONE::gui::TextField::getTextOffset  )  const [inline, inherited]
 

accesses the text position offset

The offset specifies the position of the label string's top left corner relative to this component's position.

Returns:
the offset

unsigned char ONE::gui::TextField::getVerticalAlignment  )  const [inherited]
 

virtual bool ONE::gui::Component::hasChildren  )  const [virtual, inherited]
 

the default implementation of this function returns false

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Console, ONE::gui::Panel, ONE::gui::ScrollBar, ONE::gui::TitleBar, and ONE::gui::Viewport.

bool ONE::gui::Component::hasFocus  )  const [virtual, inherited]
 

checks if this component has the input focus

This function queries the FocusManager.

Returns:
true if this component is focused

Implements ONE::gui::Control.

bool ONE::gui::Widget::isEnabled  )  const [inline, virtual, inherited]
 

checks if this widget is enabled

Returns:
true if is enabled, false otherwise

Implements ONE::gui::Control.

bool ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::isMuted  )  const [inherited]
 

reflects this dispatcher's muted state.

Returns:
true if the dispatcher is muted, false otherwise

bool ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::isMuted  )  const [inherited]
 

reflects this dispatcher's muted state.

Returns:
true if the dispatcher is muted, false otherwise

bool ONE::gui::Displayable::isOpaque  )  const [inline, inherited]
 

checks this object's opacity

objects that are set to not opaque (i.e. transparent) should not draw their background display.

Returns:
if this object is set to opaque

virtual bool ONE::gui::Widget::isUnder const Point  )  const [virtual, inherited]
 

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.

bool ONE::gui::Displayable::isVisible  )  const [inline, virtual, inherited]
 

acesses the visibility property

The default value is true. However, subclasses may choose to change this.

Returns:
true if the object is visible

void ONE::gui::TextField::layout  )  [virtual, inherited]
 

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.
The provided implementation de-schedules layouting for this object. Overriding classes must make sure they call Displayable::layout if not the layout function of their immediate superclass.

Implements ONE::gui::Displayable.

void ONE::gui::TextField::layout const Bounds  )  [protected, inherited]
 

void ONE::gui::CommandField::processKeyEvent KeyEvent  )  [virtual]
 

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 consume function. Otherwise evt will also be passed to this object's top level parent.

Reimplemented from ONE::gui::TextField.

void ONE::gui::TextField::processMouseMotion MouseEvent  )  [virtual, inherited]
 

notifies the widget of a mouse motion

This event may occur both inside and outside of this object's bounds.

Implements ONE::gui::Control.

void ONE::gui::TextField::processMousePress MouseEvent  )  [virtual, inherited]
 

notifies the widget of a pressed mouse button

Implementations may assume that the mouse position is on this widget (i.e. isUnder returned true).

Implements ONE::gui::Control.

void ONE::gui::TextField::processMouseRelease MouseEvent  )  [virtual, inherited]
 

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.

void ONE::gui::TextField::processTextModelEvent TextModelEvent  )  [virtual, inherited]
 

Implements ONE::gui::TextModelListener.

void ONE::gui::Component::releaseFocus  )  const [virtual, inherited]
 

drops the input focus

Implements ONE::gui::Control.

void ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::remove const LPtr l  )  [protected, inherited]
 

de-registers a listener.

This listener will no longer notify l of events, unless l is registered more than once. If so, a call to this function will only remove the first occurence of l.

Parameters:
l a listener

void ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::remove const LPtr l  )  [protected, inherited]
 

de-registers a listener.

This listener will no longer notify l of events, unless l is registered more than once. If so, a call to this function will only remove the first occurence of l.

Parameters:
l a listener

virtual void ONE::gui::Component::remove Component  )  [virtual, inherited]
 

the default implementation of this function does nothing

Implements ONE::gui::Widget.

Reimplemented in ONE::gui::Panel.

void ONE::util::KeyDispatcher::removeKeyListener const LPtr l  )  [inline, inherited]
 

void ONE::util::TextDispatcher::removeTextListener const LPtr l  )  [inline, inherited]
 

bool ONE::gui::Component::requestFocus  )  [virtual, inherited]
 

requests the input focus for this component.

The FocusManager may deny the request, see FocusManager::requestFocus() for details.

Returns:
if the request was granted

Implements ONE::gui::Control.

void ONE::gui::Displayable::scheduleLayout  )  [inherited]
 

schedules a call to layout

This function makes component layout more efficient as several calls to this function within one frame duration result in only one call to layout.

void ONE::gui::Displayable::setBackground const Color c,
bool  laf = true
[inherited]
 

changes this object's background color

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
c the new background color
laf if the setting should be propagated to the GuiManager

void ONE::gui::Displayable::setBit const bits bit,
bool  val
[inline, protected, inherited]
 

void ONE::gui::Bordered::setBorder const BrdSP b,
bool  laf = true
[inherited]
 

changes the component's border

If laf is true, the setting is propagated to the GuiManager as an individual setting. Note that this function does not request a re-layout.

Parameters:
b the new border
laf if the setting should be propagated to the GuiManager

void ONE::gui::Displayable::setBounds const int &  x,
const int &  y,
const int &  w,
const int &  h
[inline, inherited]
 

void ONE::gui::Displayable::setBounds const Bounds b  )  [inline, inherited]
 

changes this object's bounds

See setSize and setPosition

Parameters:
b the new bounds

void ONE::gui::TextField::setCaretIndex index  pos  )  [inherited]
 

void ONE::gui::CommandField::setClearOnExecute bool  c  ) 
 

controls if the field should be cleared when the action key is pressed.

If set to false, the text remains unchanged after executing the command.

Parameters:
c the new state

void ONE::gui::Widget::setDisabledBackground const Color c,
bool  laf = true
[inherited]
 

changes this object's disabled background color

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
c the new background color
laf if the setting should be propagated to the GuiManager

void ONE::gui::Widget::setDisabledForeground const Color c,
bool  laf = true
[inherited]
 

changes this object's disabled foreground color

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
c the new foreground color
laf if the setting should be propagated to the GuiManager

virtual void ONE::gui::Widget::setEnabled bool   )  [virtual, inherited]
 

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.

void ONE::gui::Widget::setFocus const Color c,
bool  laf = true
[inherited]
 

changes the color that will be used to draw the component focus marker

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
c the new focus color
laf if the setting should be propagated to the GuiManager

void ONE::gui::TextField::setFont const FntSP fnt,
bool  laf = true
[inherited]
 

void ONE::gui::Displayable::setForeground const Color c,
bool  laf = true
[inherited]
 

changes this object's foreground color

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
c the new foreground color
laf if the setting should be propagated to the GuiManager

void ONE::gui::TextField::setHorizontalAlignment const char &  halign,
bool  laf = true
[inherited]
 

void ONE::gui::Widget::setInputMap const IMSP im,
bool  laf = true
[inherited]
 

void ONE::gui::TextField::setModel const TextModelPtr  )  [inherited]
 

void ONE::util::EventDispatcher< TextEvent , TextListener , struct TextRelay >::setMuted bool  mute  )  [inherited]
 

mutes or un-mutes the dispatcher

Muted dispatchers no longer notify their listeners.

void ONE::util::EventDispatcher< KeyEvent , KeyListener , struct KeyRelay >::setMuted bool  mute  )  [inherited]
 

mutes or un-mutes the dispatcher

Muted dispatchers no longer notify their listeners.

void ONE::gui::Displayable::setOpaque bool  o,
bool  laf = true
[inherited]
 

changes this object's opacity

The setting is active immediately. If laf is true (the default), the setting is propagated to the GuiManager as an individual setting.

Parameters:
o the new opacity setting
laf if the setting should be propagated to the GuiManager

void ONE::gui::Component::setParent Widget p  )  [inherited]
 

changes this component's parent

If a previous parent was set, this component will be removed from it.

Parameters:
p the new parent

void ONE::gui::Displayable::setPosition const int &  x,
const int &  y
[inline, inherited]
 

void ONE::gui::Displayable::setPosition const Point p  )  [inline, inherited]
 

changes this object's position

Note that this function does not request a re-layout.

Parameters:
p the new position for the object's top left corner

void ONE::gui::Displayable::setPreferredSize const Size s  )  [inline, inherited]
 

sets the object's preferred size

If the value is set to an empty size object, the component will calculate its preferred size.

Parameters:
s the preferred size or a Size object with either a width or a height of 0

void ONE::gui::Displayable::setSize const int &  w,
const int &  h
[inline, inherited]
 

void ONE::gui::Displayable::setSize const Size s  )  [inline, inherited]
 

changes this object's size

Note that this function does not request a re-layout.

Parameters:
s the new size

void ONE::gui::TextField::setText const std::string &  t  )  [inherited]
 

void ONE::gui::TextField::setVerticalAlignment const char &  valign,
bool  laf = true
[inherited]
 

void ONE::gui::Widget::setVisible bool  vis  )  [inline, virtual, inherited]
 

This function releases the input focus if the widget is set to invisible.

Reimplemented from ONE::gui::Displayable.

void ONE::gui::CommandField::updateUI  )  [virtual]
 

Reimplemented from ONE::gui::TextField.


Member Data Documentation

const bits ONE::gui::CommandField::CLEAR_ON_EXEC [static, protected]
 

const bits ONE::gui::Widget::ENABLED [static, protected, inherited]
 

const bits ONE::gui::Displayable::LSCHED [static, protected, inherited]
 

set when this object is scheduled to be laid out

const bits ONE::gui::Displayable::OPQ [static, protected, inherited]
 

opacity bit

Size ONE::gui::Displayable::prefSize [protected, inherited]
 

Point ONE::gui::TextField::textOffset [protected, inherited]
 

const bits ONE::gui::Displayable::VIS [static, protected, inherited]
 

visibility bit


Generated on Wed Sep 7 19:03:16 2005 for ONEngine by  doxygen 1.4.3