23 #ifndef __MYGUI_WINDOW_H__
24 #define __MYGUI_WINDOW_H__
48 virtual
void setVisible(
bool _value);
51 void setVisibleSmooth(
bool _value);
56 void setAutoAlpha(
bool _value);
58 bool getAutoAlpha() {
return mIsAutoAlpha; }
61 virtual void setCaption(
const UString& _value);
63 virtual const UString& getCaption();
69 void setMinSize(
const IntSize& _value);
76 void setMaxSize(
const IntSize& _value);
83 virtual void setPosition(
const IntPoint& _value);
85 virtual void setSize(
const IntSize& _value);
87 virtual void setCoord(
const IntCoord& _value);
99 void setSnap(
bool _value) { mSnap = _value; }
102 virtual void setProperty(
const std::string& _key,
const std::string& _value);
122 #ifndef MYGUI_DONT_USE_OBSOLETE
124 MYGUI_OBSOLETE(
"use : void Widget::setCoord(const IntCoord& _coord)")
125 void setPosition(const
IntCoord& _coord) { setCoord(_coord); }
126 MYGUI_OBSOLETE(
"use : void Widget::setCoord(int _left, int _top, int _width, int _height)")
127 void setPosition(
int _left,
int _top,
int _width,
int _height) { setCoord(_left, _top, _width, _height); }
129 void showSmooth(
bool _reset = false) { setVisibleSmooth(
true); }
131 void hideSmooth() { setVisibleSmooth(
false); }
132 MYGUI_OBSOLETE(
"use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
133 void setMinMax(const
IntRect& _minmax) { setMinSize(_minmax.left, _minmax.top); setMaxSize(_minmax.right, _minmax.bottom); }
134 MYGUI_OBSOLETE(
"use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
135 void setMinMax(
int _min_w,
int _min_h,
int _max_w,
int _max_h) { setMinSize(_min_w, _min_h); setMaxSize(_max_w, _max_h); }
136 MYGUI_OBSOLETE(
"use : IntSize getMinSize() , IntSize getMaxSize()")
137 IntRect getMinMax() {
return IntRect(getMinSize().width, getMinSize().height, getMaxSize().width, getMaxSize().height); }
139 #endif // MYGUI_DONT_USE_OBSOLETE
147 virtual Widget* baseCreateWidget(
WidgetStyle _style,
const std::string& _type,
const std::string& _skin,
const IntCoord& _coord,
Align _align,
const std::string& _layer,
const std::string& _name);
149 void onMouseChangeRootFocus(
bool _focus);
150 void onKeyChangeRootFocus(
bool _focus);
151 void onMouseDrag(
int _left,
int _top);
152 void onMouseButtonPressed(
int _left,
int _top,
MouseButton _id);
156 void notifyMouseDrag(
MyGUI::Widget* _sender,
int _left,
int _top);
161 void animateStop(
Widget* _widget);
165 void shutdownWidgetSkin();
167 float getAlphaVisible();
168 void getSnappedCoord(
IntCoord& _coord);
179 bool mMouseRootFocus;
197 #endif // __MYGUI_WINDOW_H__