ABorderStyle#
Describes border style, like CSS border-style.
Header: | #include <AUI/Render/ABorderStyle.h> |
CMake: | aui_link(my_target PUBLIC aui::views) |
Detailed Description#
ABorderStyle is std::variant-based type that stores one of defined subclass types:
Examples#
examples/ui/views/src/DemoGraphView.cpp
Views Example - All-in-one views building example.
void DemoGraphView::render(ARenderContext ctx) {
AView::render(ctx);
ctx.render.lines(ASolidBrush{0xff0000_rgb }, mPoints, ABorderStyle::Dashed{}, 4_dp);
}
Public Types#
Solid#
struct ABorderStyle::Solid
Empty structure.
Dashed#
struct ABorderStyle::Dashed
Displays a series of short square-ended dashes or line segments.
Examples#
Field | Description |
---|---|
AOptional<float> dashWidth
|
If set, renderer would be forced to keep specified space between dashes. The value of this property is expressed in border width units. That is, 1.0 equals square. If both dashWidth and spaceBetweenDashes are specified, renderer would roughly cut the line dash sequence. Otherwise, it would try to adjust unset values in order to achieve smooth results. |
AOptional<float> spaceBetweenDashes
|
If set, renderer would be forced to keep specified space between dashes. The value of this property is expressed in border width units. That is, 1.0 equals square. If both dashWidth and spaceBetweenDashes are specified, renderer would roughly cut the line dash sequence. Otherwise, it would try to adjust unset values in order to achieve smooth results. |