| CCSS/Cairo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum ccss_cairo_gap_side_t; void ccss_cairo_style_draw_rectangle (ccss_style_t const *self,cairo_t *cr,double x,double y,double width,double height); void ccss_cairo_style_draw_rectangle_with_gap (ccss_style_t const *self,cairo_t *cr,double x,double y,double width,double height,ccss_cairo_gap_side_t gap_side,double gap_start,double gap_width); bool ccss_cairo_style_get_double (ccss_style_t const *self,char const *property_name,double *value); bool ccss_cairo_style_get_string (ccss_style_t const *self,char const *property_name,char **value); bool ccss_cairo_style_get_property (ccss_style_t const *self,char const *property_name,ccss_property_t const **property);
typedef enum {
CCSS_CAIRO_GAP_SIDE_LEFT,
CCSS_CAIRO_GAP_SIDE_RIGHT,
CCSS_CAIRO_GAP_SIDE_TOP,
CCSS_CAIRO_GAP_SIDE_BOTTOM
} ccss_cairo_gap_side_t;
This enum mirrors GtkPositionType.
void ccss_cairo_style_draw_rectangle (ccss_style_t const *self,cairo_t *cr,double x,double y,double width,double height);
Draw a rectangle using this style instance.
|
a ccss_style_t. |
|
the target to draw onto. |
|
the starting x coordinate. |
|
the starting y coordinate. |
|
width of the outline to draw. |
|
height of the outline to draw. |
void ccss_cairo_style_draw_rectangle_with_gap (ccss_style_t const *self,cairo_t *cr,double x,double y,double width,double height,ccss_cairo_gap_side_t gap_side,double gap_start,double gap_width);
Draw a rectangle with gap using this style instance.
|
a ccss_style_t. |
|
the target to draw onto. |
|
the starting x coordinate. |
|
the starting y coordinate. |
|
width of the outline to draw. |
|
height of the outline to draw. |
|
side in which to leave the gap. |
|
starting position of the gap. |
|
width of the gap. |
bool ccss_cairo_style_get_double (ccss_style_t const *self,char const *property_name,double *value);
Query a numeric property with fallbacks, e.g. `border-color' if `border-left-color' is not given.
|
a ccss_style_t. |
|
name of the property. |
|
location to store the converted property. |
Returns : |
TRUE if the property was found and could be converted. |
bool ccss_cairo_style_get_string (ccss_style_t const *self,char const *property_name,char **value);
Query a string property with fallbacks, e.g. `border-color' if `border-left-color' is not given.
|
a ccss_style_t. |
|
name of the property. |
|
location to store the converted property. |
Returns : |
TRUE if the property was found and could be converted. |
bool ccss_cairo_style_get_property (ccss_style_t const *self,char const *property_name,ccss_property_t const **property);
Query a custom property with fallbacks, e.g. `border-color' if `border-left-color' is not given.
|
a ccss_style_t. |
|
name of the property. |
Returns : |
TRUE if the property was found. |