| GTK Instrumentation Widgets Reference Manual | ||||
|---|---|---|---|---|
#include <giwclock.h>
GiwClock;
GtkWidget* giw_clock_new (void);
void giw_clock_get_time (GiwClock *clock,
guint *hours,
guint *minutes,
guint *seconds);
void giw_clock_set_time (GiwClock *clock,
guint hours,
guint minutes,
guint seconds);
void giw_clock_enable_alarm (GiwClock *clock,
gboolean option);
void giw_clock_set_alarm (GiwClock *clock,
guint hours,
guint minutes,
guint seconds);
void giw_clock_stop (GiwClock *clock);
void giw_clock_start (GiwClock *clock);
GiwClock is a clock, with 60 ticks and three needles. It can be created with a giw_clock_new(), an cofigured with the functions below.
GtkWidget* giw_clock_new (void);
Creates a new clock, with initial time of 00:00:00, and it starts counting time automatically.
| Returns : | a new clock, or NULL. |
Since 0.2.1
void giw_clock_get_time (GiwClock *clock, guint *hours, guint *minutes, guint *seconds);
clock : |
|
hours : |
|
minutes : |
|
seconds : |
void giw_clock_set_time (GiwClock *clock, guint hours, guint minutes, guint seconds);
clock : |
|
hours : |
|
minutes : |
|
seconds : |
void giw_clock_enable_alarm (GiwClock *clock, gboolean option);
clock : |
|
option : |
void giw_clock_set_alarm (GiwClock *clock, guint hours, guint minutes, guint seconds);
clock : |
|
hours : |
|
minutes : |
|
seconds : |