- /**
- * \brief changes the focused widget.
- *
- * Focuses the next or previous widget of the \c focuslist. An \c gotFocus and \c lostFocus event will be
- * generated.
- * \param dir The direction, \c focusDirection.
- */
- void focusNext(int dir=0);
-
- /**
- * \brief Gives focus to a widget.
- *
- * Set the focus to the specified widget. The \c focuslist is updated, too.
- * An \c gotFocus and \c lostFocus event will be generated.
- * \param newfocus The new widget to focus.
- */
- void setFocus(eWidget *newfocus);
-
- /**
- * \brief Sets the widget font.
- *
- * The font is used for example by the \c eLabel.
- * \sa eLabel
- * \param font The new font used by widget-specific drawing code.
- */
- void setFont(const gFont &font);
-
- /**
- * \brief Sets the widget caption or text.
- *
- * \param label The text to assign to the widget.
- */
- void setText(const eString &label);
-
- const eString& getText() const { return text; }
- void setBackgroundColor(const gColor& color, bool inv=true);
- void setForegroundColor(const gColor& color, bool inv=true);
- void setPixmap(gPixmap *pmap);
- void setTarget(gDC *target);
- gDC *getTarget() { return target; }
-
-#ifndef DISABLE_LCD
- void setLCD(eWidget *lcdtitle, eWidget *lcdelement);
-#endif
-
- void setName(const char *name);
- const eString& getName() const { return name; }
- eWidget*& getParent() { return parent; }
- const gFont& getFont() const { return font; }
-
- const gColor& getBackgroundColor() const { return backgroundColor; }
- const gColor& getForegroundColor() const { return foregroundColor; }
-
- int width() { return getSize().width(); }
- int height() { return getSize().height(); }
-
- gPainter *getPainter(eRect area);
-
- const eString& getHelpText() const { return helptext; }
-
- void setHelpText( const eString&);
- /**
- * \brief Sets a property.
- *
- * A property is a value/data pair which is used for serializing widgets (like in skinfiles).
- * These properties are available to all \c "eWidget"-based classes.
- * \arg \c position, the position of the widget, relative to the parent's childarea. Consider using csize for TLWs.
- * Positions are specified in a "x:y" manner.
- * \arg \c cposition, the position of the widget's clientrect (upper left).
- * This is useful for specifing a position independant of a decoration which might be
- * different sized. The real position will be calculated to match the requested position.
- * \arg \c size, the size of the widget. Consider using csize for TLWs. Sizes are specified in a "width:height" manner.
- * \arg \c csize, the size of the clientrect. The real size will be calculated to match the requested size.
- * \arg \c text, the text/caption of the widget.
- * \arg \c font, the primary font used in the widget.
- * \arg \c name, the name of the widget for referring them.
- * \arg \c pixmap, an already loaded, named pixmap to be used as the widget's pixmap.
- * \arg \c foregroundColor, a named color, which will be used for the widget's foreground color.
- * \arg \c backgroundColor
- * \param prop The property to be set.
- * \param value The value to be set.
- */
- virtual int setProperty(const eString &prop, const eString &value);
-
- eWidget *search(const eString &name);