Open 3D Engine GraphCanvas Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphCanvas::Styling::VirtualChildElement Class Reference

#include <PseudoElement.h>

Inherits AZ::Component, and StyledEntityRequestBus::Handler.

Public Member Functions

 AZ_COMPONENT (VirtualChildElement, "{42C2CC3B-CEEC-434C-916E-3ACED53F7751}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static AZ::EntityId Create (const AZ::EntityId &real, const AZStd::string &virtualChildElement)
 

Protected Member Functions

 VirtualChildElement (const AZ::EntityId &real, const AZStd::string &virtualChildElement)
 
VirtualChildElementoperator= (const VirtualChildElement &)=delete
 
AZ::EntityId GetStyleParent () const override
 
SelectorVector GetStyleSelectors () const override
 
void AddSelectorState (const char *selector) override
 
void RemoveSelectorState (const char *selector) override
 
AZStd::string GetElement () const override
 
AZStd::string GetClass () const override
 
void Activate () override
 
void Deactivate () override
 

Protected Attributes

AZ::EntityId m_real
 
Selector m_parentSelector
 
AZStd::string m_virtualChild
 
Selector m_virtualChildSelector
 
AZStd::unordered_map< AZ::Crc32, Styling::Selectorm_dynamicSelectors
 

Detailed Description

A virtual entity that appears to be hierarchically nested below the real styled entity. For example, you might have a node, and want to add a "help" element (i.e. "node > help").

Note that the virtual element has the same set of selectors as its parent (with the exception of the "element" selector), so it will track the parent's state.


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