cluttermm: Clutter::Backend Class Reference
Public Member Functions | |
virtual | ~Backend () |
ClutterBackend* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterBackend* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterBackend* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
double | get_resolution () const |
Gets the resolution for font handling on the screen. More... | |
void | set_resolution (double dpi) |
Sets the resolution for font handling on the screen. More... | |
guint | get_double_click_time () const |
Gets the maximum time between two button press events, as set by set_double_click_time(). More... | |
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. More... | |
guint | get_double_click_distance () const |
Retrieves the distance used to verify a double click event. More... | |
void | set_double_click_distance (guint distance) |
Sets the maximum distance used to verify a double click event. More... | |
::Cairo::FontOptions | get_font_options () const |
Retrieves the font options for backend. More... | |
void | set_font_options (const ::Cairo::FontOptions& options) |
Sets the new font options for backend. More... | |
Glib::ustring | get_font_name () const |
Retrieves the default font name as set by set_font_name(). More... | |
void | set_font_name (const Glib::ustring& font_name) |
Sets the default font to be used by Clutter. More... | |
Glib::SignalProxy0< void > | signal_font_changed () |
Glib::SignalProxy0< void > | signal_resolution_changed () |
Glib::SignalProxy0< void > | signal_settings_changed () |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
static Glib::RefPtr< Backend > | get_default () |
Retrieves the default Clutter::Backend used by Clutter. More... | |
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. More... | |
Constructor & Destructor Documentation
|
virtual |
|
protected |
Member Function Documentation
|
static |
Retrieves the default Clutter::Backend used by Clutter.
The Clutter::Backend holds backend-specific configuration options.
- Returns
- The default backend. You should not ref or unref the returned object. Applications should rarely need to use this.
guint Clutter::Backend::get_double_click_distance | ( | ) | const |
Retrieves the distance used to verify a double click event.
Deprecated: 1.4: Use Clutter::Settings::property_double_click_distance() instead
- Deprecated:
- Use Settings's double-click-distance property instead.
- Returns
- A distance, in pixels.
guint Clutter::Backend::get_double_click_time | ( | ) | const |
Gets the maximum time between two button press events, as set by set_double_click_time().
Deprecated: 1.4: Use Clutter::Settings::property_double_click_time() instead
- Deprecated:
- Use Settings's double-click-time property instead.
- Returns
- A time in milliseconds.
Glib::ustring Clutter::Backend::get_font_name | ( | ) | const |
Retrieves the default font name as set by set_font_name().
Deprecated: 1.4: Use Clutter::Settings::property_font_name() instead
- Deprecated:
- Use Settings's font-name property instead.
- Returns
- The font name for the backend. The returned string is owned by the Clutter::Backend and should never be modified or freed.
::Cairo::FontOptions Clutter::Backend::get_font_options | ( | ) | const |
Retrieves the font options for backend.
- Returns
- 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.
double Clutter::Backend::get_resolution | ( | ) | const |
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::property_font_dpi() property.
- Deprecated:
- Use Settings's front-dpi property instead.
- Returns
- The current resolution, or -1 if no resolution has been set.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
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.
Deprecated: 1.4: Use Clutter::Settings::property_double_click_distance() instead
- Deprecated:
- Use Settings's double-click-distance property instead.
- Parameters
-
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.
Deprecated: 1.4: Use Clutter::Settings::property_double_click_time() instead
- Deprecated:
- Use Settings's double-click-time property instead.
- Parameters
-
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.
Deprecated: 1.4: Use Clutter::Settings::property_font_name() instead
- Deprecated:
- Use Settings's font-name property instead.
- Parameters
-
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.
- Parameters
-
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.
Deprecated: 1.4: Use Clutter::Settings::property_font_dpi() instead
- Deprecated:
- Use Settings's front-dpi property instead.
- Parameters
-
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 | ( | ) |
- Slot Prototype:
void on_my_font_changed()
The signal_font_changed() signal is emitted each time the font options have been changed through Clutter::Settings.
Glib::SignalProxy0< void > Clutter::Backend::signal_resolution_changed | ( | ) |
- Slot Prototype:
void on_my_resolution_changed()
The signal_resolution_changed() signal is emitted each time the font resolutions has been changed through Clutter::Settings.
Glib::SignalProxy0< void > Clutter::Backend::signal_settings_changed | ( | ) |
- Slot Prototype:
void on_my_settings_changed()
The signal_settings_changed() signal is emitted each time the Clutter::Settings properties have been changed.
Friends And Related Function Documentation
|
related |
A Glib::wrap() method for this object.
- Parameters
-
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.
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- cluttermm/backend.h