Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/ceguilua/ceguilua-0.5.0/package/falagard/Dimension.pkg @ 2755

Last change on this file since 2755 was 2710, checked in by rgrieder, 16 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 3.6 KB
Line 
1/******************************************************************************
2  BaseDim 
3******************************************************************************/
4class BaseDim
5{
6  tolua_throws|CEGUI::InvalidRequestException,error| float getValue(const Window& wnd) const;
7  tolua_throws|CEGUI::InvalidRequestException,error| float getValue(const Window& wnd, const Rect& container) const;
8  BaseDim* clone() const;
9  DimensionOperator getDimensionOperator() const;
10  void setDimensionOperator(DimensionOperator op);
11  const BaseDim* getOperand() const;
12  void setOperand(const BaseDim& operand);
13  //void writeXMLToStream(OutStream& out_stream) const;
14};
15
16/******************************************************************************
17  AbsoluteDim
18******************************************************************************/
19class AbsoluteDim : public BaseDim
20{
21  void setValue(float val);
22  AbsoluteDim(float val);
23};
24
25/******************************************************************************
26  ImageDim
27******************************************************************************/
28class ImageDim : public BaseDim
29{
30  void setSourceImage(string imageset, string image);
31  void setSourceDimension(DimensionType dim);
32  ImageDim(string imageset, string image, DimensionType dim);
33};
34
35/******************************************************************************
36  WidgetDim
37******************************************************************************/
38class WidgetDim : public BaseDim
39{
40  void setWidgetName(string name);
41  void setSourceDimension(DimensionType dim);
42  WidgetDim(string name, DimensionType dim);
43};
44
45/******************************************************************************
46  UnifiedDim
47******************************************************************************/
48class UnifiedDim : public BaseDim
49{
50  UnifiedDim(const UDim& value, DimensionType dim);
51};
52
53/******************************************************************************
54  FontDim
55******************************************************************************/
56class FontDim : public BaseDim
57{
58  FontDim(string name, string font, string text, FontMetricType metric, float padding = 0);
59};
60
61/******************************************************************************
62  PropertyDim
63******************************************************************************/
64class PropertyDim : public BaseDim
65{
66  PropertyDim(string name, string property, DimensionType type);
67};
68
69/******************************************************************************
70  Dimension
71******************************************************************************/
72class Dimension
73{
74  const BaseDim& getBaseDimension() const;
75  void setBaseDimension(const BaseDim& dim);
76  DimensionType getDimensionType() const;
77  void setDimensionType(DimensionType type);
78
79  //Dimension& operator=(const Dimension& other);
80  //void writeXMLToStream(OutStream& out_stream) const;
81  Dimension(const BaseDim& dim, DimensionType type);
82  Dimension(const Dimension& other);
83  Dimension();
84};
85
86/******************************************************************************
87  ComponentArea
88******************************************************************************/
89class ComponentArea
90{
91  Rect getPixelRect(const Window& wnd) const;
92  Rect getPixelRect(const Window& wnd, const Rect& container) const;
93  //void writeXMLToStream(OutStream& out_stream) const;
94  bool isAreaFetchedFromProperty() const;
95  string getAreaPropertySource() const;
96  void setAreaPropertySource(string property);
97  Dimension d_left;
98  Dimension d_top;
99  Dimension d_right_or_width;
100  Dimension d_bottom_or_height;
101  ComponentArea();
102};
Note: See TracBrowser for help on using the repository browser.