fluid v0.6.1 (2024-01-27T15:08:13Z)
Dub
Repo
Style.cropBox
fluid
style
Style
Crop the given box by reducing its size on all sides.
Vector2
cropBox
(Vector2 size, uint[4] sides)
Rectangle
cropBox
(Rectangle rect, uint[4] sides)
class
Style
static
Rectangle
cropBox
(
Rectangle
rect
,
uint
[4]
sides
)
Meta
Source
See Implementation
fluid
style
Style
aliases
loadFont
constructors
this
enums
Side
functions
contentBox
drawBackground
drawText
fullMargin
measureText
setDPI
totalMargin
update
static functions
cropBox
init
loadTypeface
static variables
_currentTheme
_styleStack
structs
__anonymous
Crop the given box by reducing its size on all sides.