23#include "guillaume/components/divider.hpp"
34 if (_variant == value) {
49 if (_length == value) {
64 if (_thickness == value) {
79 if (_inset == value) {
106 if (_originPose == value) {
121 _appliedPose = value;
127 return _variant == Variant::FullWidth ? 0.0f : _inset;
132 return _variant == Variant::Middle ? _inset : 0.0f;
Divider & setInset(float inset)
Set the inset applied to an inset end.
Variant
Which ends of the divider are inset.
float getLength(void) const
Get the total length, insets included.
const utility::graphic::PoseF & getOriginPose(void) const
Get the pose of the divider before the leading inset.
Divider & setVariant(Variant variant)
Choose which ends are inset.
Divider & setColor(const utility::graphic::Color32Bit &color)
Set the stroke color.
const utility::graphic::Color32Bit & getColor(void) const
Get the stroke color.
Divider & setOriginPose(const utility::graphic::PoseF &pose)
Set the pose of the divider before the leading inset.
Divider & setThickness(float thickness)
Set the stroke thickness.
float getInset(void) const
Get the inset applied to an inset end.
Divider(void)=default
Create the state of a full-width hairline divider, 100 dp long.
float getTrailingInset(void) const
Get the inset applied on the trailing (right) end for the current variant.
Divider & setAppliedPose(const utility::graphic::PoseF &pose)
Record the pose written to the Transform.
float getLeadingInset(void) const
Get the inset applied on the leading (left) end for the current variant.
const utility::graphic::PoseF & getAppliedPose(void) const
Get the pose systems::Divider last wrote to the Transform.
Variant getVariant(void) const
Get which ends are inset.
float getThickness(void) const
Get the stroke thickness.
Divider & setLength(float length)
Set the total length, insets included.
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
State. Every class here is plain data attached to an entity.