Polyphase Game Engine
Loading...
Searching...
No Matches
Widget Class Reference

#include <Widget.h>

Inheritance diagram for Widget:
Node Object ArrayWidget Button Canvas CheckBox ComboBox InputField LineEdit ListViewItemWidget ListViewWidget Poly ProgressBar Quad ScrollContainer Slider SpinBox Text ToolTipWidget Window

Public Member Functions

 DECLARE_NODE (Widget, Node)
 
 Widget ()
 
virtual void Start () override
 
virtual void GatherProperties (std::vector< Property > &outProps) override
 
virtual void SetVisible (bool visible) override
 
virtual void PrepareTick (std::vector< NodePtrWeak > &outTickNodes, bool game, bool recurse) override
 
virtual void Render () override
 
virtual VertexType GetVertexType () const override
 
virtual bool IsWidget () const override
 
WidgetGetParentWidget ()
 
const WidgetGetParentWidget () const
 
WidgetGetChildWidget (int32_t index)
 
virtual void PreRender ()
 
Rect GetRect ()
 
void SetX (float x)
 
void SetY (float y)
 
void SetWidth (float width)
 
void SetHeight (float height)
 
void SetXRatio (float x)
 
void SetYRatio (float y)
 
void SetWidthRatio (float width)
 
void SetHeightRatio (float height)
 
void SetLeftMargin (float left)
 
void SetTopMargin (float top)
 
void SetRightMargin (float right)
 
void SetBottomMargin (float bottom)
 
virtual void SetPosition (float x, float y)
 
virtual void SetDimensions (float width, float height)
 
void SetPosition (glm::vec2 position)
 
void SetDimensions (glm::vec2 dimensions)
 
void SetRect (float x, float y, float width, float height)
 
void SetRect (glm::vec2 position, glm::vec2 dimensions)
 
void SetRect (Rect rect)
 
void SetRatios (float x, float y, float width, float height)
 
void SetMargins (float left, float top, float right, float bottom)
 
void SetOffset (float x, float y)
 
glm::vec2 GetOffset () const
 
void SetSize (float x, float y)
 
glm::vec2 GetSize () const
 
AnchorMode GetAnchorMode () const
 
void SetAnchorMode (AnchorMode anchorMode)
 
bool AnchorStretchesX (AnchorMode mode) const
 
bool AnchorStretchesY (AnchorMode mode) const
 
bool StretchX () const
 
bool StretchY () const
 
glm::vec2 GetAnchorRatio () const
 
void SetFullScreen ()
 
void Centered ()
 
void CenterPivot ()
 
float GetX () const
 
float GetY () const
 
float GetWidth () const
 
float GetHeight () const
 
glm::vec2 GetPosition () const
 
glm::vec2 GetDimensions () const
 
void UpdateRect ()
 
void UpdateColor ()
 
void FitInsideParent ()
 
float GetParentWidth () const
 
float GetParentHeight () const
 
virtual void SetColor (glm::vec4 color)
 
glm::vec4 GetColor () const
 
void SetOpacity (uint8_t opacity)
 
uint8_t GetOpacity () const
 
void SetOpacityFloat (float opacity)
 
float GetOpacityFloat () const
 
virtual bool ShouldHandleInput ()
 
virtual void MarkDirty ()
 
void MarkClean ()
 
bool IsDirty () const
 
bool ContainsMouse (bool testScissor=true) const
 
virtual bool ContainsPoint (int32_t x, int32_t y)
 
void MoveToMousePosition ()
 
const glm::mat3 & GetTransform ()
 
void SetRotation (float degrees)
 
float GetRotation () const
 
void SetPivot (glm::vec2 pivot)
 
glm::vec2 GetPivot () const
 
void SetScale (glm::vec2 scale)
 
glm::vec2 GetScale () const
 
glm::vec2 GetAbsoluteScale () const
 
bool IsScissorEnabled () const
 
void EnableScissor (bool enable)
 
