3#include "structure/design_pattern/spk_contract_provider.hpp"
4#include "structure/widget/components/spk_nine_slice_background.hpp"
5#include "structure/widget/components/spk_text_region.hpp"
6#include "structure/widget/spk_widget.hpp"
55 bool _isPressed =
false;
56 bool _isHovered =
false;
57 bool _forceHovered =
false;
61 Visual &_visualForState(
State p_state);
62 const Visual &_visualForState(
State p_state)
const;
63 void _applyGeometry();
133 void setCornerSize(
const spk::Vector2UInt &p_cornerSize,
State p_state = State::Both);
159 void setText(
const std::wstring &p_text,
State p_state = State::Both);
166 void setAlignment(HorizontalAlignment p_horizontalAlignment, VerticalAlignment p_verticalAlignment,
State p_state = State::Both);
209 const std::wstring &
text(
State p_state)
const;
Loads font data and provides cached bitmap atlases per size.
Definition spk_font.hpp:33
Renders a scalable nine-slice background using a sprite sheet.
Definition spk_nine_slice_background.hpp:25
Loads an image and exposes individual sprite regions.
Definition spk_sprite_sheet.hpp:21
Handle to a subscribed job that can be resigned or triggered.
Definition spk_contract_provider.hpp:42
typename Contract::Job Job
Alias to the subscribed callback signature.
Definition spk_contract_provider.hpp:267
Renders formatted text within a geometry region.
Definition spk_text_region.hpp:24
RGBA color utility storing normalized floating components.
Definition spk_color.hpp:18
Defines glyph and outline sizes for a font bitmap.
Definition spk_font.hpp:40
Mouse button double-click event.
Definition spk_mouse_event.hpp:38
Mouse move event carrying current position.
Definition spk_mouse_event.hpp:50
Mouse button press event.
Definition spk_mouse_event.hpp:14
Mouse button release event.
Definition spk_mouse_event.hpp:26
Event emitted when a drawable region needs repainting.
Definition spk_paint_event.hpp:19