Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::Checkbox::ChromiumRefreshParts Struct Reference

Everything the chromium_refresh skin paints, in local coordinates, in paint order: lighten (disabled only), background, border (absent for a checked or indeterminate checkbox), accent_fill (checked or indeterminate checkbox), then the mark: the check stroke, the dash or the radio dot. More...

#include <widgets.hpp>

Public Attributes

Rect box
 the largest centred square in the bounds
float radius = 0
 2px for a checkbox, half the side for a radio
ColorScheme scheme = ColorScheme::light
 palette used, after the accent flip
std::optional< canvas::Color > lighten
 disabled lighten layer on background_rect
Rect background_rect
 box inset 0.2px
canvas::Color background {}
std::optional< canvas::Color > border
 stroked 1px on box inset 0.5px
Rect border_rect
std::optional< canvas::Color > accent_fill
 filled on box
canvas::Color mark {}
 check / dash colour, or the radio dot colour
bool has_check = false
 polyline check[0..2], check_width wide
std::array< Point, 3 > check {}
float check_width = 0
std::optional< Rect > dash
 indeterminate dash, rounded by radius
std::optional< Rect > dot
 checked radio dot (box inset 20%)

Detailed Description

Everything the chromium_refresh skin paints, in local coordinates, in paint order: lighten (disabled only), background, border (absent for a checked or indeterminate checkbox), accent_fill (checked or indeterminate checkbox), then the mark: the check stroke, the dash or the radio dot.

Member Data Documentation

◆ accent_fill

std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::accent_fill

filled on box

◆ background

canvas::Color pulp::view::Checkbox::ChromiumRefreshParts::background {}

◆ background_rect

Rect pulp::view::Checkbox::ChromiumRefreshParts::background_rect

box inset 0.2px

◆ border

std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::border

stroked 1px on box inset 0.5px

◆ border_rect

Rect pulp::view::Checkbox::ChromiumRefreshParts::border_rect

◆ box

Rect pulp::view::Checkbox::ChromiumRefreshParts::box

the largest centred square in the bounds

◆ check

std::array<Point, 3> pulp::view::Checkbox::ChromiumRefreshParts::check {}

◆ check_width

float pulp::view::Checkbox::ChromiumRefreshParts::check_width = 0

◆ dash

std::optional<Rect> pulp::view::Checkbox::ChromiumRefreshParts::dash

indeterminate dash, rounded by radius

◆ dot

std::optional<Rect> pulp::view::Checkbox::ChromiumRefreshParts::dot

checked radio dot (box inset 20%)

◆ has_check

bool pulp::view::Checkbox::ChromiumRefreshParts::has_check = false

polyline check[0..2], check_width wide

◆ lighten

std::optional<canvas::Color> pulp::view::Checkbox::ChromiumRefreshParts::lighten

disabled lighten layer on background_rect

◆ mark

canvas::Color pulp::view::Checkbox::ChromiumRefreshParts::mark {}

check / dash colour, or the radio dot colour

◆ radius

float pulp::view::Checkbox::ChromiumRefreshParts::radius = 0

2px for a checkbox, half the side for a radio

◆ scheme

ColorScheme pulp::view::Checkbox::ChromiumRefreshParts::scheme = ColorScheme::light

palette used, after the accent flip


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/widgets.hpp