Top | ![]() |
![]() |
![]() |
![]() |
void | clutter_backend_set_resolution () |
void | clutter_backend_set_double_click_time () |
guint | clutter_backend_get_double_click_time () |
void | clutter_backend_set_double_click_distance () |
guint | clutter_backend_get_double_click_distance () |
void | clutter_backend_set_font_name () |
const gchar * | clutter_backend_get_font_name () |
Clutter can be compiled against different backends. Each backend has to implement a set of functions, in order to be used by Clutter.
ClutterBackend is the base class abstracting the various implementation; it provides a basic API to query the backend for generic information and settings.
ClutterBackend is available since Clutter 0.4
void clutter_backend_set_resolution (ClutterBackend *backend
,gdouble dpi
);
clutter_backend_set_resolution
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “font-dpi” instead
Sets the resolution for font handling on the screen. This is a scale factor between points specified in a PangoFontDescription and cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).
Applications should never need to call this function.
backend |
a ClutterBackend |
|
dpi |
the resolution in "dots per inch" (Physical inches aren't actually involved; the terminology is conventional). |
Since: 0.4
void clutter_backend_set_double_click_time (ClutterBackend *backend
,guint msec
);
clutter_backend_set_double_click_time
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “double-click-time” instead
Sets the maximum time between two button press events, used to verify whether it's a double click event or not.
Since: 0.4
guint
clutter_backend_get_double_click_time (ClutterBackend *backend
);
clutter_backend_get_double_click_time
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “double-click-time” instead
Gets the maximum time between two button press events, as set
by clutter_backend_set_double_click_time()
.
Since: 0.4
void clutter_backend_set_double_click_distance (ClutterBackend *backend
,guint distance
);
clutter_backend_set_double_click_distance
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “double-click-distance” instead
Sets the maximum distance used to verify a double click event.
Since: 0.4
guint
clutter_backend_get_double_click_distance
(ClutterBackend *backend
);
clutter_backend_get_double_click_distance
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “double-click-distance” instead
Retrieves the distance used to verify a double click event
Since: 0.4
void clutter_backend_set_font_name (ClutterBackend *backend
,const gchar *font_name
);
clutter_backend_set_font_name
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “font-name” instead
Sets the default font to be used by Clutter. The font_name
string
must either be NULL
, which means that the font name from the
default ClutterBackend will be used; or be something that can
be parsed by the pango_font_description_from_string()
function.
Since: 1.0
const gchar *
clutter_backend_get_font_name (ClutterBackend *backend
);
clutter_backend_get_font_name
has been deprecated since version 1.4 and should not be used in newly-written code.
Use “font-name” instead
Retrieves the default font name as set by
clutter_backend_set_font_name()
.
the font name for the backend. The returned string is owned by the ClutterBackend and should never be modified or freed
Since: 1.0