#include <MyGUI_Window.h>
Public Types | |
typedef RTTIBase | Base |
typedef Window | RTTIBase |
typedef delegates::CDelegate2 < WidgetPtr, const std::string & > | EventHandle_WidgetString |
typedef delegates::CDelegate2 < WindowPtr, const std::string & > | EventHandle_WindowPtrCStringRef |
typedef delegates::CDelegate1 < WindowPtr > | EventHandle_WindowPtr |
Public Member Functions | |
virtual const std::string & | getTypeName () const |
virtual bool | isType (const std::type_info &_type) const |
template<typename Type > | |
bool | isType () const |
Window () | |
virtual void | setVisible (bool _value) |
void | setVisibleSmooth (bool _value) |
void | destroySmooth () |
void | setAutoAlpha (bool _value) |
bool | getAutoAlpha () |
virtual void | setCaption (const UString &_value) |
virtual const UString & | getCaption () |
void | setMinSize (const IntSize &_value) |
void | setMinSize (int _width, int _height) |
IntSize | getMinSize () |
void | setMaxSize (const IntSize &_value) |
void | setMaxSize (int _width, int _height) |
IntSize | getMaxSize () |
virtual void | setPosition (const IntPoint &_value) |
virtual void | setSize (const IntSize &_value) |
virtual void | setCoord (const IntCoord &_value) |
void | setPosition (int _left, int _top) |
void | setSize (int _width, int _height) |
void | setCoord (int _left, int _top, int _width, int _height) |
bool | getSnap () |
void | setSnap (bool _value) |
virtual void | setProperty (const std::string &_key, const std::string &_value) |
virtual void | _initialise (WidgetStyle _style, const IntCoord &_coord, Align _align, ResourceSkin *_info, WidgetPtr _parent, ICroppedRectangle *_croppedParent, IWidgetCreator *_creator, const std::string &_name) |
void | setPosition (const IntCoord &_coord) |
void | setPosition (int _left, int _top, int _width, int _height) |
void | showSmooth (bool _reset=false) |
void | hideSmooth () |
void | setMinMax (const IntRect &_minmax) |
void | setMinMax (int _min_w, int _min_h, int _max_w, int _max_h) |
IntRect | getMinMax () |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
Data Fields | |
EventPair < EventHandle_WidgetString, EventHandle_WindowPtrCStringRef > | eventWindowButtonPressed |
EventPair < EventHandle_WidgetVoid, EventHandle_WindowPtr > | eventWindowChangeCoord |
Protected Member Functions | |
virtual | ~Window () |
void | baseChangeWidgetSkin (ResourceSkin *_info) |
virtual WidgetPtr | baseCreateWidget (WidgetStyle _style, const std::string &_type, const std::string &_skin, const IntCoord &_coord, Align _align, const std::string &_layer, const std::string &_name) |
void | onMouseChangeRootFocus (bool _focus) |
void | onKeyChangeRootFocus (bool _focus) |
void | onMouseDrag (int _left, int _top) |
void | onMouseButtonPressed (int _left, int _top, MouseButton _id) |
void | notifyMousePressed (MyGUI::WidgetPtr _sender, int _left, int _top, MouseButton _id) |
void | notifyPressedButtonEvent (MyGUI::WidgetPtr _sender) |
void | notifyMouseDrag (MyGUI::WidgetPtr _sender, int _left, int _top) |
void | updateAlpha () |
void | animateStop (WidgetPtr _widget) |
Definition at line 34 of file MyGUI_Window.h.
typedef RTTIBase MyGUI::Window::Base |
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
typedef delegates::CDelegate2<WidgetPtr, const std::string&> MyGUI::Window::EventHandle_WidgetString |
Definition at line 37 of file MyGUI_Window.h.
Definition at line 43 of file MyGUI_Window.h.
typedef delegates::CDelegate2<WindowPtr, const std::string&> MyGUI::Window::EventHandle_WindowPtrCStringRef |
Definition at line 42 of file MyGUI_Window.h.
typedef Window MyGUI::Window::RTTIBase |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
MyGUI::Window::Window | ( | ) |
Definition at line 42 of file MyGUI_Window.cpp.
MyGUI::Window::~Window | ( | ) | [protected, virtual] |
Definition at line 59 of file MyGUI_Window.cpp.
void MyGUI::Window::_initialise | ( | WidgetStyle | _style, | |
const IntCoord & | _coord, | |||
Align | _align, | |||
ResourceSkin * | _info, | |||
WidgetPtr | _parent, | |||
ICroppedRectangle * | _croppedParent, | |||
IWidgetCreator * | _creator, | |||
const std::string & | _name | |||
) | [virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 52 of file MyGUI_Window.cpp.
void MyGUI::Window::animateStop | ( | WidgetPtr | _widget | ) | [protected] |
Definition at line 339 of file MyGUI_Window.cpp.
void MyGUI::Window::baseChangeWidgetSkin | ( | ResourceSkin * | _info | ) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 64 of file MyGUI_Window.cpp.
WidgetPtr MyGUI::Window::baseCreateWidget | ( | WidgetStyle | _style, | |
const std::string & | _type, | |||
const std::string & | _skin, | |||
const IntCoord & | _coord, | |||
Align | _align, | |||
const std::string & | _layer, | |||
const std::string & | _name | |||
) | [protected, virtual] |
Reimplemented from MyGUI::Widget.
Definition at line 134 of file MyGUI_Window.cpp.
void MyGUI::Window::destroySmooth | ( | ) |
Hide window smooth and then destroy it
Definition at line 332 of file MyGUI_Window.cpp.
bool MyGUI::Window::getAutoAlpha | ( | ) | [inline] |
Get auto alpha mode flag
Definition at line 59 of file MyGUI_Window.h.
const UString & MyGUI::Window::getCaption | ( | ) | [virtual] |
Get window caption
Reimplemented from MyGUI::Widget.
Definition at line 326 of file MyGUI_Window.cpp.
static const std::string& MyGUI::Window::getClassTypeName | ( | ) | [inline, static] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
IntSize MyGUI::Window::getMaxSize | ( | ) |
Get maximal possible window size
Definition at line 422 of file MyGUI_Window.cpp.
IntRect MyGUI::Window::getMinMax | ( | ) | [inline] |
Definition at line 135 of file MyGUI_Window.h.
IntSize MyGUI::Window::getMinSize | ( | ) |
Get minimal possible window size
Definition at line 411 of file MyGUI_Window.cpp.
bool MyGUI::Window::getSnap | ( | ) | [inline] |
Get snap to borders mode flag
Definition at line 95 of file MyGUI_Window.h.
virtual const std::string& MyGUI::Window::getTypeName | ( | ) | const [inline, virtual] |
Get type name as string
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
void MyGUI::Window::hideSmooth | ( | ) | [inline] |
Definition at line 129 of file MyGUI_Window.h.
bool MyGUI::Window::isType | ( | ) | const [inline] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
virtual bool MyGUI::Window::isType | ( | const std::type_info & | _type | ) | const [inline, virtual] |
Compare with selected type
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 37 of file MyGUI_Window.h.
void MyGUI::Window::notifyMouseDrag | ( | MyGUI::WidgetPtr | _sender, | |
int | _left, | |||
int | _top | |||
) | [protected] |
Definition at line 186 of file MyGUI_Window.cpp.
void MyGUI::Window::notifyMousePressed | ( | MyGUI::WidgetPtr | _sender, | |
int | _left, | |||
int | _top, | |||
MouseButton | _id | |||
) | [protected] |
Definition at line 172 of file MyGUI_Window.cpp.
void MyGUI::Window::notifyPressedButtonEvent | ( | MyGUI::WidgetPtr | _sender | ) | [protected] |
Definition at line 181 of file MyGUI_Window.cpp.
void MyGUI::Window::onKeyChangeRootFocus | ( | bool | _focus | ) | [protected] |
Definition at line 149 of file MyGUI_Window.cpp.
void MyGUI::Window::onMouseButtonPressed | ( | int | _left, | |
int | _top, | |||
MouseButton | _id | |||
) | [protected] |
Definition at line 165 of file MyGUI_Window.cpp.
void MyGUI::Window::onMouseChangeRootFocus | ( | bool | _focus | ) | [protected] |
Definition at line 141 of file MyGUI_Window.cpp.
void MyGUI::Window::onMouseDrag | ( | int | _left, | |
int | _top | |||
) | [protected] |
Definition at line 157 of file MyGUI_Window.cpp.
void MyGUI::Window::setAutoAlpha | ( | bool | _value | ) |
Enable or disable auto alpha mode
Definition at line 215 of file MyGUI_Window.cpp.
void MyGUI::Window::setCaption | ( | const UString & | _value | ) | [virtual] |
Set window caption
Reimplemented from MyGUI::Widget.
Definition at line 320 of file MyGUI_Window.cpp.
void MyGUI::Window::setCoord | ( | const IntCoord & | _value | ) | [virtual] |
Set widget position and size
Reimplemented from MyGUI::Widget.
Definition at line 266 of file MyGUI_Window.cpp.
void MyGUI::Window::setCoord | ( | int | _left, | |
int | _top, | |||
int | _width, | |||
int | _height | |||
) | [inline] |
See Widget::setCoord(const IntCoord& _coord)
Reimplemented from MyGUI::Widget.
Definition at line 92 of file MyGUI_Window.h.
void MyGUI::Window::setMaxSize | ( | int | _width, | |
int | _height | |||
) | [inline] |
Set maximal possible window size
Definition at line 76 of file MyGUI_Window.h.
void MyGUI::Window::setMaxSize | ( | const IntSize & | _value | ) |
Set maximal possible window size
Definition at line 416 of file MyGUI_Window.cpp.
void MyGUI::Window::setMinMax | ( | const IntRect & | _minmax | ) | [inline] |
Definition at line 131 of file MyGUI_Window.h.
void MyGUI::Window::setMinMax | ( | int | _min_w, | |
int | _min_h, | |||
int | _max_w, | |||
int | _max_h | |||
) | [inline] |
Definition at line 133 of file MyGUI_Window.h.
void MyGUI::Window::setMinSize | ( | const IntSize & | _value | ) |
Set minimal possible window size
Definition at line 405 of file MyGUI_Window.cpp.
void MyGUI::Window::setMinSize | ( | int | _width, | |
int | _height | |||
) | [inline] |
Set minimal possible window size
Definition at line 69 of file MyGUI_Window.h.
void MyGUI::Window::setPosition | ( | int | _left, | |
int | _top, | |||
int | _width, | |||
int | _height | |||
) | [inline] |
Reimplemented from MyGUI::Widget.
Definition at line 125 of file MyGUI_Window.h.
void MyGUI::Window::setPosition | ( | int | _left, | |
int | _top | |||
) | [inline] |
See Widget::setPosition(const IntPoint& _pos)
Reimplemented from MyGUI::Widget.
Definition at line 88 of file MyGUI_Window.h.
void MyGUI::Window::setPosition | ( | const IntPoint & | _value | ) | [virtual] |
Set widget position (position of left top corner)
Reimplemented from MyGUI::Widget.
Definition at line 227 of file MyGUI_Window.cpp.
void MyGUI::Window::setPosition | ( | const IntCoord & | _coord | ) | [inline] |
Reimplemented from MyGUI::Widget.
Definition at line 123 of file MyGUI_Window.h.
void MyGUI::Window::setProperty | ( | const std::string & | _key, | |
const std::string & | _value | |||
) | [virtual] |
Reimplemented from MyGUI::Widget.
Reimplemented in MyGUI::Message.
Definition at line 427 of file MyGUI_Window.cpp.
void MyGUI::Window::setSize | ( | const IntSize & | _value | ) | [virtual] |
void MyGUI::Window::setSize | ( | int | _width, | |
int | _height | |||
) | [inline] |
See Widget::setSize(const IntSize& _size)
Reimplemented from MyGUI::Widget.
Definition at line 90 of file MyGUI_Window.h.
void MyGUI::Window::setSnap | ( | bool | _value | ) | [inline] |
Enable or disable snap to borders mode
Definition at line 97 of file MyGUI_Window.h.
void MyGUI::Window::setVisible | ( | bool | _value | ) | [virtual] |
Hide or show widget
Reimplemented from MyGUI::Widget.
Definition at line 348 of file MyGUI_Window.cpp.
void MyGUI::Window::setVisibleSmooth | ( | bool | _value | ) |
Hide or show window smooth
Definition at line 367 of file MyGUI_Window.cpp.
void MyGUI::Window::showSmooth | ( | bool | _reset = false |
) | [inline] |
Definition at line 127 of file MyGUI_Window.h.
void MyGUI::Window::updateAlpha | ( | ) | [protected] |
Definition at line 202 of file MyGUI_Window.cpp.
EventPair<EventHandle_WidgetString, EventHandle_WindowPtrCStringRef> MyGUI::Window::eventWindowButtonPressed |
Event : Window button pressed.
signature : void method(MyGUI::WindowPtr _sender, const std::string& _name)
_sender | widget that called this event | |
_name | of pressed button |
Definition at line 108 of file MyGUI_Window.h.
Event : Window coordinate changed (window was resized or moved).
signature : void method(MyGUI::WindowPtr _sender)
_sender | widget that called this event |
Definition at line 114 of file MyGUI_Window.h.