Rect GetScissorRect () const
 
void SetUseGameResolution (bool use)
 
bool GetUseGameResolution () const
 
void SetTooltipName (const std::string &name)
 
const std::string & GetTooltipName () const
 
void SetTooltipDescription (const std::string &description)
 
const std::string & GetTooltipDescription () const
 
bool HasTooltip () const
 
- Public Member Functions inherited from Node
 DECLARE_FACTORY_MANAGER (Node)
 
 DECLARE_FACTORY (Node, Node)
 
 DECLARE_OBJECT (Node, Object)
 
 DECLARE_SCRIPT_LINK_BASE (Node)
 
 Node ()
 
virtual ~Node ()
 
virtual void Create ()
 
virtual void Destroy ()
 
void DestroyDeferred ()
 
void Doom ()
 
virtual void SaveStream (Stream &stream, Platform platform)
 
virtual void LoadStream (Stream &stream, Platform platform, uint32_t version)
 
virtual void Copy (Node *srcNode, bool recurse)
 
virtual void Render (PipelineConfig pipelineConfig)
 
virtual void Awake ()
 
virtual void Stop ()
 
virtual void Tick (float deltaTime)
 
virtual void EditorTick (float deltaTime)
 
uint32_t GetLastTickedFrame () const
 
virtual void OnInstanced ()
 
virtual void GatherReplicatedData (std::vector< NetDatum > &outData)
 
virtual void GatherNetFuncs (std::vector< NetFunc > &outFuncs)
 
void GatherPropertyOverrides (std::vector< Property > &outOverrides)
 
void ApplyPropertyOverrides (const std::vector< Property > &overs)
 
virtual void BeginOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void EndOverlap (Primitive3D *thisComp, Primitive3D *otherComp)
 
virtual void OnCollision (Primitive3D *thisComp, Primitive3D *otherComp, glm::vec3 impactPoint, glm::vec3 impactNormal, btPersistentManifold *manifold)
 
NodeId GetNodeId () const
 
uint64_t GetPersistentUuid () const
 
void SetPersistentUuid (uint64_t uuid)
 
void EnsurePersistentUuid ()
 
void EmitSignal (const std::string &name, const std::vector< Datum > &args)
 
void ConnectSignal (const std::string &name, Node *listener, SignalHandlerFP func)
 
void ConnectSignal (const std::string &name, Node *listener, const ScriptFunc &func)
 
void DisconnectSignal (const std::string &name, Node *listener)
 
void RenderShadow ()
 
void RenderSelected (bool renderChildren)
 
NodeCreateChild (TypeId nodeType)
 
NodeCreateChild (const char *typeName)
 
NodeCreateChildClone (Node *srcNode, bool recurse)
 
NodePtr Clone (bool recurse, bool instantiateLinkedScene=true, bool resolveNodePaths=false)
 
void DestroyAllChildren ()
 
NodeGetRoot ()
 
bool IsWorldRoot () const
 
NodeGetSubRoot ()
 
template<class NodeClass >
NodeClass * CreateChild ()
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp ()
 
template<class NodeClass >
NodeClass * CreateChild (const char *name)
 
template<class NodeClass >
SharedPtr< NodeClass > CreateChildSp (const char *name)
 
bool IsDestroyed () const
 
bool IsPendingDestroy () const
 
bool IsDoomed () const
 
bool HasStarted () const
 
bool HasAwoken () const
 
void EnableTick (bool enable)
 
bool IsTickEnabled () const
 
virtual void SetWorld (World *world, bool subRoot)
 
WorldGetWorld ()
 
void SetScene (Scene *scene)
 
SceneGetScene ()
 
uint8_t GetTargetScreen () const
 
void SetTargetScreen (uint8_t screen)
 
std::vector< NetDatum > & GetReplicatedData ()
 
void SetNetId (NetId id)
 
NetId GetNetId () const
 
NetHostId GetOwningHost () const
 
