cluttermm 1.3.3
|
Public Member Functions | |
virtual | ~Backend () |
ClutterBackend* | gobj () |
Provides access to the underlying C GObject. | |
const ClutterBackend* | gobj () const |
Provides access to the underlying C GObject. | |
ClutterBackend* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
double | get_resolution () const |
Gets the resolution for font handling on the screen; see set_resolution() for full details. | |
void | set_resolution (double dpi) |
Sets the resolution for font handling on the screen. | |
guint | get_double_click_time () const |
Gets the maximum time between two button press events, as set by set_double_click_time(). | |
void | set_double_click_time (guint msec) |
Sets the maximum time between two button press events, used to verify whether it's a double click event or not. | |
guint | get_double_click_distance () const |
Retrieves the distance used to verify a double click event. | |
void | set_double_click_distance (guint distance) |
Sets the maximum distance used to verify a double click event. | |
::Cairo::FontOptions | get_font_options () const |
Retrieves the font options for backend. | |
void | set_font_options (const ::Cairo::FontOptions& options) |
Sets the new font options for backend. | |
Glib::ustring | get_font_name () const |
Retrieves the default font name as set by set_font_name(). | |
void | set_font_name (const Glib::ustring& font_name) |
Sets the default font to be used by Clutter. | |
Glib::SignalProxy0< void > | signal_font_changed () |
Glib::SignalProxy0< void > | signal_resolution_changed () |
Static Public Member Functions | |
static Glib::RefPtr< Backend > | get_default () |
Retrieves the default Clutter::Backend used by Clutter. | |
Protected Member Functions | |
Backend () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Clutter::Backend > | wrap (ClutterBackend* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
virtual Clutter::Backend::~Backend | ( | ) | [virtual] |
Clutter::Backend::Backend | ( | ) | [protected] |
static Glib::RefPtr<Backend> Clutter::Backend::get_default | ( | ) | [static] |
Retrieves the default Clutter::Backend used by Clutter.
The Clutter::Backend holds backend-specific configuration options.
guint Clutter::Backend::get_double_click_distance | ( | ) | const |
Retrieves the distance used to verify a double click event.
guint Clutter::Backend::get_double_click_time | ( | ) | const |
Gets the maximum time between two button press events, as set by set_double_click_time().
Glib::ustring Clutter::Backend::get_font_name | ( | ) | const |
Retrieves the default font name as set by set_font_name().
::Cairo::FontOptions Clutter::Backend::get_font_options | ( | ) | const |
Retrieves the font options for backend.
double Clutter::Backend::get_resolution | ( | ) | const |
Gets the resolution for font handling on the screen; see set_resolution() for full details.
const ClutterBackend* Clutter::Backend::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
ClutterBackend* Clutter::Backend::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
ClutterBackend* Clutter::Backend::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
void Clutter::Backend::set_double_click_distance | ( | guint | distance | ) |
Sets the maximum distance used to verify a double click event.
distance | A distance, in pixels. |
void Clutter::Backend::set_double_click_time | ( | guint | msec | ) |
Sets the maximum time between two button press events, used to verify whether it's a double click event or not.
msec | Milliseconds between two button press events. |
void Clutter::Backend::set_font_name | ( | const Glib::ustring & | font_name | ) |
Sets the default font to be used by Clutter.
The font_name string must either be 0
, 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_name | The name of the font. |
void Clutter::Backend::set_font_options | ( | const ::Cairo::FontOptions & | options | ) |
Sets the new font options for backend.
The Clutter::Backend will copy the #cairo_font_options_t.
If options is 0
, the first following call to 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.
options | Cairo font options for the backend, or 0 . |
void Clutter::Backend::set_resolution | ( | double | dpi | ) |
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.
dpi | The resolution in "dots per inch" (Physical inches aren't actually involved; the terminology is conventional). |
Glib::SignalProxy0< void > Clutter::Backend::signal_font_changed | ( | ) |
void on_my_font_changed()
Glib::SignalProxy0< void > Clutter::Backend::signal_resolution_changed | ( | ) |
void on_my_resolution_changed()
Glib::RefPtr< Clutter::Backend > wrap | ( | ClutterBackend * | object, |
bool | take_copy = false |
||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |