Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gwy_shader_new () |
gdouble | gwy_shader_get_theta () |
gdouble | gwy_shader_get_phi () |
void | gwy_shader_set_theta () |
void | gwy_shader_set_phi () |
void | gwy_shader_set_angle () |
const gchar * | gwy_shader_get_gradient () |
void | gwy_shader_set_gradient () |
GwyShader is a spherical angle selector that allows user to change angle by simply moving the north pole of a sphere around with mouse. It can display the sphere colored with a GwyGradient.
GtkWidget *
gwy_shader_new (void
);
Creates a new spherical shader.
The widget takes up all the space allocated for it.
gdouble
gwy_shader_get_theta (GwyShader *shader
);
Returns the theta coordinate of a shaded spherical angle selector.
gdouble
gwy_shader_get_phi (GwyShader *shader
);
Returns the phi coordinate of a shaded spherical angle selector.
void gwy_shader_set_theta (GwyShader *shader
,gdouble theta
);
Sets the theta coordinate of a shaded spherical angle selector.
shader |
A shaded spherical angle selector. |
|
theta |
The theta coordinate to set. See |
void gwy_shader_set_phi (GwyShader *shader
,gdouble phi
);
Sets the phi coordinate of a shaded spherical angle selector.
shader |
A shaded spherical angle selector. |
|
phi |
The phi coordinate to set. See |
void gwy_shader_set_angle (GwyShader *shader
,gdouble theta
,gdouble phi
);
Sets both spherical angles of a shaded spherical angle selector.
shader |
A shaded spherical angle selector. |
|
theta |
The theta coordinate to set. See |
|
phi |
The phi coordinate to set. See |
const gchar *
gwy_shader_get_gradient (GwyShader *shader
);
Returns the name of color gradient a shaded spherical angle selector uses.
The gradient name. It must not be modified or freed. It may differ the name that was used on
initialization or set with gwy_shader_set_gradient()
, if the gradient did not exist or was renamed
meanwhile.
void gwy_shader_set_gradient (GwyShader *shader
,const gchar *gradient
);
Sets the gradient a shaded spherical angle selector uses.
“angle-changed”
signalvoid user_function (GwyShader *gwyshader, gpointer user_data)
The ::angle-changed signal is emitted when the spherical angle changes.
gwyshader |
The GwyShader which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First