void SetOwningHost (NetHostId hostId, bool setAsPawn=false)
 
void SetReplicate (bool replicate)
 
bool IsReplicated () const
 
void SetReplicateTransform (bool repTransform)
 
bool IsTransformReplicated () const
 
void ForceReplication ()
 
void ClearForcedReplication ()
 
bool NeedsForcedReplication ()
 
virtual bool CheckNetRelevance (Node *playerNode)
 
bool IsAlwaysRelevant () const
 
void SetAlwaysRelevant (bool alwaysRelevant)
 
bool HasTag (const std::string &tag)
 
void AddTag (const std::string &tag)
 
void RemoveTag (const std::string &tag)
 
void SetName (const std::string &newName)
 
const std::string & GetName () const
 
virtual void SetActive (bool active)
 
bool IsActive (bool recurse=false) const
 
bool IsVisible (bool recurse=false) const
 
void SetTransient (bool transient)
 
virtual bool IsTransient () const
 
void SetPersistent (bool persistent)
 
bool IsPersistent () const
 
void SetDefault (bool isDefault)
 
bool IsDefault () const
 
void SetUserdataCreated (bool created)
 
bool IsUserdataCreated () const
 
virtual const char * GetTypeName () const
 
virtual DrawData GetDrawData ()
 
virtual bool IsNode3D () const
 
virtual bool IsPrimitive3D () const
 
virtual bool IsLight3D () const
 
NodeGetParent ()
 
const NodeGetParent () const
 
const std::vector< NodePtr > & GetChildren () const
 
virtual void Attach (Node *parent, bool keepWorldTransform=false, int32_t index=-1)
 
void Detach (bool keepWorldTransform=false)
 
void AddChild (Node *child, int32_t index=-1)
 
void RemoveChild (Node *child)
 
void RemoveChild (int32_t index)
 
template<typename T >
void AddChild (const SharedPtr< T > &child, int32_t index=-1)
 
template<typename T >
void RemoveChild (const SharedPtr< Node > &child)
 
int32_t FindChildIndex (const std::string &name) const
 
int32_t FindChildIndex (Node *child) const
 
NodeFindChild (const std::string &name, bool recurse) const
 
NodeFindChildWithTag (const std::string &name, bool recurse) const
 
NodeFindDescendant (const std::string &name)
 
NodeFindAncestor (const std::string &name)
 
bool HasAncestor (Node *node)
 
NodeGetChild (int32_t index) const
 
NodeGetChildByType (TypeId type) const
 
uint32_t GetNumChildren () const
 
int32_t FindParentNodeIndex () const
 
void SetHitCheckId (uint32_t id)
 
uint32_t GetHitCheckId () const
 
bool IsLateTickEnabled () const
 
void EnableLateTick (bool enable)
 
ScriptGetScript ()
 
void SetScriptFile (const std::string &fileName)
 
bool DoChildrenHaveUniqueNames () const
 
void BreakSceneLink ()
 
bool IsSceneLinked (bool ignoreInPie=true) const
 
bool IsSceneLinkedChild (bool ignoreInPie=true)
 
bool IsForeign () const
 
bool HasAuthority () const
 
bool IsOwned () const
 
bool IsLocallyControlled () const
 
Datum GetField (const std::string &key)
 
void SetField (const std::string &name, const Datum &value)
 
Datum GetField (int32_t key)
 
void SetField (int32_t key, const Datum &value)
 
Datum CallFunction (const std::string &name, const std::vector< Datum > &args={})
 
NetFuncFindNetFunc (const char *name)
 
NetFuncFindNetFunc (uint16_t index)
 
void InvokeNetFunc (const char *name)
 
void InvokeNetFunc (const char *name, Datum param0)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6)
 
void InvokeNetFunc (const char *name, Datum param0, Datum param1, Datum param2, Datum param3, Datum param4, Datum param5, Datum param6, Datum param7)
 
