Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::Draggable Struct Reference

#include <Draggable.hpp>

Public Attributes

bool enabled {true}
f32 dragThreshold {5.0f}
bool lockX {false}
bool lockY {false}
bool constrainMin {false}
glm::vec2 constraintMin {0.0f, 0.0f}
bool constrainMax {false}
glm::vec2 constraintMax {0.0f, 0.0f}

Detailed Description

Definition at line 21 of file Draggable.hpp.

Member Data Documentation

◆ constrainMax

bool esengine::ecs::Draggable::constrainMax {false}

Definition at line 45 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ constrainMin

bool esengine::ecs::Draggable::constrainMin {false}

Definition at line 39 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ constraintMax

glm::vec2 esengine::ecs::Draggable::constraintMax {0.0f, 0.0f}

Definition at line 48 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ constraintMin

glm::vec2 esengine::ecs::Draggable::constraintMin {0.0f, 0.0f}

Definition at line 42 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ dragThreshold

f32 esengine::ecs::Draggable::dragThreshold {5.0f}

Definition at line 28 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ enabled

bool esengine::ecs::Draggable::enabled {true}

Definition at line 23 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ lockX

bool esengine::ecs::Draggable::lockX {false}

Definition at line 31 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ lockY

bool esengine::ecs::Draggable::lockY {false}

Definition at line 34 of file Draggable.hpp.

Referenced by EMSCRIPTEN_BINDINGS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/Draggable.hpp