| GPE Manual: libgpewidget Reference |
|---|
GpeClockFaceGpeClockFace — Clock face widget |
#define GPE_TYPE_CLOCK_FACE #define GPE_CLOCK_FACE (obj) #define GTK_CLOCK_GET_CLASS (obj) GpeClockFace; GpeClockFaceClass; GtkType gpe_clock_face_get_type (void); GtkWidget* gpe_clock_face_new (GtkAdjustment*, GtkAdjustment*, GtkAdjustment*); void gpe_clock_face_set_do_grabs (GpeClockFace *clock, gboolean yes); void gpe_clock_face_set_radius (GpeClockFace *clock, guint radius); void gpe_clock_face_set_use_background_image (GpeClockFace *clock, gboolean yes); void gpe_clock_face_set_label_hours (GpeClockFace *clock, gboolean yes); void gpe_clock_face_set_hand_width (GpeClockFace *clock, double width); GdkBitmap* gpe_clock_face_get_shape (GpeClockFace *clock);
#define GPE_CLOCK_FACE(obj)
Macro to cast a an object (usually GtkWidget*) to GpeClockFace type.
| obj : | Object to cast. |
#define GTK_CLOCK_GET_CLASS(obj)
Macro to return class from object instance.
| obj : |
typedef struct _GpeClockFace GpeClockFace;
Object container for the GpeClockFace widget.
typedef struct _GpeClockFaceClass GpeClockFaceClass;
Object container for the GpeClockFaceClass widget.
GtkType gpe_clock_face_get_type (void);
Returns type for a GpeClockFace widget. Internally used to create a new instance of a GpeClockFace.
| Returns : | Object type |
GtkWidget* gpe_clock_face_new (GtkAdjustment*,
GtkAdjustment*,
GtkAdjustment*);Create a new instance of a GpeClockFace widget.
| Param1 : | Adjustmennt for hour setting. |
| Param2 : | Adjustment for minute setting. |
| Param3 : | Adjustment for second setting. |
| Returns : | New GpeClockFace widget. |
void gpe_clock_face_set_do_grabs (GpeClockFace *clock, gboolean yes);
Set wether to allow user interactive moving of the hands or not.
| clock : | Widget |
| yes : | TRUE to allow, FALSE to deny |
void gpe_clock_face_set_radius (GpeClockFace *clock, guint radius);
Sets the radius of the clockface (in pixels).
| clock : | Widget |
| radius : | New radius. |
void gpe_clock_face_set_use_background_image
(GpeClockFace *clock,
gboolean yes);Set if the widget should use a background image.
| clock : | Widget |
| yes : | TRUE to enable, FALSE to disable |
void gpe_clock_face_set_label_hours (GpeClockFace *clock, gboolean yes);
Turn hour labels on the clockface on/off.
| clock : | Widget |
| yes : | TRUE to enable, FALSE to disable |
void gpe_clock_face_set_hand_width (GpeClockFace *clock, double width);
Change the width of clock hands.
| clock : | Widget |
| width : | New with in pixels. |
GdkBitmap* gpe_clock_face_get_shape (GpeClockFace *clock);
Returns the shape mask of the given clockface widget. This is used to set up a shaped window only containing a GtkClockFace widget.
| clock : | Widget |
| Returns : | The widget's shape mask |
| << Popup menus | GPE simple help >> |