#include <pulp/view/view.hpp>
#include <optional>
#include <string_view>
Go to the source code of this file.
|
| namespace | pulp |
| namespace | pulp::view |
| | Hover-cursor tracking for platform window hosts.
|
|
| std::optional< View::BorderStyle > | pulp::view::border_style_from_css (std::string_view keyword) |
| | The View::BorderStyle a CSS border-style / outline-style keyword names, or nullopt for anything that is not one of the ten CSS keywords.
|
| BorderShades | pulp::view::border_shades (Color side_color) |
| BorderBands | pulp::view::border_bands (View::BorderStyle style, BorderEdge side, float width) |
| Color | pulp::view::border_band_color (View::BorderStyle style, BorderEdge side, bool outer_band, Color side_color, float width) |
| | The colour style paints the outer or inner band of side in, for a side whose specified colour is side_color and width width.
|
| bool | pulp::view::is_banded_border_style (View::BorderStyle style) |
| | Whether style is painted in bands of per-side colour (double and the four 3D styles) rather than as one stroke.
|
| CornerRadii | pulp::view::fit_corner_radii (float width, float height, CornerRadii radii) |
| | radii fitted to a width x height box the way CSS fits border radii (CSS Backgrounds 3, "Overlapping Curves"): a negative radius is 0, and when the two radii along any side sum to more than that side, every radius is scaled by f = min over the four sides of (side length / sum of its two radii), so adjacent curves meet instead of crossing.
|
| void | pulp::view::paint_banded_border (canvas::Canvas &canvas, const BandedBorder &border) |
| | Paint border.
|