![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyGradSphere — Rotary sphere with a color gradient
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);
GObject +----GtkObject +----GtkWidget +----GwyGradSphere
GwyGradSphere implements AtkImplementorIface.
"sphere-coords" GwySphereCoords : Read / Write / Construct "update-policy" GtkUpdateType : Read / Write
struct GwyGradSphereClass { GtkWidgetClass parent_class; gpointer reserved1; };
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. |
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. |
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. |
GwyPalette* gwy_grad_sphere_get_palette (GwyGradSphere *grad_sphere);
grad_sphere: | |
Returns : |
void gwy_grad_sphere_set_palette (GwyGradSphere *grad_sphere, GwyPalette *palette);
grad_sphere: | |
palette: |
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. |
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. |
"sphere-coords" (GwySphereCoords : Read / Write / Construct) | The GwySphereCoords the shpere. |
"update-policy" (GtkUpdateType : Read / Write) | When value changed causes signal emission. |
<< GwyVectorShade | GwySphereCoords >> |