2009-11-21 03:19:56 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#ifndef __ST_SHADOW__
|
|
|
|
#define __ST_SHADOW__
|
|
|
|
|
|
|
|
#include <clutter/clutter.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define ST_TYPE_SHADOW (st_shadow_get_type ())
|
|
|
|
|
|
|
|
typedef struct _StShadow StShadow;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* StShadow:
|
|
|
|
* @color: shadow's color
|
|
|
|
* @xoffset: horizontal offset - positive values mean placement to the right,
|
|
|
|
* negative values placement to the left of the element.
|
|
|
|
* @yoffset: vertical offset - positive values mean placement below, negative
|
|
|
|
* values placement above the element.
|
|
|
|
* @blur: shadow's blur radius - a value of 0.0 will result in a hard shadow.
|
2010-03-19 10:34:32 +00:00
|
|
|
* @spread: shadow's spread radius - grow the shadow without enlarging the
|
|
|
|
* blur.
|
2009-11-21 03:19:56 +00:00
|
|
|
*
|
|
|
|
* Attributes of the -st-shadow property.
|
|
|
|
*/
|
|
|
|
struct _StShadow {
|
|
|
|
ClutterColor color;
|
|
|
|
gdouble xoffset;
|
|
|
|
gdouble yoffset;
|
|
|
|
gdouble blur;
|
2010-03-19 10:34:32 +00:00
|
|
|
gdouble spread;
|
2009-11-21 03:19:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
GType st_shadow_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
StShadow *st_shadow_new (ClutterColor *color,
|
|
|
|
gdouble xoffset,
|
|
|
|
gdouble yoffset,
|
2010-03-19 10:34:32 +00:00
|
|
|
gdouble blur,
|
|
|
|
gdouble spread);
|
2009-11-21 03:19:56 +00:00
|
|
|
StShadow *st_shadow_copy (const StShadow *shadow);
|
|
|
|
void st_shadow_free (StShadow *shadow);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __ST_SHADOW__ */
|