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

# AbstractButton.h

Go to the documentation of this file.

    00001
    00002
    00003
    00004
    00005 #ifndef ABSTRACTBUTTON_H
    00006 #define ABSTRACTBUTTON_H
    00007
    00008 #include "Control.h"
    00009
    00010 namespace wkgl {
    00011
    00041 class AbstractButton : public Control
    00042 {
    00043   protected:
    00044     bool  awidth;
    00045     bool  aheight;
    00046
    00047   public:
    00051     AbstractButton( const char *label, int x = AUTOPOS, int y = AUTOPOS,
    00052                       int width = AUTOSIZE, int height = AUTOSIZE );
    00053
    00057     virtual void setText( const char *label );
    00058
    00064     virtual BOOL create( Control* parent );
    00065
    00066   protected:
    00070     AbstractButton();
    00071
    00075     int calculateWidth( String& label );
    00076 };
    00077 }
    00078 #endif