Class: Clutter::Backend
- Inherits:
-
Object
- Object
- Clutter::Backend
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#double_click_distance ⇒ Integer
Retrieves the distance used to verify a double click event.
-
#double_click_distance=(distance) ⇒ nil
Sets the maximum distance used to verify a double click event.
-
#double_click_time ⇒ Integer
Gets the maximum time between two button press events, as set by clutter_backend_set_double_click_time().
-
#double_click_time=(msec) ⇒ nil
Sets the maximum time between two button press events, used to verify whether it's a double click event or not.
-
#font_name ⇒ String
Retrieves the default font name as set by clutter_backend_set_font_name().
-
#font_name=(font_name) ⇒ nil
Sets the default font to be used by Clutter.
-
#font_options ⇒ cairo::FontOptions
Retrieves the font options for backend.
-
#font_options=(options) ⇒ nil
Sets the new font options for backend.
-
#resolution ⇒ Float
Gets the resolution for font handling on the screen.
-
#resolution=(dpi) ⇒ nil
Sets the resolution for font handling on the screen.
Instance Method Details
#double_click_distance ⇒ Integer
Retrieves the distance used to verify a double click event
#double_click_distance=(distance) ⇒ nil
Sets the maximum distance used to verify a double click event.
#double_click_time ⇒ Integer
Gets the maximum time between two button press events, as set by clutter_backend_set_double_click_time().
#double_click_time=(msec) ⇒ nil
Sets the maximum time between two button press events, used to verify whether it's a double click event or not.
#font_name ⇒ String
Retrieves the default font name as set by clutter_backend_set_font_name().
#font_name=(font_name) ⇒ nil
Sets the default font to be used by Clutter. The font_name string must either be nil, which means that the font name from the default Clutter::Backend will be used; or be something that can be parsed by the pango_font_description_from_string() function.
#font_options ⇒ cairo::FontOptions
Retrieves the font options for backend.
#font_options=(options) ⇒ nil
Sets the new font options for backend. The Clutter::Backend will copy the #cairo_font_options_t.
If options is nil, the first following call to clutter_backend_get_font_options() will return the default font options for backend.
This function is intended for actors creating a Pango layout using the PangoCairo API.
#resolution ⇒ Float
Gets the resolution for font handling on the screen.
The resolution is a scale factor between points specified in a Pango::FontDescription and cairo units. The default value is 96.0, meaning that a 10 point font will be 13 units high (10 * 96. / 72. = 13.3).
Clutter will set the resolution using the current backend when initializing; the resolution is also stored in the Clutter::Settings:font-dpi property.
#resolution=(dpi) ⇒ nil
Sets the resolution for font handling on the screen. This is a scale factor between points specified in a Pango::FontDescription 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.