GwyGradSphere

GwyGradSphere — Rotary sphere with a color gradient

Synopsis




            GwyGradSphere;
            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
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GwyGradSphere

Implemented Interfaces

GwyGradSphere implements AtkImplementorIface.

Properties


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

Description

Details

GwyGradSphere

typedef struct _GwyGradSphere GwyGradSphere;

Warning

GwyGradSphere is deprecated and should not be used in newly-written code.


GwyGradSphereClass

typedef struct {
    GtkWidgetClass parent_class;

    gpointer reserved1;
} GwyGradSphereClass;

Warning

GwyGradSphereClass is deprecated and should not be used in newly-written code.


gwy_grad_sphere_new ()

GtkWidget*  gwy_grad_sphere_new             (GwySphereCoords *sphere_coords);

Warning

gwy_grad_sphere_new is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_get_sphere_coords is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_set_sphere_coords is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_get_palette is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_set_palette is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_get_update_policy is deprecated and should not be used in newly-written code.

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);

Warning

gwy_grad_sphere_set_update_policy is deprecated and should not be used in newly-written code.

Sets update policy for a gradient sphere.

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

Property Details

The "sphere-coords" property

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

The GwySphereCoords of the sphere.


The "update-policy" property

  "update-policy"        GtkUpdateType         : Read / Write

When value change causes signal emission.

Default value: GTK_UPDATE_CONTINUOUS