DIWNE::Actions::SelectionRectAction
#include "DIWNE/Core/diwne_actions.h"
Inherits from DIWNE::Actions::DiwneAction
Public Functions
Name | |
---|---|
SelectionRectAction(const std::shared_ptr< DiwneObject > & source) |
Public Attributes
Name | |
---|---|
ImRect | rect |
ImVec2 | startPos |
bool | touch |
Additional inherited members
Public Functions inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
DiwneAction(const std::string & name, const std::shared_ptr< DiwneObject > & source) | |
virtual | ~DiwneAction() =default |
void | end()<br>Marks the action to end at the end of the next frame. |
bool | hasSameSource(const DiwneAction & action) const<br>Checks whether the source of this and another action are the same. |
bool | isSource(const DiwneObject * object) const<br>Checks whether passed object is the source of this action (eg. the object that started it. |
virtual void | onEnd()<br>Called at the end of the frame after the frame in which the action has ended. Called after onFrameEnd(). |
virtual void | onFrameEnd()<br>Called at the end of each frame the action is active for, called before onEnd() on the last frame. |
Public Attributes inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
std::string | name |
std::weak_ptr< DiwneObject > | source |
Friends inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
class | DIWNE::InteractionState |
Public Functions Documentation
function SelectionRectAction
cpp
inline SelectionRectAction(
const std::shared_ptr< DiwneObject > & source
)
inline SelectionRectAction(
const std::shared_ptr< DiwneObject > & source
)
Public Attributes Documentation
variable rect
cpp
ImRect rect {0, 0, 0, 0};
ImRect rect {0, 0, 0, 0};
variable startPos
cpp
ImVec2 startPos {0, 0};
ImVec2 startPos {0, 0};
variable touch
cpp
bool touch = false;
bool touch = false;
Updated on 2025-05-31 at 12:55:31 +0000