void InvokeNetFunc (const char *name, const std::vector< Datum > &params)
 
const WeakPtr< Node > & GetSelfPtr () const
 
template<typename T >
T * FindChild (const std::string &name, bool recurse)
 
template<typename T >
void Traverse (T func, bool inverted=false)
 
template<typename T >
bool ForEach (T func, bool inverted=false)
 
- Public Member Functions inherited from Object
virtual ~Object ()=default
 
virtual const char * RuntimeName () const =0
 
virtual const char * RuntimeParentName () const =0
 
virtual RuntimeId InstanceRuntimeId () const =0
 
virtual ObjectQueryInterface (RuntimeId id) const
 
virtual bool Is (RuntimeId id) const
 
virtual bool Is (const char *name) const
 
virtual bool DrawCustomProperty (Property &prop)
 
template<typename T >
T * As () const
 
virtual bool Equals (const Object *rhs) const
 

Static Public Member Functions

static float InterfaceToNormalized (float interfaceCoord, float interfaceSize)
 
static bool IsMouseInside (Rect rect)
 
- Static Public Member Functions inherited from Node
static NodePtr Construct (const std::string &name)
 
static NodePtr Construct (TypeId typeId)
 
static void Destruct (Node *node)
 
static void ProcessPendingDestroys ()
 
static void RegisterNetFuncs (Node *node)
 
static void Deleter (Node *node)
 
template<class NodeClass >
static SharedPtr< NodeClass > Construct ()
 
- Static Public Member Functions inherited from Object
static const char * ClassRuntimeName ()
 

Protected Member Functions

virtual void SetParent (Node *parent) override
 
float PixelsToRatioX (float x) const
 
float PixelsToRatioY (float y) const
 
float RatioToPixelsX (float x) const
 
float RatioToPixelsY (float y) const
 
void PushScissor ()
 
void PopScissor ()
 
void SetScissor (Rect &area)
 
- Protected Member Functions inherited from Node
void TickCommon (float deltaTime)
 
void ValidateUniqueChildName (Node *newChild)
 
void SendNetFunc (NetFunc *func, uint32_t numParams, const Datum **params)
 

Static Protected Member Functions

static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
- Static Protected Member Functions inherited from Node
static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
static bool OnRep_OwningHost (Datum *datum, uint32_t index, const void *newValue)
 

Protected Attributes

Rect mRect
 
Rect mScissorRect
 
glm::mat3 mTransform
 
glm::vec4 mColor
 
glm::vec2 mOffset
 
glm::vec2 mSize
 
glm::vec2 mPivot
 
glm::vec2 mScale
 
glm::vec2 mAbsoluteScale
 
float mRotation
 
AnchorMode mAnchorMode
 
uint8_t mActiveMargins
 
bool mUseScissor
 
bool mUseGameResolution = false
 
uint8_t mOpacity
 
std::string mTooltipName
 
std::string mTooltipDescription
 
- Protected Attributes inherited from Node
std::string mName
 
WorldmWorld = nullptr
 
NodePtrWeak mParent
 
NodePtrWeak mSelf
 
std::vector< NodePtrmChildren
 
std::unordered_map< std::string, Node * > mChildNameMap
 
std::unordered_map< std::string, SignalmSignalMap
 
std::string mScriptFile
 
uint32_t mLastTickedFrame = 0
 
bool mActive = true
 
bool mVisible = true
 
bool mTransient = false
 
bool mPersistent = false
 
bool mDefault = false
 
bool mUserdataCreated = false
 
bool mHasStarted = false
 
bool mHasAwoken = false
 
bool mDestroyed = false
 
bool mTickEnabled = true
 
bool mLateTick = false
 
SceneRef mScene
 
uint8_t mTargetScreen = 0
 
std::vector< std::string > mTags
 
NodeId mNodeId = INVALID_NODE_ID
 
uint64_t mPersistentUuid = 0
 
std::vector< NetDatummReplicatedData
 
