mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
add history to TextBox
This commit is contained in:
parent
223a846784
commit
4c493aff25
7 changed files with 230 additions and 33 deletions
|
|
@ -63,7 +63,7 @@ namespace gui {
|
|||
};
|
||||
|
||||
/// @brief Base abstract class for all UI elements
|
||||
class UINode {
|
||||
class UINode : public std::enable_shared_from_this<UINode> {
|
||||
/// @brief element identifier used for direct access in UiDocument
|
||||
std::string id = "";
|
||||
/// @brief element enabled state
|
||||
|
|
@ -195,7 +195,7 @@ namespace gui {
|
|||
/// @param pos cursor screen position
|
||||
/// @param self shared pointer to element
|
||||
/// @return self, sub-element or nullptr if element is not interractive
|
||||
virtual std::shared_ptr<UINode> getAt(const glm::vec2& pos, const std::shared_ptr<UINode>& self);
|
||||
virtual std::shared_ptr<UINode> getAt(const glm::vec2& pos);
|
||||
|
||||
/// @brief Check if element is opaque for cursor
|
||||
virtual bool isInteractive() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue