Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterUnits |
Struct : | Units |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
__padding_1 : Number
|
Clutter.Units | |
__padding_2 : Number
|
Clutter.Units | |
pixels : Number
|
Clutter.Units | |
pixels_set : Number
|
Clutter.Units | |
serial : Number
|
Clutter.Units | |
unit_type : Clutter.UnitType
|
Clutter.Units | |
value : Number
|
Clutter.Units |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Units
()
Create a new Clutter.Units
Create a new Clutter.Units
|
||
copy
()
:
Clutter.Units
Copies units
Copies units
|
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
(Number cm)
:
none
Stores a value in centimeters inside units
Stores a value in centimeters inside units
|
Clutter.Units | |
from_em
(Number 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
(Number mm)
:
none
Stores a value in millimiters inside units
Stores a value in millimiters inside units
|
Clutter.Units | |
from_pixels
(Number px)
:
none
Stores a value in pixels inside units
Stores a value in pixels inside units
|
Clutter.Units | |
from_pt
(Number 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: |[ ]| 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: |[ ]| 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 ]|
|
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
()
:
Number
Retrieves the value stored inside units
Retrieves the value stored inside units
|
Clutter.Units | |
to_pixels
()
:
Number
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
Converts units into a string See clutter_units_from_string() for the units syntax and for examples of output
|
Clutter.Units |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter
Method |
Gets the ClutterUnits contained in value.
|
Clutter
Method |
Sets value to units
|