psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::paint::Box Struct Reference

#include <Box.hpp>

Public Member Functions

SkRRect inset (float amount) const
SkRRect inner () const
SkRRect strokeLine () const

Static Public Member Functions

static Box of (const Div &div)

Public Attributes

SkRRect outer {}
float border {0}

Detailed Description

A div's border box as a Skia rounded rect, in its own coordinates, from its size and computed radius and border

Member Function Documentation

◆ inner()

SkRRect psychic_ui::paint::Box::inner ( ) const
inlinenodiscard

Inside the border

◆ inset()

SkRRect psychic_ui::paint::Box::inset ( float amount) const
nodiscard

The border box inset on every side (radii shrink with it)

◆ strokeLine()

SkRRect psychic_ui::paint::Box::strokeLine ( ) const
inlinenodiscard

Where a stroke of the border's width goes to fill the border: its center line


The documentation for this struct was generated from the following files: