11#include "gui_window_size.hpp"
12#include "../layout/module.hpp"
13#include "../geometry/module.hpp"
14#include "../time/module.hpp"
15#include "../utility/utility.hpp"
16#include "../settings/settings.hpp"
17#include "../macros.hpp"
21namespace hi {
inline namespace v1 {
113 hi::subpixel_orientation subpixel_orientation,
156 return shape.rectangle;
185 return shape.width();
190 return shape.height();
214 }
else if (r.
shape.baseline) {
222 }
else if (r.
shape.centerline) {
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Class which represents an axis-aligned rectangle.
Definition aarectangle.hpp:29
constexpr extent2 size() const noexcept
Get size of the rectangle.
Definition aarectangle.hpp:182
constexpr bool contains(point2 const &rhs) const noexcept
Check if a 2D coordinate is inside the rectangle.
Definition aarectangle.hpp:264
A high-level geometric extent.
Definition extent2.hpp:29
A rectangle / parallelogram in 3D space.
Definition rectangle.hpp:21
Definition translate2.hpp:14
The layout of a widget.
Definition widget_layout.hpp:38
translate2 to_parent
This matrix transforms local coordinates to the coordinates of the parent widget.
Definition widget_layout.hpp:53
utc_nanoseconds display_time_point
The layout created for displaying at this time point.
Definition widget_layout.hpp:99
constexpr aarectangle clipping_rectangle_on_window() const noexcept
Get the clipping rectangle in window coordinate system.
Definition widget_layout.hpp:168
translate2 from_parent
This matrix transforms parent widget's coordinates to local coordinates.
Definition widget_layout.hpp:57
aarectangle clipping_rectangle
The clipping rectangle.
Definition widget_layout.hpp:89
constexpr bool contains(point3 mouse_position) const noexcept
Check if the mouse position is inside the widget.
Definition widget_layout.hpp:149
float elevation
The elevation of the widget above the window.
Definition widget_layout.hpp:77
constexpr aarectangle clipping_rectangle_on_window(aarectangle narrow_clipping_rectangle) const noexcept
Get the clipping rectangle in window coordinate system.
Definition widget_layout.hpp:178
translate2 to_window
This matrix transforms local coordinates to window coordinates.
Definition widget_layout.hpp:61
extent2 sub_pixel_size
The size of a sub-pixel.
Definition widget_layout.hpp:95
static constexpr int redraw_overhang
The amount of pixels that the redraw request will overhang the widget.
Definition widget_layout.hpp:44
translate2 from_window
This matrix transforms window coordinates to local coordinates.
Definition widget_layout.hpp:65
constexpr widget_layout override_clip(aarectangle new_clipping_rectangle) const noexcept
Override e context with the new clipping rectangle.
Definition widget_layout.hpp:252
extent2 window_size
Size of the window.
Definition widget_layout.hpp:69
box_shape shape
Shape of the widget.
Definition widget_layout.hpp:49
constexpr aarectangle rectangle_on_window() const noexcept
Get the rectangle in window coordinate system.
Definition widget_layout.hpp:161
gui_window_size window_size_state
The size state of the window.
Definition widget_layout.hpp:73
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:206
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:242
Definition box_shape.hpp:18