[2608] | 1 | /****************************************************************************** |
---|
| 2 | WidgetComponent |
---|
| 3 | ******************************************************************************/ |
---|
| 4 | |
---|
| 5 | class WidgetComponent |
---|
| 6 | { |
---|
| 7 | void create(Window& parent) const; |
---|
| 8 | const ComponentArea& getComponentArea() const; |
---|
| 9 | void setComponentArea(const ComponentArea& area); |
---|
| 10 | string getBaseWidgetType() const; |
---|
| 11 | void setBaseWidgetType(string type); |
---|
| 12 | string getWidgetLookName() const; |
---|
| 13 | void setWidgetLookName(string look); |
---|
| 14 | string getWidgetNameSuffix() const; |
---|
| 15 | void setWidgetNameSuffix(string suffix); |
---|
| 16 | string getWindowRendererType() const; |
---|
| 17 | void setWindowRendererType(string type); |
---|
| 18 | VerticalAlignment getVerticalWidgetAlignment() const; |
---|
| 19 | void setVerticalWidgetAlignment(VerticalAlignment alignment); |
---|
| 20 | HorizontalAlignment getHorizontalWidgetAlignment() const; |
---|
| 21 | void setHorizontalWidgetAlignment(HorizontalAlignment alignment); |
---|
| 22 | void addPropertyInitialiser(const PropertyInitialiser& initialiser); |
---|
| 23 | void clearPropertyInitialisers(); |
---|
| 24 | void layout(const Window& owner) const; |
---|
| 25 | |
---|
| 26 | //void writeXMLToStream(OutStream& out_stream) const; |
---|
| 27 | |
---|
| 28 | const PropertyInitialiser* findPropertyInitialiser(string propertyName) const; |
---|
| 29 | |
---|
| 30 | WidgetComponent(); |
---|
| 31 | WidgetComponent(string type, string look, string suffix, string renderer); |
---|
| 32 | }; |
---|
| 33 | |
---|