| Top |
| PhoshLockscreenManager * | lockscreen-manager | Read / Write / Construct Only |
| PhoshRotationManagerMode | mode | Read / Write |
| PhoshMonitor * | monitor | Read / Write |
| gboolean | orientation-locked | Read / Write |
| PhoshSensorProxyManager * | sensor-proxy-manager | Read / Write / Construct Only |
| PhoshMonitorTransform | transform | Read |
PhoshRotationManager is responsible for managing the rotation of a given PhoshMonitor. Depending on the PhoshRotationManagerMode this can happen by interfacing with a PhoshSensorProxyManager or by setting the PhoshMonitorTransform explicitly. It also takes the “locked” status into account to ensure the lockscreen is rotated accordingly on small phones.
PhoshRotationManager * phosh_rotation_manager_new (PhoshSensorProxyManager *sensor_proxy_manager,PhoshLockscreenManager *lockscreen_manager,PhoshMonitor *monitor);
void phosh_rotation_manager_set_orientation_locked (PhoshRotationManager *self,gboolean locked);
gboolean
phosh_rotation_manager_get_orientation_locked
(PhoshRotationManager *self);
PhoshRotationManagerMode
phosh_rotation_manager_get_mode (PhoshRotationManager *self);
gboolean phosh_rotation_manager_set_mode (PhoshRotationManager *self,PhoshRotationManagerMode mode);
Sets the given mode.
TRUE if setting the mode was possible, otherwise FALSE (e.g. when trying
to set PHOSH_ROTATION_MANAGER_MODE_SENSOR without having a sensor.
void phosh_rotation_manager_set_transform (PhoshRotationManager *self,PhoshMonitorTransform tranform);
PhoshMonitorTransform
phosh_rotation_manager_get_transform (PhoshRotationManager *self);
PhoshMonitor *
phosh_rotation_manager_get_monitor (PhoshRotationManager *self);
void phosh_rotation_manager_set_monitor (PhoshRotationManager *self,PhoshMonitor *monitor);
#define PHOSH_TYPE_ROTATION_MANAGER (phosh_rotation_manager_get_type ())
“lockscreen-manager” property“lockscreen-manager” PhoshLockscreenManager *
The object managing the lock screen.
Owner: PhoshRotationManager
Flags: Read / Write / Construct Only
“mode” property“mode” PhoshRotationManagerMode
The current rotation mode.
Owner: PhoshRotationManager
Flags: Read / Write
Default value: PHOSH_ROTATION_MANAGER_MODE_OFF
“monitor” property“monitor” PhoshMonitor *
The monitor to rotate.
Owner: PhoshRotationManager
Flags: Read / Write
“orientation-locked” property“orientation-locked” gboolean
Whether the screen orientation is locked.
Owner: PhoshRotationManager
Flags: Read / Write
Default value: TRUE
“sensor-proxy-manager” property“sensor-proxy-manager” PhoshSensorProxyManager *
The object inerfacing with iio-sensor-proxy.
Owner: PhoshRotationManager
Flags: Read / Write / Construct Only
“transform” property“transform” PhoshMonitorTransform
Monitor transform of the rotation monitor.
Owner: PhoshRotationManager
Flags: Read
Default value: PHOSH_MONITOR_TRANSFORM_NORMAL