6#include "TTauri/Widgets/Widget.hpp"
7#include "TTauri/Text/EditableText.hpp"
23 aarect textClippingRectangle = {};
24 aarect leftToRightCaret = {};
25 aarect partialGraphemeCaret = {};
31 float dragScrollSpeedX = 0.0f;
35 int dragClickCount = 0;
37 vec dragSelectPosition = {};
41 float textScrollX = 0.0f;
78 void dragSelect() noexcept;
Class which represents an axis-aligned rectangle.
Definition aarect.hpp:13
Optimized 2D translate matrix.
Definition mat.hpp:184
A 4D vector.
Definition vec.hpp:37
Draw context for drawing using the TTauri shaders.
Definition DrawContext.hpp:30
Definition KeyboardEvent.hpp:37
Definition MouseEvent.hpp:12
Definition Window_vulkan_win32.hpp:15
Definition EditableText.hpp:14
ShapedText represent a piece of text shaped to be displayed.
Definition ShapedText.hpp:21
Definition LineInputWidget.hpp:16
HitBox hitBoxTest(vec position) const noexcept override
Find the widget that is under the mouse cursor.
int needs(hires_utc_clock::time_point displayTimePoint) noexcept override
Request the needs of the widget.
void handleKeyboardEvent(KeyboardEvent const &event) noexcept override
void handleMouseEvent(MouseEvent const &event) noexcept override
bool acceptsFocus() const noexcept override
Check if the widget will accept keyboard focus.
Definition LineInputWidget.hpp:73
void draw(DrawContext const &drawContext, hires_utc_clock::time_point displayTimePoint) noexcept override
Draw widget.
void handleCommand(string_ltag command) noexcept override
Handle command.
void layout(hires_utc_clock::time_point displayTimePoint) noexcept override
Layout the widget.
observable< bool > enabled
The widget is enabled.
Definition Widget.hpp:150