NetId mNetId = INVALID_NET_ID
 
NetHostId mOwningHost = INVALID_HOST_ID
 
bool mReplicate = false
 
bool mReplicateTransform = false
 
bool mForceReplicate = false
 
bool mAlwaysRelevant = true
 
ScriptmScript = nullptr
 

Static Protected Attributes

static WeakPtr< WidgetsWidgetToClean
 
static const char * sAnchorModeStrings []
 
- Static Protected Attributes inherited from Node
static std::unordered_map< TypeId, NetFuncMapsTypeNetFuncMap
 
static std::unordered_set< NodePtrWeaksPendingDestroySet
 
static NodeId sNextNodeId = NodeId(1)
 

Constructor & Destructor Documentation

◆ Widget()

Widget::Widget ( )

Member Function Documentation

◆ AnchorStretchesX()

bool Widget::AnchorStretchesX ( AnchorMode  mode) const

◆ AnchorStretchesY()

bool Widget::AnchorStretchesY ( AnchorMode  mode) const

◆ Centered()

void Widget::Centered ( )

◆ CenterPivot()

void Widget::CenterPivot ( )

◆ ContainsMouse()

bool Widget::ContainsMouse ( bool  testScissor = true) const

◆ ContainsPoint()

bool Widget::ContainsPoint ( int32_t  x,
int32_t  y 
)
virtual

Reimplemented in Text.

◆ DECLARE_NODE()

Widget::DECLARE_NODE ( Widget  ,
Node   
)

◆ EnableScissor()

void Widget::EnableScissor ( bool  enable)

◆ FitInsideParent()

void Widget::FitInsideParent ( )

◆ GatherProperties()

void Widget::GatherProperties ( std::vector< Property > &  outProps)
overridevirtual

◆ GetAbsoluteScale()

glm::vec2 Widget::GetAbsoluteScale ( ) const
inline

◆ GetAnchorMode()

AnchorMode Widget::GetAnchorMode ( ) const

◆ GetAnchorRatio()

glm::vec2 Widget::GetAnchorRatio ( ) const

◆ GetChildWidget()

Widget * Widget::GetChildWidget ( int32_t  index)

◆ GetColor()

glm::vec4 Widget::GetColor ( ) const

◆ GetDimensions()

glm::vec2 Widget::GetDimensions ( ) const

◆ GetHeight()

float Widget::GetHeight ( ) const

◆ GetOffset()

glm::vec2 Widget::GetOffset ( ) const

◆ GetOpacity()

uint8_t Widget::GetOpacity ( ) const

◆ GetOpacityFloat()

float Widget::GetOpacityFloat ( ) const

◆ GetParentHeight()

float Widget::GetParentHeight ( ) const

◆ GetParentWidget() [1/2]

Widget * Widget::GetParentWidget ( )

◆ GetParentWidget() [2/2]

const Widget * Widget::GetParentWidget ( ) const

◆ GetParentWidth()

float Widget::GetParentWidth ( ) const

◆ GetPivot()

glm::vec2 Widget::GetPivot ( ) const

◆ GetPosition()

glm::vec2 Widget::GetPosition ( ) const

◆ GetRect()

Rect Widget::GetRect ( )

◆ GetRotation()

float Widget::GetRotation ( ) const

◆ GetScale()

glm::vec2 Widget::GetScale ( ) const

◆ GetScissorRect()

Rect Widget::GetScissorRect ( ) const

◆ GetSize()

glm::vec2 Widget::GetSize ( ) const

◆ GetTooltipDescription()

const std::string & Widget::GetTooltipDescription ( ) const

◆ GetTooltipName()

const std::string & Widget::GetTooltipName ( ) const

◆ GetTransform()

const glm::mat3 & Widget::GetTransform ( )

◆ GetUseGameResolution()

bool Widget::GetUseGameResolution ( ) const

◆ GetVertexType()

VertexType Widget::GetVertexType ( ) const
overridevirtual

Reimplemented from Node.

◆ GetWidth()

float Widget::GetWidth ( ) const

◆ GetX()

float Widget::GetX ( ) const

◆ GetY()

float Widget::GetY ( ) const

◆ HandlePropChange()

bool Widget::HandlePropChange ( Datum datum,
uint32_t  index,
const void *  newValue 
)
staticprotected

◆ HasTooltip()

bool Widget::HasTooltip ( ) const

◆ InterfaceToNormalized()

float Widget::InterfaceToNormalized ( float  interfaceCoord,
float  interfaceSize 
)
static

◆ IsDirty()

bool Widget::IsDirty ( ) const

◆ IsMouseInside()

bool Widget::IsMouseInside ( Rect  rect)
static

◆ IsScissorEnabled()

bool Widget::IsScissorEnabled ( ) const

◆ IsWidget()

bool Widget::IsWidget ( ) const
overridevirtual

Reimplemented from Node.

◆ MarkClean()

void Widget::MarkClean ( )

◆ MarkDirty()

void Widget::MarkDirty ( )
virtual

Reimplemented in Text.

◆ MoveToMousePosition()

void Widget::MoveToMousePosition ( )

◆ PixelsToRatioX()

float Widget::PixelsToRatioX ( float  x) const
protected

◆ PixelsToRatioY()

float Widget::PixelsToRatioY ( float  y) const
protected

◆ PopScissor()

void Widget::PopScissor ( )
protected

◆ PrepareTick()

void Widget::PrepareTick ( std::vector< NodePtrWeak > &  outTickNodes,
bool  game,
bool  recurse 
)
overridevirtual

Reimplemented from Node.

◆ PreRender()

◆ PushScissor()

void Widget::PushScissor ( )
protected

◆ RatioToPixelsX()

float Widget::RatioToPixelsX ( float  x) const
protected

◆ RatioToPixelsY()

float Widget::RatioToPixelsY ( float  y) const
protected

◆ Render()

void Widget::Render ( )
overridevirtual

Reimplemented from Node.

Reimplemented in Poly, Quad, and Text.

◆ SetAnchorMode()

void Widget::SetAnchorMode ( AnchorMode  anchorMode)

◆ SetBottomMargin()

void Widget::SetBottomMargin ( float  bottom)

◆ SetColor()

void Widget::SetColor ( glm::vec4  color)
virtual

Reimplemented in Quad, and Text.

◆ SetDimensions() [1/2]

void Widget::SetDimensions ( float  width,
float  height 
)
virtual

◆ SetDimensions() [2/2]

void Widget::SetDimensions ( glm::vec2  dimensions)

◆ SetFullScreen()

void Widget::SetFullScreen ( )

◆ SetHeight()

void Widget::SetHeight ( float  height)

◆ SetHeightRatio()

void Widget::SetHeightRatio ( float  height)

◆ SetLeftMargin()

void Widget::SetLeftMargin ( float  left)

◆ SetMargins()

void Widget::SetMargins ( float  left,
float  top,
float  right,
float  bottom 
)

◆ SetOffset()

void Widget::SetOffset ( float  x,
float  y 
)

◆ SetOpacity()

void Widget::SetOpacity ( uint8_t  opacity)

◆ SetOpacityFloat()

void Widget::SetOpacityFloat ( float  opacity)

◆ SetParent()

void Widget::SetParent ( Node parent)
overrideprotectedvirtual

Reimplemented from Node.

◆ SetPivot()

void Widget::SetPivot ( glm::vec2  pivot)

◆ SetPosition() [1/2]

void Widget::SetPosition ( float  x,
float  y 
)
virtual

◆ SetPosition() [2/2]

void Widget::SetPosition ( glm::vec2  position)

◆ SetRatios()

void Widget::SetRatios ( float  x,
float  y,
float  width,
float  height 
)

◆ SetRect() [1/3]

