Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TestUIElementClass Class Reference

#include <TestUIElementClass.h>

Inheritance diagram for TestUIElementClass:
sw::gui::UIElement sw::gui::Visual sw::gui::DependencyObject EngineObject

Public Member Functions

 REGISTER_EVENT_DECLARATION (ValidationStarted, RoutingStrategy::Direct, TestUIElementClass, ValidationEventArgs)
 
 REGISTER_EVENT_DECLARATION (ValidationEnded, RoutingStrategy::Direct, TestUIElementClass, ValidationEventArgs)
 
 REGISTER_EVENT_DECLARATION (UnusedEvent, RoutingStrategy::Direct, TestUIElementClass, UnusedEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewTunnelEvent, RoutingStrategy::Tunnel, TestUIElementClass, ValidationEventArgs)
 
 REGISTER_EVENT_DECLARATION (BubbleEvent, RoutingStrategy::Bubble, TestUIElementClass, ValidationEventArgs)
 
void EventRaisingFunction ()
 
void RaiseTunnelEvent ()
 
void RaiseBubbleEvent ()
 
bool ExistsDelegatesContainer (sw::gui::EventType eventID)
 Check functions. More...
 
virtual bool HitTest (const sw::gui::Position &point) override
 Checks if point is within this object. More...
 
virtual void OnRender (sw::gui::DrawingContext &context) override
 Control rendering behavior. More...
 
virtual sw::gui::Size2D Measure (sw::gui::Size2D availableSize) override
 Meassure pass. Check documentation in WPF. More...
 
virtual void Arrange (sw::gui::Rect &finalRect) override
 Arragement pass. Check WPF documentation. More...
 
virtual Size GetNumChildren () override
 Get number of children in visual tree. More...
 
virtual UIElementGetUIChild (Size idx) override
 Gets child in visual tree. More...
 
virtual bool AddChild (sw::gui::UIElementOPtr &&child) override
 
- Public Member Functions inherited from sw::gui::UIElement
 UIElement ()=default
 
virtual ~UIElement ()=default
 
 REGISTER_EVENT_DECLARATION (PreviewMouseUp, RoutingStrategy::Tunnel, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseDown, RoutingStrategy::Tunnel, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseRightButtonUp, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseRightButtonDown, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseLeftButtonDown, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseLeftButtonUp, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseWheel, RoutingStrategy::Tunnel, UIElement, MouseWheelEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewMouseMove, RoutingStrategy::Tunnel, UIElement, MouseMoveEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewKeyDown, RoutingStrategy::Tunnel, UIElement, KeyEventArgs)
 
 REGISTER_EVENT_DECLARATION (PreviewKeyUp, RoutingStrategy::Tunnel, UIElement, KeyEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseUp, RoutingStrategy::Bubble, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseDown, RoutingStrategy::Bubble, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseRightButtonDown, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseRightButtonUp, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseLeftButtonDown, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseLeftButtonUp, RoutingStrategy::Direct, UIElement, MouseButtonEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseWheel, RoutingStrategy::Bubble, UIElement, MouseWheelEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseMove, RoutingStrategy::Bubble, UIElement, MouseMoveEventArgs)
 
 REGISTER_EVENT_DECLARATION (KeyUp, RoutingStrategy::Tunnel, UIElement, KeyEventArgs)
 
 REGISTER_EVENT_DECLARATION (KeyDown, RoutingStrategy::Tunnel, UIElement, KeyEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseEnter, RoutingStrategy::Direct, UIElement, MouseEventArgs)
 
 REGISTER_EVENT_DECLARATION (MouseLeave, RoutingStrategy::Direct, UIElement, MouseEventArgs)
 
virtual bool AddChild (UIElementOPtr &&child)=0
 Add child. This function should set child parent to this pointer. More...
 
virtual void SetParent (UIElement *parent)
 Set control parent. Internal use. More...
 
virtual UIElementGetParent ()
 Returns control parent. More...
 
virtual void InvokeEventDelegates (EventType eventID, UIElement *sender, IEventArgs *e, AccessKey)
 
virtual void OnLoaded (UIElement *sender, IEventArgs *e)
 
virtual void OnUnloaded (UIElement *sender, IEventArgs *e)
 
virtual void OnGotFocus (UIElement *sender, IEventArgs *e)
 
virtual void OnLostFocus (UIElement *sender, IEventArgs *e)
 
virtual void OnMouseEnter (UIElement *sender, MouseEventArgs *e)
 
virtual void OnMouseLeave (UIElement *sender, MouseEventArgs *e)
 
virtual void OnMouseMove (UIElement *sender, MouseMoveEventArgs *e)
 
virtual void OnMouseWheel (UIElement *sender, MouseWheelEventArgs *e)
 
virtual void OnMouseDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnMouseUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnMouseRightButtonDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnMouseRightButtonUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnMouseLeftButtonDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnMouseLeftButtonUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseMove (UIElement *sender, MouseMoveEventArgs *e)
 
virtual void OnPreviewMouseWheel (UIElement *sender, MouseWheelEventArgs *e)
 
virtual void OnPreviewMouseDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseRightButtonDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseRightButtonUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseLeftButtonDown (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnPreviewMouseLeftButtonUp (UIElement *sender, MouseButtonEventArgs *e)
 
virtual void OnKeyDown (UIElement *sender, KeyEventArgs *e)
 
virtual void OnKeyUp (UIElement *sender, KeyEventArgs *e)
 
virtual void OnPreviewKeyDown (UIElement *sender, KeyEventArgs *e)
 
virtual void OnPreviewKeyUp (UIElement *sender, KeyEventArgs *e)
 
- Public Member Functions inherited from sw::gui::Visual
 Visual ()=default
 
 ~Visual ()=default
 
- Public Member Functions inherited from sw::gui::DependencyObject
 DependencyObject ()
 
 ~DependencyObject ()=default
 
- 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 ()
 

Private Member Functions

 RTTR_ENABLE (sw::gui::UIElement)
 

Private Attributes

std::vector< sw::gui::UIElementOPtr > m_children
 

Additional Inherited Members

- Protected Attributes inherited from sw::gui::UIElement
UIElementm_parent
 Parent in controls visual tree. More...
 
bool m_isVisible: 1
 
bool m_isEnabled: 1
 
bool m_isMouseOver: 1
 
bool m_isFocused: 1
 This is logical focus. More...
 
bool m_isKeyboardFocus: 1
 This element has keyboard focus and will receive keyboard events. More...
 
bool m_isKeyboardFocusWithin: 1
 This element or it's children have keyboard focus. More...
 
bool m_isMouseCaptured: 1
 Check if element have captured mouse. More...
 
bool m_isMouseCapturedWithin: 1
 Element or it's children have captured mouse. More...
 
bool m_isFocusable: 1
 
Size2D m_desiredSize
 Desired size after Messure pass. More...
 
EventHandlers m_eventHandlers
 Managing delegates. More...
 
- Protected Attributes inherited from sw::gui::DependencyObject
EngineObjectm_dataContext
 Context for binding. More...
 

Member Function Documentation

bool TestUIElementClass::AddChild ( sw::gui::UIElementOPtr &&  child)
overridevirtual
virtual void TestUIElementClass::Arrange ( sw::gui::Rect finalRect)
inlineoverridevirtual

Arragement pass. Check WPF documentation.

Implements sw::gui::UIElement.

void TestUIElementClass::EventRaisingFunction ( )
bool TestUIElementClass::ExistsDelegatesContainer ( sw::gui::EventType  eventID)

Check functions.

Size TestUIElementClass::GetNumChildren ( )
overridevirtual

Get number of children in visual tree.

Implements sw::gui::UIElement.

UIElement * TestUIElementClass::GetUIChild ( Size  idx)
overridevirtual

Gets child in visual tree.

Implements sw::gui::UIElement.

virtual bool TestUIElementClass::HitTest ( const sw::gui::Position point)
inlineoverridevirtual

Checks if point is within this object.

Todo:
We must specify if point is in relative coordinates or absolut.

Implements sw::gui::Visual.

virtual sw::gui::Size2D TestUIElementClass::Measure ( sw::gui::Size2D  availableSize)
inlineoverridevirtual

Meassure pass. Check documentation in WPF.

Implements sw::gui::UIElement.

virtual void TestUIElementClass::OnRender ( sw::gui::DrawingContext context)
inlineoverridevirtual

Control rendering behavior.

Implements sw::gui::Visual.

void TestUIElementClass::RaiseBubbleEvent ( )
void TestUIElementClass::RaiseTunnelEvent ( )
TestUIElementClass::REGISTER_EVENT_DECLARATION ( ValidationStarted  ,
RoutingStrategy::Direct  ,
TestUIElementClass  ,
ValidationEventArgs   
)
TestUIElementClass::REGISTER_EVENT_DECLARATION ( ValidationEnded  ,
RoutingStrategy::Direct  ,
TestUIElementClass  ,
ValidationEventArgs   
)
TestUIElementClass::REGISTER_EVENT_DECLARATION ( UnusedEvent  ,
RoutingStrategy::Direct  ,
TestUIElementClass  ,
UnusedEventArgs   
)
TestUIElementClass::REGISTER_EVENT_DECLARATION ( PreviewTunnelEvent  ,
RoutingStrategy::Tunnel  ,
TestUIElementClass  ,
ValidationEventArgs   
)
TestUIElementClass::REGISTER_EVENT_DECLARATION ( BubbleEvent  ,
RoutingStrategy::Bubble  ,
TestUIElementClass  ,
ValidationEventArgs   
)
TestUIElementClass::RTTR_ENABLE ( sw::gui::UIElement  )
private

Member Data Documentation

std::vector< sw::gui::UIElementOPtr > TestUIElementClass::m_children
private

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