|
| enum class | Visibility { INVISIBLE_DISABLED = 0b00
, INVISIBLE_INTERACTABLE = 0b01
, VISIBLE_DISABLED = 0b10
, VISIBLE_INTERACTABLE = 0b11
} |
| | Used to determine if Component should be rendered and targeted by events. More...
|
| |
Definition at line 26 of file component.h.
◆ Visibility
Used to determine if Component should be rendered and targeted by events.
- Note
- The least significant bit specifies interactability, and the following one specifies visibility.
Definition at line 35 of file component.h.
◆ buildEventDispatchChain()
| Sml::EventDispatchChain * Sgl::Component::buildEventDispatchChain |
( |
Sml::EventDispatchChain * |
chain | ) |
|
|
overridevirtual |
◆ computeLocalToScenePos()
| Sml::Vec2i Sgl::Component::computeLocalToScenePos |
( |
const Sml::Vec2i & |
localPos | ) |
const |
◆ computeScenePos()
| Sml::Vec2i Sgl::Component::computeScenePos |
( |
| ) |
|
◆ computeSceneToLocalPos()
| Sml::Vec2i Sgl::Component::computeSceneToLocalPos |
( |
const Sml::Vec2i & |
scenePos | ) |
const |
◆ containsComponent()
| bool Sgl::Component::containsComponent |
( |
Component * |
component | ) |
|
|
virtual |
◆ getEventDispatcher()
◆ getHitComponent()
| Component * Sgl::Component::getHitComponent |
( |
int32_t |
x, |
|
|
int32_t |
y |
|
) |
| |
|
virtual |
◆ getLayoutBounds()
| const Sml::Rectangle< int32_t > & Sgl::Component::getLayoutBounds |
( |
| ) |
const |
◆ getLayoutHeight()
| int32_t Sgl::Component::getLayoutHeight |
( |
| ) |
const |
◆ getLayoutPos()
| const Sml::Vec2i & Sgl::Component::getLayoutPos |
( |
| ) |
const |
◆ getLayoutWidth()
| int32_t Sgl::Component::getLayoutWidth |
( |
| ) |
const |
◆ getLayoutX()
| int32_t Sgl::Component::getLayoutX |
( |
| ) |
const |
◆ getLayoutY()
| int32_t Sgl::Component::getLayoutY |
( |
| ) |
const |
◆ getModifiableParent()
| Parent * Sgl::Component::getModifiableParent |
( |
| ) |
|
◆ getOriginBounds()
| Sml::Rectangle< int32_t > Sgl::Component::getOriginBounds |
( |
| ) |
const |
◆ getParent()
| const Parent * Sgl::Component::getParent |
( |
| ) |
const |
◆ getScene()
| Scene * Sgl::Component::getScene |
( |
| ) |
|
◆ getShadow()
| const Shadow & Sgl::Component::getShadow |
( |
| ) |
const |
◆ getVisibility()
◆ isFocused()
| bool Sgl::Component::isFocused |
( |
| ) |
const |
◆ isHovered()
| bool Sgl::Component::isHovered |
( |
| ) |
const |
◆ isInteractable()
| bool Sgl::Component::isInteractable |
( |
| ) |
const |
◆ isVisible()
| bool Sgl::Component::isVisible |
( |
| ) |
const |
◆ layout()
| void Sgl::Component::layout |
( |
| ) |
|
|
virtual |
◆ prerender()
| void Sgl::Component::prerender |
( |
| ) |
|
|
virtual |
◆ renderShadow()
| void Sgl::Component::renderShadow |
( |
const Sml::Rectangle< int32_t > & |
targetRegion | ) |
|
|
protected |
◆ requestDrag()
| void Sgl::Component::requestDrag |
( |
| ) |
|
◆ requestFocus()
| void Sgl::Component::requestFocus |
( |
| ) |
|
◆ setInteractable()
| void Sgl::Component::setInteractable |
( |
bool |
interactable | ) |
|
◆ setLayoutHeight()
| void Sgl::Component::setLayoutHeight |
( |
int32_t |
height | ) |
|
◆ setLayoutWidth()
| void Sgl::Component::setLayoutWidth |
( |
int32_t |
width | ) |
|
◆ setLayoutX()
| void Sgl::Component::setLayoutX |
( |
int32_t |
x | ) |
|
◆ setLayoutY()
| void Sgl::Component::setLayoutY |
( |
int32_t |
y | ) |
|
◆ setParent()
| void Sgl::Component::setParent |
( |
Parent * |
parent | ) |
|
◆ setScene()
| void Sgl::Component::setScene |
( |
Scene * |
scene | ) |
|
◆ setSceneInSceneTree()
| void Sgl::Component::setSceneInSceneTree |
( |
Scene * |
scene | ) |
|
|
protectedvirtual |
◆ setShadow()
◆ setVisibility()
| void Sgl::Component::setVisibility |
( |
Visibility |
visibility | ) |
|
◆ setVisible()
| void Sgl::Component::setVisible |
( |
bool |
visible | ) |
|
◆ updateShadow()
| void Sgl::Component::updateShadow |
( |
| ) |
|
|
protected |
◆ m_Dispatcher
◆ m_Focused
| bool Sgl::Component::m_Focused = false |
|
protected |
◆ m_Hovered
| bool Sgl::Component::m_Hovered = false |
|
protected |
◆ m_LayoutBounds
| Sml::Rectangle<int32_t> Sgl::Component::m_LayoutBounds = {{0, 0}, 0, 0} |
|
protected |
◆ m_Parent
| Parent* Sgl::Component::m_Parent = nullptr |
|
protected |
◆ m_Scene
| Scene* Sgl::Component::m_Scene = nullptr |
|
protected |
◆ m_Shadow
| Shadow Sgl::Component::m_Shadow |
|
protected |
◆ m_Visibility
| Visibility Sgl::Component::m_Visibility = Visibility::VISIBLE_INTERACTABLE |
|
protected |
◆ Scene
| friend Sgl::Component::Scene |
◆ UNLIMITED_SIZE
| const int32_t Sgl::Component::UNLIMITED_SIZE = INT32_MAX |
|
static |
◆ USE_COMPUTED_SIZE
| const int32_t Sgl::Component::USE_COMPUTED_SIZE = INT32_MIN |
|
static |
The documentation for this class was generated from the following files: