|
Data Structures |
struct | Etk_Shadow |
| [Widget] A container that can contain one child, and that can cast a shadow or have a border More...
|
Defines |
#define | ETK_SHADOW_TYPE (etk_shadow_type_get()) |
#define | ETK_SHADOW(obj) (ETK_OBJECT_CAST((obj), ETK_SHADOW_TYPE, Etk_Shadow)) |
#define | ETK_IS_SHADOW(obj) (ETK_OBJECT_CHECK_TYPE((obj), ETK_SHADOW_TYPE)) |
Enumerations |
enum | Etk_Shadow_Type |
| The different types of shadows. More...
|
enum | Etk_Shadow_Edges |
| The different edges where a shadow can be. More...
|
Functions |
Etk_Widget * | etk_shadow_new (void) |
| Creates a new shadow container.
|
void | etk_shadow_shadow_set (Etk_Shadow *shadow, Etk_Shadow_Type type, Etk_Shadow_Edges edges, int radius, int offset_x, int offset_y, int opacity) |
| Sets the different settings of the shadow cast by the shadow container.
|
void | etk_shadow_shadow_get (Etk_Shadow *shadow, Etk_Shadow_Type *type, Etk_Shadow_Edges *edges, int *radius, int *offset_x, int *offset_y, int *opacity) |
| Gets the different settings of the shadow cast by the shadow container.
|
void | etk_shadow_shadow_color_set (Etk_Shadow *shadow, int r, int g, int b) |
| Sets the color of the shadow.
|
void | etk_shadow_shadow_color_get (Etk_Shadow *shadow, int *r, int *g, int *b) |
| Gets the color of the shadow.
|
void | etk_shadow_border_set (Etk_Shadow *shadow, int border_width) |
| Sets the width of the border of the shadow container.
|
int | etk_shadow_border_get (Etk_Shadow *shadow) |
| Gets the width of the border of the shadow container.
|
void | etk_shadow_border_color_set (Etk_Shadow *shadow, int r, int g, int b, int a) |
| Sets the color of the border of the shadow container. The color has to be pre-multiplied (i.e. the r, g, b components have to be multiplied by a and divided by 255).
|
void | etk_shadow_border_color_get (Etk_Shadow *shadow, int *r, int *g, int *b, int *a) |
| Gets the color of the border of the shadow container.
|