gnome-shell/src/st/st-shadow.h
Florian Müllner 2dfe113a42 Implement -st-shadow for StWidget
Add support for a new -st-shadow property, which is based loosely
on the CSS3 box-shadow property:
http://www.css3.info/preview/box-shadow/

It defers from the specification as follows:

 * no multiple shadows
 * the optional color argument may be placed anywhere
 * the shape is not determined by the widget's bounding box,
   but by the background-image property

https://bugzilla.gnome.org/show_bug.cgi?id=603691
2010-01-05 21:48:09 +01:00

43 lines
1.2 KiB
C

/* -*- 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.
*
* Attributes of the -st-shadow property.
*/
struct _StShadow {
ClutterColor color;
gdouble xoffset;
gdouble yoffset;
gdouble blur;
};
GType st_shadow_get_type (void) G_GNUC_CONST;
StShadow *st_shadow_new (ClutterColor *color,
gdouble xoffset,
gdouble yoffset,
gdouble blur);
StShadow *st_shadow_copy (const StShadow *shadow);
void st_shadow_free (StShadow *shadow);
G_END_DECLS
#endif /* __ST_SHADOW__ */