Background
Category | refcounted |
Type | hime_background_t |
Inherits | Object |
Background of View
.
Constructors
hime_background_t hime_background_create_solid(color)
Create a background that fills the canvas in the specified color.
Parameters
hime_color_t
color
Return
hime_background_t
hime_background_t hime_background_create_themed_solid(color_id)
Same with CreateSolid except it uses the color specified by the views's ColorProvider and the given color identifier.
Parameters
hime_color_id_t
color_id
Return
hime_background_t
hime_background_t hime_background_create_rounded_rect(color, border, radius)
Create a background that fills the canvas with rounded corners.
If using a rounded rect border as well, pass its radius as radius
and
its thickness as border
. This will inset the background properly so it
doesn't bleed through the border.
Parameters
hime_color_t
colorint
borderfloat
radius
Return
hime_background_t
hime_background_t hime_background_create_themed_rounded_rect(color_id, border, radius)
Same with CreateThemedSolid except it uses the color specified by the views's ColorProvider and the given color identifier.
Parameters
hime_color_id_t
color_idint
borderfloat
radius
Return
hime_background_t