Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::gui::Visual Class Referenceabstract

Provide interface for visual controls which can be rendered. More...

#include <Visual.h>

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

Public Member Functions

 Visual ()=default
 
 ~Visual ()=default
 
virtual bool HitTest (const Position &point)=0
 Checks if point is within this object. More...
 
virtual void OnRender (DrawingContext &context)=0
 Control rendering behavior. More...
 
- 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 (DependencyObject)
 

Private Attributes

 RTTR_REGISTRATION_FRIEND
 
Position m_position
 Control position. (. More...
 
Size2D m_actualSize
 Size of control used for rendering. This size will be set after for example layout arrangment will be aplied. More...
 

Additional Inherited Members

- Protected Attributes inherited from sw::gui::DependencyObject
EngineObjectm_dataContext
 Context for binding. More...
 

Detailed Description

Provide interface for visual controls which can be rendered.

Provides interfaces and base implementation of:

This classs correpsonds to WPF Visual class.

Constructor & Destructor Documentation

sw::gui::Visual::Visual ( )
explicitdefault
sw::gui::Visual::~Visual ( )
default

Member Function Documentation

virtual bool sw::gui::Visual::HitTest ( const Position point)
pure virtual

Checks if point is within this object.

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

Implemented in sw::gui::HostWindow, and TestUIElementClass.

virtual void sw::gui::Visual::OnRender ( DrawingContext context)
pure virtual

Control rendering behavior.

Implemented in sw::gui::HostWindow, and TestUIElementClass.

sw::gui::Visual::RTTR_ENABLE ( DependencyObject  )
private

Member Data Documentation

Size2D sw::gui::Visual::m_actualSize
private

Size of control used for rendering. This size will be set after for example layout arrangment will be aplied.

Position sw::gui::Visual::m_position
private

Control position. (.

Todo:
Relative to parent ???)
sw::gui::Visual::RTTR_REGISTRATION_FRIEND
private

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