11#include "gui_window_size.hpp"
12#include "../layout/module.hpp"
13#include "../geometry/module.hpp"
14#include "../time/module.hpp"
15#include "../utility/module.hpp"
16#include "../settings/module.hpp"
18namespace hi {
inline namespace v1 {
110 hi::subpixel_orientation subpixel_orientation,
125 [[nodiscard]]
constexpr bool empty() const noexcept
131 [[nodiscard]]
constexpr explicit operator bool() const noexcept
136 [[nodiscard]]
constexpr translate3 to_window3() const noexcept
146 [[nodiscard]]
constexpr bool contains(point3 mouse_position)
const noexcept
153 return shape.rectangle;
180 [[nodiscard]]
constexpr float width() const noexcept
182 return shape.width();
185 [[nodiscard]]
constexpr float height() const noexcept
187 return shape.height();
190 [[nodiscard]]
constexpr extent2 size() const noexcept
202 [[nodiscard]]
constexpr widget_layout
208 if (child_shape.baseline) {
209 r.
shape.baseline = *child_shape.baseline - child_shape.y();
211 }
else if (r.
shape.baseline) {
213 *r.
shape.baseline -= child_shape.y();
216 if (child_shape.centerline) {
217 r.
shape.centerline = *child_shape.centerline - child_shape.x();
219 }
else if (r.
shape.centerline) {
221 *r.
shape.centerline -= child_shape.x();
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11
Class which represents an axis-aligned rectangle.
Definition aarectangle.hpp:26
constexpr extent2 size() const noexcept
Get size of the rectangle.
Definition aarectangle.hpp:179
constexpr bool contains(point2 const &rhs) const noexcept
Check if a 2D coordinate is inside the rectangle.
Definition aarectangle.hpp:261
A high-level geometric extent.
Definition extent2.hpp:26
A rectangle / parallelogram in 3D space.
Definition rectangle.hpp:20
Definition translate2.hpp:13
The layout of a widget.
Definition widget_layout.hpp:35
translate2 to_parent
This matrix transforms local coordinates to the coordinates of the parent widget.
Definition widget_layout.hpp:50
utc_nanoseconds display_time_point
The layout created for displaying at this time point.
Definition widget_layout.hpp:96
constexpr aarectangle clipping_rectangle_on_window() const noexcept
Get the clipping rectangle in window coordinate system.
Definition widget_layout.hpp:165
translate2 from_parent
This matrix transforms parent widget's coordinates to local coordinates.
Definition widget_layout.hpp:54
aarectangle clipping_rectangle
The clipping rectangle.
Definition widget_layout.hpp:86
constexpr bool contains(point3 mouse_position) const noexcept
Check if the mouse position is inside the widget.
Definition widget_layout.hpp:146
float elevation
The elevation of the widget above the window.
Definition widget_layout.hpp:74
constexpr aarectangle clipping_rectangle_on_window(aarectangle narrow_clipping_rectangle) const noexcept
Get the clipping rectangle in window coordinate system.
Definition widget_layout.hpp:175
translate2 to_window
This matrix transforms local coordinates to window coordinates.
Definition widget_layout.hpp:58
extent2 sub_pixel_size
The size of a sub-pixel.
Definition widget_layout.hpp:92
static constexpr int redraw_overhang
The amount of pixels that the redraw request will overhang the widget.
Definition widget_layout.hpp:41
translate2 from_window
This matrix transforms window coordinates to local coordinates.
Definition widget_layout.hpp:62
constexpr widget_layout override_clip(aarectangle new_clipping_rectangle) const noexcept
Override e context with the new clipping rectangle.
Definition widget_layout.hpp:249
extent2 window_size
Size of the window.
Definition widget_layout.hpp:66
box_shape shape
Shape of the widget.
Definition widget_layout.hpp:46
constexpr aarectangle rectangle_on_window() const noexcept
Get the rectangle in window coordinate system.
Definition widget_layout.hpp:158
gui_window_size window_size_state
The size state of the window.
Definition widget_layout.hpp:70
constexpr widget_layout transform(box_shape const &child_shape, float child_elevation, aarectangle new_clipping_rectangle) const noexcept
Create a new widget_layout for the child widget.
Definition widget_layout.hpp:203
constexpr widget_layout transform(box_shape const &child_shape, float child_elevation=1.0f) const noexcept
Create a new widget_layout for the child widget.
Definition widget_layout.hpp:239
Definition box_shape.hpp:15