OGL Engine 1.2.0-dev
Loading...
Searching...
No Matches
Engine::UI::Element Struct Reference

Définit un component "Element" à ajouter à une entité pour créer des interfaces. More...

#include <element.hpp>

Inheritance diagram for Engine::UI::Element:
Engine::ECS::Component

Public Attributes

glm::vec2 size
 la taille de l'élément
Graphics::Material material
 le material à appliquer sur l'élément
Anchor anchor = Anchor::Center
 Une ancre pour positionner l'élément.
Public Attributes inherited from Engine::ECS::Component
bool enabled = true

Additional Inherited Members

Public Member Functions inherited from Engine::ECS::Component
 Component ()=default
void SetEntity (Entity e)
 Attache l'entité au component.
EntityGetEntity () const
 Renvoie l'entité attachée.
RegistryGetRegistry () const
 Renvoie le registre actuel.
Scene::SceneGetScene () const
 Renvoie la scène en cours.
AppGetApp () const
 Renvoie l'instance d'application.

Detailed Description

Définit un component "Element" à ajouter à une entité pour créer des interfaces.

Member Data Documentation

◆ anchor

Anchor Engine::UI::Element::anchor = Anchor::Center

Une ancre pour positionner l'élément.

◆ material

Graphics::Material Engine::UI::Element::material

le material à appliquer sur l'élément

◆ size

glm::vec2 Engine::UI::Element::size

la taille de l'élément


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