| Gtk 3d Canvas (libgtk3dcanvas) Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
#include <gtk-3dcanvas.h> struct Gtk3dcanvasStick; Gtk3dcanvasItem* gtk_3dcanvas_stick_new (Gtk3dcanvasGroup *parent, char *color, const char *first_arg_name, ...); |
"begin-x" gfloat : Read / Write "begin-y" gfloat : Read / Write "begin-z" gfloat : Read / Write "end-x" gfloat : Read / Write "end-y" gfloat : Read / Write "end-z" gfloat : Read / Write "phi" gfloat : Read / Write "draw-type" Gtk3dcanvasShapeType : Read / Write "radius" gfloat : Read / Write "smoothness" gint : Read / Write |
The Gtk3dcanvasStick is a plain regular stick item. See properties below to see how to interact with it.
struct Gtk3dcanvasStick; |
The fields of the Gtk3dcanvasStick are private, and should be accessed only through the properties and functions below.
Gtk3dcanvasItem* gtk_3dcanvas_stick_new (Gtk3dcanvasGroup *parent, char *color, const char *first_arg_name, ...); |
Make a stick item.
| parent : | group in which to add the stick |
| color : | the color of the stick. |
| first_arg_name : | A list of object argument name/value pairs, NULL-terminated, used to configure the stick. For example: "type",STICK_TYPE_CYLINDER, "begin_x",1, "begin_y",1, "begin_z",1, NULL |
| ... : | Rest of this list. |
| Returns : | the newly created stick. |
X coordinate of the begin point
Y coordinate of the begin point
Z coordinate of the begin point
X coordinate of the end point
Y coordinate of the end point
Z coordinate of the end point
The rotation applied to the base points over the central axis (in radian)
The type of base of the stick. (Either cylindric or cubic)
Radius of the stick
Smoothness of the stick. The bigger it is, the more points the stick will contain. About 10 is really ok.