1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YWebPushButton.h
15 Author: Stefan Hundhammer <sh@suse.de>
19 #ifndef YWebPushButton_h
20 #define YWebPushButton_h
22 #include <yui/YPushButton.h>
28 class YWebPushButton : public YPushButton
34 YWebPushButton( YWidget * parent, const string & label );
42 * Return a descriptive name of this widget class for logging,
45 virtual const char * widgetClass() const { return "YWebPushButton"; }
48 * Preferred width of the widget.
50 * Reimplemented from YWidget
52 virtual int preferredWidth();
55 * Preferred height of the widget.
57 * Reimplemented from YWidget
59 virtual int preferredHeight();
62 * Set the new size of the widget.
64 * Layout manager widgets (like YLayoutBox) call this during geometry
65 * management after all widgets are queried about their preferred widths
66 * and heights. Depending on layout constraints, widgets might be resized
67 * beyond or below their preferred size.
69 * The sizes passed here are not meant to affect any future
70 * preferredWidth() or preferredHeight() calls; they are just the outcome
71 * of all kinds of compromises (too little screen space or too much) for
72 * the current geometry management calculation.
74 * Reimplemented from YWidget
76 virtual void setSize( int newWidth, int newHeight );
81 typedef YWebPushButton YWebIconButton;
84 #endif // YWebPushButton_h