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

#include <StylingComponent.h>

Inherits AZ::Component, VisualNotificationBus::Handler, StyledEntityRequestBus::Handler, SceneMemberNotificationBus::Handler, GraphCanvas::SceneNotificationBus::Handler, and EntitySaveDataRequestBus::Handler.

Classes

class  StylingComponentSaveData
 

Public Member Functions

 AZ_COMPONENT (StylingComponent, "{94BF24F3-0EF1-41D9-B869-27AAB2B7F9AF}")
 
 StylingComponent (const AZStd::string &element, const AZ::EntityId &parentStyledEntity=AZ::EntityId(), const AZStd::string &styleClass=AZStd::string())
 
void Activate () override
 
void Deactivate () override
 
void OnItemChange (const AZ::EntityId &, QGraphicsItem::GraphicsItemChange, const QVariant &) override
 
AZ::EntityId GetStyleParent () const override
 
Styling::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 OnSceneSet (const AZ::EntityId &scene) override
 
void OnRemovedFromScene (const AZ::EntityId &scene) override
 
void OnStylesChanged () override
 
void WriteSaveData (EntitySaveDataContainer &saveDataContainer) const override
 
void ReadSaveData (const EntitySaveDataContainer &saveDataContainer) override
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *)
 
static AZ::EntityId CreateStyleEntity (const AZStd::string &element)
 
static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible)
 
static void GetDependentServices (AZ::ComponentDescriptor::DependencyArrayType &dependent)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required)
 

Detailed Description

Implements a base StyledEntityRequestBus::Handler for entities that have a "root visual" (QGraphicsItem/QGraphicsLayoutItem).


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