![]() |
![]() |
![]() |
clutk Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
void ctk_init (gint *argc
,gchar ***argv
); void ctk_init_after (gint *argc
,gchar ***argv
); void ctk_cleanup (void
); gdouble ctk_pixel_to_em (gint pixel_value
); gdouble ctk_em_to_pixel (gdouble em_value
);
void ctk_init (gint *argc
,gchar ***argv
);
Will initialise CluTK, Clutter-GTK and Clutter. Will also do some run-time checks of the host gpu's capabilities for effects.
|
the number of arguments in argv . inout. |
|
a pointer to an array of arguments. array length=argc. inout length=argc. allow-none length=argc. |
void ctk_init_after (gint *argc
,gchar ***argv
);
Will initialise CluTK only. Use this if Clutter and Clutter-Gtk have already been intialised.
|
the number of arguments in argv . inout. |
|
a pointer to an array of arguments. array length=argc. inout length=argc. allow-none length=argc. |
void ctk_cleanup (void
);
Cleanup object created in ctk_init. Shou;d be called when the program terminates.
gdouble ctk_pixel_to_em (gint pixel_value
);
|
resolution-dependent measurement to convert to EMs |
Returns : |
the EM-value corresponding to pixel_value , considering screen-DPI
and font-settings, as gdouble.
|