void Widget::SetRect ( float  x,
float  y,
float  width,
float  height 
)

◆ SetRect() [2/3]

void Widget::SetRect ( glm::vec2  position,
glm::vec2  dimensions 
)

◆ SetRect() [3/3]

void Widget::SetRect ( Rect  rect)

◆ SetRightMargin()

void Widget::SetRightMargin ( float  right)

◆ SetRotation()

void Widget::SetRotation ( float  degrees)

◆ SetScale()

void Widget::SetScale ( glm::vec2  scale)

◆ SetScissor()

void Widget::SetScissor ( Rect area)
protected

◆ SetSize()

void Widget::SetSize ( float  x,
float  y 
)

◆ SetTooltipDescription()

void Widget::SetTooltipDescription ( const std::string &  description)

◆ SetTooltipName()

void Widget::SetTooltipName ( const std::string &  name)

◆ SetTopMargin()

void Widget::SetTopMargin ( float  top)

◆ SetUseGameResolution()

void Widget::SetUseGameResolution ( bool  use)

◆ SetVisible()

void Widget::SetVisible ( bool  visible)
overridevirtual

Reimplemented from Node.

◆ SetWidth()

void Widget::SetWidth ( float  width)

◆ SetWidthRatio()

void Widget::SetWidthRatio ( float  width)

◆ SetX()

void Widget::SetX ( float  x)

◆ SetXRatio()

void Widget::SetXRatio ( float  x)

◆ SetY()

void Widget::SetY ( float  y)

◆ SetYRatio()

void Widget::SetYRatio ( float  y)

◆ ShouldHandleInput()

bool Widget::ShouldHandleInput ( )
virtual

◆ Start()

void Widget::Start ( )
overridevirtual

Reimplemented from Node.

Reimplemented in AnimatedWidget, Canvas, DialogWindow, and Window.

◆ StretchX()

bool Widget::StretchX ( ) const
inline

◆ StretchY()

bool Widget::StretchY ( ) const
inline

◆ UpdateColor()

void Widget::UpdateColor ( )

◆ UpdateRect()

void Widget::UpdateRect ( )

Member Data Documentation

◆ mAbsoluteScale

glm::vec2 Widget::mAbsoluteScale
protected

◆ mActiveMargins

uint8_t Widget::mActiveMargins
protected

◆ mAnchorMode

AnchorMode Widget::mAnchorMode
protected

◆ mColor

glm::vec4 Widget::mColor
protected

◆ mOffset

glm::vec2 Widget::mOffset
protected

◆ mOpacity

uint8_t Widget::mOpacity
protected

◆ mPivot

glm::vec2 Widget::mPivot
protected

◆ mRect

Rect Widget::mRect
protected

◆ mRotation

float Widget::mRotation
protected

◆ mScale

glm::vec2 Widget::mScale
protected

◆ mScissorRect

Rect Widget::mScissorRect
protected

◆ mSize

glm::vec2 Widget::mSize
protected

◆ mTooltipDescription

std::string Widget::mTooltipDescription
protected

◆ mTooltipName

std::string Widget::mTooltipName
protected

◆ mTransform

glm::mat3 Widget::mTransform
protected

◆ mUseGameResolution

bool Widget::mUseGameResolution = false
protected

◆ mUseScissor

bool Widget::mUseScissor
protected

◆ sAnchorModeStrings

const char * Widget::sAnchorModeStrings
staticprotected
Initial value:
=
{
"Top Left",
"Top Mid",
"Top Right",
"Mid Left",
"Mid",
"Mid Right",
"Bottom Left",
"Bottom Mid",
"Bottom Right",
"Top Stretch",
"Mid Horizontal Stretch",
"Bottom Stretch",
"Left Stretch",
"Mid Vertical Stretch",
"Right Stretch",
"Full Stretch"
}

◆ sWidgetToClean

WeakPtr<Widget> Widget::sWidgetToClean
staticprotected

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