Class
WPEPlatformSettings
Description [src]
final class WPEPlatform.Settings : GObject.Object {
/* No available fields */
}
This class stores settings for the WPE platform.
It is a map of keys to arbitrary values. These keys are registered with wpe_settings_register()
.
They can be stored and loaded with wpe_settings_save_to_keyfile()
and wpe_settings_load_from_keyfile()
.
The WPESettings::changed
signal is emitted when a setting is changed. You can connect to the detailed signal
to watch a specific key, e.g. changed::/wpe-platform/fonts/font-hinting
.
Instance methods
wpe_settings_get_boolean
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_byte
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_double
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_int32
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_int64
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_string
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_uint32
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_get_uint64
This is a simple wrapper around wpe_settings_get_value()
that also validates
the return type.
wpe_settings_register
Registers a key to be used for settings. This is only intended to be used by platforms and not applications.
wpe_settings_save_to_keyfile
Adds settings to a keyfile. Keys are transformed into group names, for example:
/wpe-platform/fonts/hinting
will be saved as hinting
in the group wpe-platform/fonts
.
wpe_settings_set_boolean
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_byte
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_double
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_int32
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_int64
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_string
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_uint32
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_uint64
This is a simple wrapper around wpe_settings_set_value()
that also validates
the type.
wpe_settings_set_value
If source
is WPE_SETTINGS_SOURCE_APPLICATION
, then the value will not be overwritten by the platform.
This value should always be WPE_SETTINGS_SOURCE_PLATFORM
for platforms themselves. This can cause this
method to return TRUE
even though no setting changes.
Signals
WPEPlatform.Settings::changed
Emitted when a settings is changed. It will contain a detail of the specific key that changed.
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.