Inherits AZ::ComponentBus.
|
virtual | ~UiCanvasInterface () |
| Deleting a canvas will delete all its child elements recursively and all of their components.
|
|
virtual const AZStd::string & | GetPathname ()=0 |
| Get the asset ID path name of this canvas. If not loaded or saved yet this will be "".
|
|
virtual LyShine::CanvasId | GetCanvasId ()=0 |
| Get the ID of this canvas. This will remain the same while this canvas is loaded.
|
|
virtual AZ::u64 | GetUniqueCanvasId ()=0 |
| Get the unique ID of this canvas.
|
|
virtual int | GetDrawOrder ()=0 |
| Get the draw order of this canvas. Rendering is back-to-front, so higher numbers render in front of lower numbers.
|
|
virtual void | SetDrawOrder (int drawOrder)=0 |
| Set the draw order of this canvas. Rendering is back-to-front, so higher numbers render in front of lower numbers.
|
|
virtual bool | GetKeepLoadedOnLevelUnload ()=0 |
| Get the flag indicating if this canvas will stay loaded through a level unload.
|
|
virtual void | SetKeepLoadedOnLevelUnload (bool keepLoaded)=0 |
| Set the flag indicating if this canvas will stay loaded through a level unload.
|
|
virtual void | RecomputeChangedLayouts ()=0 |
|
virtual int | GetNumChildElements ()=0 |
| Get the number child elements of this canvas.
|
|
virtual AZ::Entity * | GetChildElement (int index)=0 |
| Get the specified child element, index must be less than GetNumChildElements()
|
|
virtual AZ::EntityId | GetChildElementEntityId (int index)=0 |
| Get the specified child entity Id, index must be less than GetNumChildElements()
|
|
virtual LyShine::EntityArray | GetChildElements ()=0 |
| Get the child elements of this canvas.
|
|
virtual AZStd::vector< AZ::EntityId > | GetChildElementEntityIds ()=0 |
| Get the child entity Ids of this canvas.
|
|
virtual AZ::Entity * | CreateChildElement (const LyShine::NameType &name)=0 |
| Create a new element that is a child of the canvas, the canvas has ownership of the child.
|
|
virtual AZ::Entity * | FindElementById (LyShine::ElementId id)=0 |
| Return the element on this canvas with the given id or nullptr if no match.
|
|
virtual AZ::Entity * | FindElementByName (const LyShine::NameType &name)=0 |
| Return the first element on this canvas with the given name or nullptr if no match.
|
|
virtual AZ::EntityId | FindElementEntityIdByName (const LyShine::NameType &name)=0 |
| Return the first element on this canvas with the given name or nullptr if no match.
|
|
virtual void | FindElementsByName (const LyShine::NameType &name, LyShine::EntityArray &result)=0 |
| Find all elements on this canvas with the given name.
|
|
virtual AZ::Entity * | FindElementByHierarchicalName (const LyShine::NameType &name)=0 |
|
virtual void | FindElements (AZStd::function< bool(const AZ::Entity *)> predicate, LyShine::EntityArray &result)=0 |
| Find all elements on this canvas matching the predicate.
|
|
virtual AZ::Entity * | PickElement (AZ::Vector2 point)=0 |
|
virtual LyShine::EntityArray | PickElements (const AZ::Vector2 &bound0, const AZ::Vector2 &bound1)=0 |
|
virtual AZ::EntityId | FindInteractableToHandleEvent (AZ::Vector2 point)=0 |
| Look for an entity with interactable component to handle an event at given point.
|
|
virtual bool | SaveToXml (const AZStd::string &assetIdPathname, const AZStd::string &sourceAssetPathname)=0 |
|
virtual void | FixupCreatedEntities (LyShine::EntityArray topLevelEntities, bool makeUniqueNamesAndIds, AZ::Entity *optionalInsertionPoint)=0 |
|
virtual void | AddElement (AZ::Entity *element, AZ::Entity *parent, AZ::Entity *insertBefore)=0 |
|
virtual void | ReinitializeElements ()=0 |
|
virtual AZStd::string | SaveToXmlString ()=0 |
|
virtual AZStd::string | GetUniqueChildName (AZ::EntityId parentEntityId, AZStd::string baseName, const LyShine::EntityArray *includeChildren)=0 |
|
virtual AZ::Entity * | CloneElement (AZ::Entity *sourceEntity, AZ::Entity *parentEntity)=0 |
|
virtual AZ::EntityId | CloneElementEntityId (AZ::EntityId sourceEntity, AZ::EntityId parentEntity, AZ::EntityId insertBefore)=0 |
|
virtual AZ::Entity * | CloneCanvas (const AZ::Vector2 &canvasSize)=0 |
|
virtual void | SetCanvasToViewportMatrix (const AZ::Matrix4x4 &matrix)=0 |
| Set the transformation from canvas space to viewport space.
|
|
virtual const AZ::Matrix4x4 & | GetCanvasToViewportMatrix ()=0 |
| Get the transformation from canvas space to viewport space.
|
|
virtual void | GetViewportToCanvasMatrix (AZ::Matrix4x4 &matrix)=0 |
| Get the transformation from viewport space to canvas space.
|
|
virtual AZ::Vector2 | GetAuthoredCanvasSize ()=0 |
|
virtual AZ::Vector2 | GetCanvasSize ()=0 |
| Returns the "target" size of the canvas (in pixels) More...
|
|
virtual void | SetCanvasSize (const AZ::Vector2 &canvasSize)=0 |
| Set the authored size of the canvas (in pixels)
|
|
virtual void | SetTargetCanvasSize (bool isInGame, const AZ::Vector2 &targetCanvasSize)=0 |
|
virtual AZ::Vector2 | GetDeviceScale ()=0 |
|
virtual bool | GetIsPixelAligned ()=0 |
| Get flag that indicates whether visual element's vertices should snap to the nearest pixel.
|
|
virtual void | SetIsPixelAligned (bool isPixelAligned)=0 |
| Set flag that indicates whether visual element's vertices should snap to the nearest pixel.
|
|
virtual bool | GetIsTextPixelAligned ()=0 |
| Get flag that indicates whether text should snap to the nearest pixel.
|
|
virtual void | SetIsTextPixelAligned (bool isTextPixelAligned)=0 |
| Set flag that indicates whether text should snap to the nearest pixel.
|
|
virtual IUiAnimationSystem * | GetAnimationSystem ()=0 |
| Get the animation system for this canvas.
|
|
virtual bool | GetEnabled ()=0 |
| Get flag that governs whether the canvas is enabled. More...
|
|
virtual void | SetEnabled (bool enabled)=0 |
| Set flag that governs whether the canvas is enabled. More...
|
|
virtual bool | GetIsRenderToTexture ()=0 |
| Get flag that controls whether the canvas is rendering to a texture.
|
|
virtual void | SetIsRenderToTexture (bool isRenderToTexture)=0 |
| Set flag that controls whether the canvas is rendering to a texture.
|
|
virtual const AZ::Data::Asset< AZ::RPI::AttachmentImageAsset > & | GetAttachmentImageAsset ()=0 |
| Get the attachment image that this canvas will render to.
|
|
virtual void | SetAttachmentImageAsset (const AZ::Data::Asset< AZ::RPI::AttachmentImageAsset > &attachmentImageAsset)=0 |
| Set the attachment image that this canvas will render to.
|
|
virtual bool | GetIsPositionalInputSupported ()=0 |
| Get flag that controls whether this canvas automatically handles positional input (mouse/touch)
|
|
virtual void | SetIsPositionalInputSupported (bool isSupported)=0 |
| Set flag that controls whether this canvas automatically handles positional input (mouse/touch)
|
|
virtual bool | GetIsConsumingAllInputEvents ()=0 |
| Get flag that controls whether this canvas consumes all input events while it is enabled.
|
|
virtual void | SetIsConsumingAllInputEvents (bool isConsuming)=0 |
| Set flag that controls whether this canvas consumes all input events while it is enabled.
|
|
virtual bool | GetIsMultiTouchSupported ()=0 |
| Get flag that controls whether this canvas automatically handles multi-touch input.
|
|
virtual void | SetIsMultiTouchSupported (bool isSupported)=0 |
| Set flag that controls whether this canvas automatically handles multi-touch input.
|
|
virtual bool | GetIsNavigationSupported ()=0 |
| Get flag that controls whether this canvas automatically handles navigation input (via keyboard/gamepad)
|
|
virtual void | SetIsNavigationSupported (bool isSupported)=0 |
| Set flag that controls whether this canvas automatically handles navigation input (via keyboard/gamepad)
|
|
virtual float | GetNavigationThreshold ()=0 |
| Get the analog (eg. thumb-stick) input value that must be exceeded before a navigation command will be processed.
|
|
virtual void | SetNavigationThreshold (float navigationThreshold)=0 |
| Set the analog (eg. thumb-stick) input value that must be exceeded before a navigation command will be processed.
|
|
virtual AZ::u64 | GetNavigationRepeatDelay ()=0 |
| Get the delay (milliseconds) before a held navigation command will begin repeating.
|
|
virtual void | SetNavigationRepeatDelay (AZ::u64 navigationRepeatDelay)=0 |
| Set the delay (milliseconds) before a held navigation command will begin repeating.
|
|
virtual AZ::u64 | GetNavigationRepeatPeriod ()=0 |
| Get the delay (milliseconds) before a held navigation command will continue repeating.
|
|
virtual void | SetNavigationRepeatPeriod (AZ::u64 navigationRepeatPeriod)=0 |
| Set the delay (milliseconds) before a held navigation command will continue repeating.
|
|
virtual AzFramework::LocalUserId | GetLocalUserIdInputFilter ()=0 |
| Get the local user id that is being used to filter incoming input events.
|
|
virtual void | SetLocalUserIdInputFilter (AzFramework::LocalUserId localUserId)=0 |
| Set the local user id that will be used to filter incoming input events.
|
|
virtual bool | HandleInputEvent (const AzFramework::InputChannel::Snapshot &inputSnapshot, const AZ::Vector2 *viewportPos=nullptr, AzFramework::ModifierKeyMask activeModifierKeys=AzFramework::ModifierKeyMask::None)=0 |
| Handle an input event for the canvas.
|
|
virtual bool | HandleTextEvent (const AZStd::string &textUTF8)=0 |
| Handle a unicode text event for the canvas.
|
|
virtual bool | HandleInputPositionalEvent (const AzFramework::InputChannel::Snapshot &inputSnapshot, AZ::Vector2 viewportPos)=0 |
|
virtual AZ::Vector2 | GetMousePosition ()=0 |
| Get the mouse position of the last input event.
|
|
virtual AZ::EntityId | GetTooltipDisplayElement ()=0 |
| Get the element to be displayed when hovering over an interactable.
|
|
virtual void | SetTooltipDisplayElement (AZ::EntityId entityId)=0 |
| Set the element to be displayed when hovering over an interactable.
|
|
virtual void | ForceFocusInteractable (AZ::EntityId interactableId)=0 |
|
virtual void | ForceActiveInteractable (AZ::EntityId interactableId, bool shouldStayActive, AZ::Vector2 point)=0 |
|
virtual AZ::EntityId | GetHoverInteractable ()=0 |
| Get the hover interactable.
|
|
virtual void | ForceHoverInteractable (AZ::EntityId interactableId)=0 |
|
virtual void | ClearAllInteractables ()=0 |
|
virtual void | ForceEnterInputEventOnInteractable (AZ::EntityId interactableId)=0 |
|