Open 3D Engine LyShine 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.
UiLayoutFitterComponent Class Reference

#include <UiLayoutFitterComponent.h>

Inherits AZ::Component, UiLayoutControllerBus::Handler, and UiLayoutFitterBus::Handler.

Public Member Functions

 AZ_COMPONENT (UiLayoutFitterComponent, LyShine::UiLayoutFitterComponentUuid, AZ::Component)
 
void ApplyLayoutWidth () override
 
void ApplyLayoutHeight () override
 
bool GetHorizontalFit () override
 
void SetHorizontalFit (bool horizontalFit) override
 
bool GetVerticalFit () override
 
void SetVerticalFit (bool verticalFit) override
 
FitType GetFitType () override
 

Static Public Member Functions

static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &provided)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &incompatible)
 
static void GetRequiredServices (AZ::ComponentDescriptor::DependencyArrayType &required)
 
static void Reflect (AZ::ReflectContext *context)
 

Protected Member Functions

void Activate () override
 
void Deactivate () override
 
unsigned int GetPriority () const override
 
 AZ_DISABLE_COPY_MOVE (UiLayoutFitterComponent)
 
void CheckFitterAndInvalidateLayout ()
 Called on a property change that has caused this element's layout to be invalid.
 
void RefreshEditorTransformProperties ()
 Called on a property change that has caused properties on Transform2d to get modified.
 

Protected Attributes

bool m_horizontalFit
 
bool m_verticalFit
 

Detailed Description

This component resizes its element to fit its content. It uses cell sizing information given to it by other Layout components, Text component, or Image component (fixed type).


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