|
Cairo-Dock 2.4.0~1
|
Defines | |
| #define | cairo_dock_erase_cairo_context(pCairoContext) |
Functions | |
| cairo_t * | cairo_dock_create_drawing_context_generic (CairoContainer *pContainer) |
| CONTEXT /// ////////////. | |
| cairo_t * | cairo_dock_create_drawing_context_on_container (CairoContainer *pContainer) |
| cairo_t * | cairo_dock_create_drawing_context_on_area (CairoContainer *pContainer, GdkRectangle *pArea, double *fBgColor) |
| void | cairo_dock_draw_rounded_rectangle (cairo_t *pCairoContext, double fRadius, double fLineWidth, double fFrameWidth, double fFrameHeight) |
| void | cairo_dock_draw_icon_cairo (Icon *icon, CairoDock *pDock, cairo_t *pCairoContext) |
| void | cairo_dock_render_one_icon (Icon *icon, CairoDock *pDock, cairo_t *pCairoContext, double fDockMagnitude, gboolean bUseText) |
| void | cairo_dock_draw_string (cairo_t *pCairoContext, CairoDock *pDock, double fStringLineWidth, gboolean bIsLoop, gboolean bForceConstantSeparator) |
This class provides some useful functions to draw with libcairo.
| #define cairo_dock_erase_cairo_context | ( | pCairoContext | ) |
Erase a drawing context, making it fully transparent. You don't need to erase a newly created context.
| pCairoContext | a drawing context. |
| cairo_t* cairo_dock_create_drawing_context_generic | ( | CairoContainer * | pContainer | ) |
CONTEXT /// ////////////.
Create a generic drawing context, to be used as a source context (for instance, for creating a surface).
| pContainer | a container. |
| cairo_t* cairo_dock_create_drawing_context_on_container | ( | CairoContainer * | pContainer | ) |
Create a drawing context to draw on a container. It handles fake transparency.
| pContainer | the container on which you want to draw. |
| cairo_t* cairo_dock_create_drawing_context_on_area | ( | CairoContainer * | pContainer, |
| GdkRectangle * | pArea, | ||
| double * | fBgColor | ||
| ) |
Create a drawing context to draw on a part of a container. It handles fake transparency.
| pContainer | the container on which you want to draw |
| pArea | part of the container to draw. |
| fBgColor | background color (rgba) to fill the area with, or NULL to let it transparent. |
| void cairo_dock_draw_rounded_rectangle | ( | cairo_t * | pCairoContext, |
| double | fRadius, | ||
| double | fLineWidth, | ||
| double | fFrameWidth, | ||
| double | fFrameHeight | ||
| ) |
Compute the path of a rectangle with rounded corners. It doesn't stroke it, use cairo_stroke or cairo_fill to draw the line or the inside.
| pCairoContext | a drawing context; the current matrix is not altered, but the current path is. |
| fRadius | radius if the corners. |
| fLineWidth | width of the line. |
| fFrameWidth | width of the rectangle, without the corners. |
| fFrameHeight | height of the rectangle, including the corners. |
Draw an icon and its reflect on a dock. Only draw the icon's image and reflect, and nothing else.
| icon | the icon to draw. |
| pDock | the dock containing the icon. |
| pCairoContext | a context on the dock, not altered by the function. |
| void cairo_dock_render_one_icon | ( | Icon * | icon, |
| CairoDock * | pDock, | ||
| cairo_t * | pCairoContext, | ||
| double | fDockMagnitude, | ||
| gboolean | bUseText | ||
| ) |
Draw an icon, according to its current parameters : position, transparency, reflect, rotation, stretching. Also draws its indicators, label, and quick-info. It generates a CAIRO_DOCK_RENDER_ICON notification.
| icon | the icon to draw. |
| pDock | the dock containing the icon. |
| pCairoContext | a context on the dock, it is altered by the function. |
| fDockMagnitude | current magnitude of the dock. |
| bUseText | TRUE to draw the labels. |
| void cairo_dock_draw_string | ( | cairo_t * | pCairoContext, |
| CairoDock * | pDock, | ||
| double | fStringLineWidth, | ||
| gboolean | bIsLoop, | ||
| gboolean | bForceConstantSeparator | ||
| ) |
Draw a string linking the center of all the icons of a dock.
| pCairoContext | a context on the dock, not altered by the function. |
| pDock | the dock. |
| fStringLineWidth | width of the line. |
| bIsLoop | TRUE to loop (link the last icon to the first one). |
| bForceConstantSeparator | TRUE to consider separators having a constant size. |