#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) | |
VirtualChildElement & | operator= (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::Selector > | m_dynamicSelectors |
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.