cc-radial-gradient

cc-radial-gradient

Synopsis


#include <ccc.h>


typedef             CcRadialGradient;
typedef             CcRadialGradientClass;
CcBrush*            cc_radial_gradient_new              (gdouble x,
                                                         gdouble y,
                                                         gdouble radius);
GType               cc_radial_gradient_get_type         (void);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----CcBrush
               +----CcGradient
                     +----CcRadialGradient

Properties


  "radius"                   gdouble               : Read / Write
  "x"                        gdouble               : Read / Write
  "y"                        gdouble               : Read / Write

Description

Details

CcRadialGradient

typedef CcGradient      CcRadialGradient;


CcRadialGradientClass

typedef CcGradientClass CcRadialGradientClass;


cc_radial_gradient_new ()

CcBrush*            cc_radial_gradient_new              (gdouble x,
                                                         gdouble y,
                                                         gdouble radius);

Create a new radial gradient.

x, y and radius are given in a relation to the item's size and position: eg. 0.5 means either "in the middle" (for x and y) or "half the size" (for radius).

x : the x position of the gradient's center
y : the y position of the gradient's center
radius : the radius of the gradient's circle
Returns : a new CcRadialGradient.

cc_radial_gradient_get_type ()

GType               cc_radial_gradient_get_type         (void);

Returns :

Property Details

The "radius" property

  "radius"                   gdouble               : Read / Write

Gradient Radius.

Default value: 0.5


The "x" property

  "x"                        gdouble               : Read / Write

Horizontal position of the gradient center.

Default value: 0.5


The "y" property

  "y"                        gdouble               : Read / Write

Vertical position of the gradient center.

Default value: 0.5