GwyGradSphere

GwyGradSphere — Rotary sphere with a color gradient

Synopsis




struct      GwyGradSphere;
struct      GwyGradSphereClass;
GtkWidget*  gwy_grad_sphere_new             (GwySphereCoords *sphere_coords);
GwySphereCoords* gwy_grad_sphere_get_sphere_coords
                                            (GwyGradSphere *grad_sphere);
void        gwy_grad_sphere_set_sphere_coords
                                            (GwyGradSphere *grad_sphere,
                                             GwySphereCoords *sphere_coords);
GwyPalette* gwy_grad_sphere_get_palette     (GwyGradSphere *grad_sphere);
void        gwy_grad_sphere_set_palette     (GwyGradSphere *grad_sphere,
                                             GwyPalette *palette);
GtkUpdateType gwy_grad_sphere_get_update_policy
                                            (GwyGradSphere *grad_sphere);
void        gwy_grad_sphere_set_update_policy
                                            (GwyGradSphere *grad_sphere,
                                             GtkUpdateType update_policy);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GwyGradSphere

Implemented Interfaces

GwyGradSphere implements AtkImplementorIface.

Properties


  "sphere-coords"        GwySphereCoords      : Read / Write / Construct
  "update-policy"        GtkUpdateType        : Read / Write

Description

Details

struct GwyGradSphere

struct GwyGradSphere;


struct GwyGradSphereClass

struct GwyGradSphereClass {

    GtkWidgetClass parent_class;

    gpointer reserved1;
};


gwy_grad_sphere_new ()

GtkWidget*  gwy_grad_sphere_new             (GwySphereCoords *sphere_coords);

Creates a new GwyGradSphere.

sphere_coords can be NULL, new spherical coordinates are allocated then.

The widget takes up all the space allocated for it.

sphere_coords : The spherical coordinates this gradient sphere should use.
Returns : The new gradient sphere as a GtkWidget.

gwy_grad_sphere_get_sphere_coords ()

GwySphereCoords* gwy_grad_sphere_get_sphere_coords
                                            (GwyGradSphere *grad_sphere);

Returns the spherical coordinates a gradient spehere grad_sphere uses.

grad_sphere : a GwyGradSphere.
Returns : The coordinates.

gwy_grad_sphere_set_sphere_coords ()

void        gwy_grad_sphere_set_sphere_coords
                                            (GwyGradSphere *grad_sphere,
                                             GwySphereCoords *sphere_coords);

Sets spherical coordinates for a gradient sphere.

grad_sphere : a GwyGradSphere.
sphere_coords : the spherical coordinates this gradient sphere should use.

gwy_grad_sphere_get_palette ()

GwyPalette* gwy_grad_sphere_get_palette     (GwyGradSphere *grad_sphere);

Returns the palette a gradient sphere uses.

grad_sphere : a GwyGradSphere.
Returns : The palette.

gwy_grad_sphere_set_palette ()

void        gwy_grad_sphere_set_palette     (GwyGradSphere *grad_sphere,
                                             GwyPalette *palette);

Sets the palette a gradient sphere uses.

grad_sphere : a GwyGradSphere.
palette : A palette grad_sphere should use.

gwy_grad_sphere_get_update_policy ()

GtkUpdateType gwy_grad_sphere_get_update_policy
                                            (GwyGradSphere *grad_sphere);

Returns the update policy of a gradient spehere grad_sphere.

grad_sphere : a GwyGradSphere.
Returns : The update policy.

gwy_grad_sphere_set_update_policy ()

void        gwy_grad_sphere_set_update_policy
                                            (GwyGradSphere *grad_sphere,
                                             GtkUpdateType update_policy);

Sets update policy for a gradient sphere.

grad_sphere : a GwyGradSphere.
update_policy : the update policy a gradient sphere grad_sphere should use.

Properties

"sphere-coords" (GwySphereCoords : Read / Write / Construct)

The GwySphereCoords the shpere.

"update-policy" (GtkUpdateType : Read / Write)

When value changed causes signal emission.