Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterUnits |
Struct : | Units |
Properties | Defined By | |
---|---|---|
__padding_1 : gint32
read only
|
Clutter.Units | |
__padding_2 : gint64
read only
|
Clutter.Units | |
pixels : gfloat
read only
|
Clutter.Units | |
pixels_set : guint32
read only
|
Clutter.Units | |
serial : gint32
read only
|
Clutter.Units | |
unit_type : Clutter.UnitType
read only
|
Clutter.Units | |
value : gfloat
read only
|
Clutter.Units |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Units
()
Create a new Clutter.Units
Create a new Clutter.Units
|
||
copy
()
:
Clutter.Units
Copies units
Use clutter_units_free() to free the allocated resources
Copies units
Use clutter_units_free() to free the allocated resources
|
Clutter.Units | |
free
()
:
none
Frees the resources allocated by units
You should only call this function on a ClutterUnits created using clutter_units_copy()
Frees the resources allocated by units
You should only call this function on a ClutterUnits created using clutter_units_copy()
|
Clutter.Units | |
from_cm
(gfloat cm)
:
none
Stores a value in centimeters inside units
Stores a value in centimeters inside units
|
Clutter.Units | |
from_em
(gfloat em)
:
none
Stores a value in em inside units, using the default font
name as returned by clutter_backend_get_font_name()
Stores a value in em inside units, using the default font
name as returned by clutter_backend_get_font_name()
|
Clutter.Units | |
Clutter.Units | ||
from_mm
(gfloat mm)
:
none
Stores a value in millimiters inside units
Stores a value in millimiters inside units
|
Clutter.Units | |
from_pixels
(gint32 px)
:
none
Stores a value in pixels inside units
Stores a value in pixels inside units
|
Clutter.Units | |
from_pt
(gfloat pt)
:
none
Stores a value in typographic points inside units
Stores a value in typographic points inside units
|
Clutter.Units | |
Parses a value and updates units with it
A ClutterUnits expressed in string should match: |[ | digit* sep digit+ ]| For instance, these are valid strings: |[ 10 px 5.1 em 24 pt 12.6 mm .3 cm ]| While these are not: |[ 42 cats omg!1!ponies ]|
Parses a value and updates units with it
A ClutterUnits expressed in string should match: |[ | digit* sep digit+ ]| For instance, these are valid strings: |[ 10 px 5.1 em 24 pt 12.6 mm .3 cm ]| While these are not: |[ 42 cats omg!1!ponies ]| and FALSE otherwise
|
Clutter.Units | |
get_unit_type
()
:
Clutter.UnitType
Retrieves the unit type of the value stored inside units
Retrieves the unit type of the value stored inside units
|
Clutter.Units | |
get_unit_value
()
:
gfloat
Retrieves the value stored inside units
Retrieves the value stored inside units
|
Clutter.Units | |
to_pixels
()
:
gfloat
Converts a value in ClutterUnits to pixels
Converts a value in ClutterUnits to pixels
|
Clutter.Units | |
to_string
()
:
String
Converts units into a string
See clutter_units_from_string() for the units syntax and for examples of output position for em, mm and cm, and to the first decimal position for typographic points.
Converts units into a string
See clutter_units_from_string() for the units syntax and for examples of output position for em, mm and cm, and to the first decimal position for typographic points. Pixels are integers. ClutterUnits value. Use g_free() to free the string
|
Clutter.Units |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter
Method |
Gets the ClutterUnits contained in value.
|
Clutter
Method |
Sets value to units
|