Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sw::gui::IControl Class Reference

Klasa bazowa dla kontrolek. More...

#include <IControl.h>

Inheritance diagram for sw::gui::IControl:
EngineObject sw::gui::IPanel sw::gui::TopLevelControl sw::gui::DockPanel sw::gui::Grid sw::gui::StackPanel sw::gui::WrapPanel

Public Member Functions

 IControl (IControl *parent)
 
virtual ~IControl ()
 
virtual bool HitTest (Position mouse, const Rect &parentArea)
 
const std::string & GetName ()
 
virtual void OnLoaded (IControl *sender, IEventArgs *e)
 
virtual void Unloaded (IControl *sender, IEventArgs *e)
 
virtual void GotFocus (IControl *sender, IEventArgs *e)
 
virtual void LostFocus (IControl *sender, IEventArgs *e)
 
virtual void MouseEnter (IControl *sender, MouseEventArgs *e)
 
virtual void MouseLeave (IControl *sender, MouseEventArgs *e)
 
virtual void MouseMove (IControl *sender, MouseEventArgs *e)
 
virtual void MouseWheel (IControl *sender, MouseWheelEventArgs *e)
 
virtual void MouseDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void MouseUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void MouseRightButtonDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void MouseRightButtonUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void MouseLeftButtonDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void MouseLeftButtonUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseEnter (IControl *sender, MouseEventArgs *e)
 
virtual void PreviewMouseLeave (IControl *sender, MouseEventArgs *e)
 
virtual void PreviewMouseMove (IControl *sender, MouseEventArgs *e)
 
virtual void PreviewMouseWheel (IControl *sender, MouseWheelEventArgs *e)
 
virtual void PreviewMouseDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseRightButtonDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseRightButtonUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseLeftButtonDown (IControl *sender, MouseButtonEventArgs *e)
 
virtual void PreviewMouseLeftButtonUp (IControl *sender, MouseButtonEventArgs *e)
 
virtual void KeyDown (IControl *sender, KeyEventArgs *e)
 
virtual void KeyUp (IControl *sender, KeyEventArgs *e)
 
virtual void PreviewKeyDown (IControl *sender, KeyEventArgs *e)
 
virtual void PreviewKeyUp (IControl *sender, KeyEventArgs *e)
 
- Public Member Functions inherited from EngineObject
TypeID GetType () const
 
std::string GetTypeName () const
 
virtual void Serialize (ISerializer *ser) const
 Implements default serialization. Serializes only declared properties. More...
 
virtual void Deserialize (IDeserializer *deser)
 Implements default deserialization. More...
 
virtual Size MemorySize ()
 
template<typename TargetType >
TargetType * DynamicCast ()
 

Protected Member Functions

IControlGetParent ()
 
TopLevelControlGetRootControl ()
 Zwraca najwyższą w hierarchi kontrolkę. More...
 
HostWindowGetHost ()
 Zwraca obiekt zarządzający GUI. More...
 

Protected Attributes

IControlm_parent
 
float m_width
 
float m_maxWidth
 
float m_minWidth
 
float m_height
 
float m_maxHeight
 
float m_minHeight
 
bool m_isVisible: 1
 
bool m_isEnabled: 1
 
bool m_isMouseOver: 1
 
bool m_isFocused: 1
 
bool m_isFocusable: 1
 
VerticalAlignment m_verticalAlignement
 
HorizontalAlignment m_horizontalAlignement
 
Thickness m_margin
 
EngineObjectm_dataContext
 

Detailed Description

Klasa bazowa dla kontrolek.

Deprecated:
Use class Control instead

Constructor & Destructor Documentation

sw::gui::IControl::IControl ( IControl parent)
sw::gui::IControl::~IControl ( )
virtual

Member Function Documentation

HostWindow * sw::gui::IControl::GetHost ( )
protected

Zwraca obiekt zarządzający GUI.

const std::string& sw::gui::IControl::GetName ( )
IControl* sw::gui::IControl::GetParent ( )
inlineprotected
TopLevelControl * sw::gui::IControl::GetRootControl ( )
protected

Zwraca najwyższą w hierarchi kontrolkę.

virtual void sw::gui::IControl::GotFocus ( IControl sender,
IEventArgs e 
)
inlinevirtual
virtual bool sw::gui::IControl::HitTest ( Position  mouse,
const Rect parentArea 
)
virtual
virtual void sw::gui::IControl::KeyDown ( IControl sender,
KeyEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::KeyUp ( IControl sender,
KeyEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::LostFocus ( IControl sender,
IEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseEnter ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseLeave ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseLeftButtonDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseLeftButtonUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseMove ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseRightButtonDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseRightButtonUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::MouseWheel ( IControl sender,
MouseWheelEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::OnLoaded ( IControl sender,
IEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewKeyDown ( IControl sender,
KeyEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewKeyUp ( IControl sender,
KeyEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseEnter ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseLeave ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseLeftButtonDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseLeftButtonUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseMove ( IControl sender,
MouseEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseRightButtonDown ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseRightButtonUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseUp ( IControl sender,
MouseButtonEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::PreviewMouseWheel ( IControl sender,
MouseWheelEventArgs e 
)
inlinevirtual
virtual void sw::gui::IControl::Unloaded ( IControl sender,
IEventArgs e 
)
inlinevirtual

Member Data Documentation

EngineObject* sw::gui::IControl::m_dataContext
protected
float sw::gui::IControl::m_height
protected
HorizontalAlignment sw::gui::IControl::m_horizontalAlignement
protected
bool sw::gui::IControl::m_isEnabled
protected
bool sw::gui::IControl::m_isFocusable
protected
bool sw::gui::IControl::m_isFocused
protected
bool sw::gui::IControl::m_isMouseOver
protected
bool sw::gui::IControl::m_isVisible
protected
Thickness sw::gui::IControl::m_margin
protected
float sw::gui::IControl::m_maxHeight
protected
float sw::gui::IControl::m_maxWidth
protected
float sw::gui::IControl::m_minHeight
protected
float sw::gui::IControl::m_minWidth
protected
IControl* sw::gui::IControl::m_parent
protected
VerticalAlignment sw::gui::IControl::m_verticalAlignement
protected
float sw::gui::IControl::m_width
protected

The documentation for this class was generated from the following files: