Class: Clutter::Backend

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#double_click_distanceInteger

Retrieves the distance used to verify a double click event

Returns:

  • (Integer)

    a distance, in pixels.

#double_click_distance=(distance) ⇒ nil

Sets the maximum distance used to verify a double click event.

Parameters:

  • distance (Integer)

    a distance, in pixels

Returns:

  • (nil)

#double_click_timeInteger

Gets the maximum time between two button press events, as set
by clutter_backend_set_double_click_time().

Returns:

  • (Integer)

    a time in milliseconds

#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.

Parameters:

  • msec (Integer)

    milliseconds between two button press events

Returns:

  • (nil)

#font_nameString

Retrieves the default font name as set by
clutter_backend_set_font_name().

Returns:

  • (String)

    the font name for the backend. The returned string is
    owned by the Clutter::Backend and should never be modified or freed

#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.

Parameters:

  • font_name (String)

    the name of the font

Returns:

  • (nil)

#font_optionscairo::FontOptions

Retrieves the font options for backend.

Returns:

  • (cairo::FontOptions)

    the font options of the Clutter::Backend.
    The returned #cairo_font_options_t is owned by the backend and should
    not be modified or freed

#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.

Parameters:

  • options (cairo::FontOptions)

    Cairo font options for the backend, or nil

Returns:

  • (nil)

#resolutionFloat

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.

Returns:

  • (Float)

    the current resolution, or -1 if no resolution
    has been set.

#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.

Parameters:

  • dpi (Float)

    the resolution in "dots per inch" (Physical inches aren't
    actually involved; the terminology is conventional).

Returns:

  • (nil)