Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | phosh_layer_surface_new () |
struct zwlr_layer_surface_v1 * | phosh_layer_surface_get_layer_surface () |
struct wl_surface * | phosh_layer_surface_get_wl_surface () |
void | phosh_layer_surface_set_size () |
void | phosh_layer_surface_set_margins () |
void | phosh_layer_surface_set_exclusive_zone () |
void | phosh_layer_surface_set_kbd_interactivity () |
void | phosh_layer_surface_wl_surface_commit () |
guint | anchor | Read / Write / Construct Only |
guint | configured-height | Read |
guint | configured-width | Read |
gint | exclusive-zone | Read / Write |
guint | height | Read / Write |
gboolean | kbd-interactivity | Read / Write |
guint | layer | Read / Write / Construct Only |
gpointer | layer-shell | Read / Write / Construct Only |
gint | margin-bottom | Read / Write |
gint | margin-left | Read / Write |
gint | margin-right | Read / Write |
gint | margin-top | Read / Write |
gchar * | namespace | Read / Write / Construct Only |
guint | width | Read / Write |
gpointer | wl-output | Read / Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── PhoshLayerSurface ├── PhoshBackground ├── PhoshFader ├── PhoshHome ├── PhoshLockscreen ├── PhoshLockshield ├── PhoshNetworkAuthPrompt ├── PhoshNotificationBanner ├── PhoshPanel ├── PhoshPolkitAuthPrompt ╰── PhoshSystemPrompt
GtkWidget * phosh_layer_surface_new (gpointer layer_shell
,gpointer wl_output
);
struct zwlr_layer_surface_v1 *
phosh_layer_surface_get_layer_surface (PhoshLayerSurface *self
);
struct wl_surface *
phosh_layer_surface_get_wl_surface (PhoshLayerSurface *self
);
Get the layer wayland surface or NULL if the window is not yet realized.
void phosh_layer_surface_set_size (PhoshLayerSurface *self
,gint width
,gint height
);
Set the size of a layer surface. A value of '-1' indicates 'use old value'
void phosh_layer_surface_set_margins (PhoshLayerSurface *self
,gint top
,gint right
,gint bottom
,gint left
);
Set anchor margins of a layer surface.
void phosh_layer_surface_set_exclusive_zone (PhoshLayerSurface *self
,gint zone
);
Set exclusive zone of a layer surface.
void phosh_layer_surface_set_kbd_interactivity (PhoshLayerSurface *self
,gboolean interactivity
);
void
phosh_layer_surface_wl_surface_commit (PhoshLayerSurface *self
);
Forces a commit of layer surface's state.
struct PhoshLayerSurfaceClass { GtkWindowClass parent_class; /* Signals */ void (*configured) (PhoshLayerSurface *self); };
“anchor”
property “anchor” guint
The edges to anchor the surface to.
Flags: Read / Write / Construct Only
Default value: 0
“configured-height”
property “configured-height” guint
The height of the layer surface set by the compositor.
Flags: Read
Default value: 0
“configured-width”
property “configured-width” guint
The width of the layer surface set by the compositor.
Flags: Read
Default value: 0
“exclusive-zone”
property “exclusive-zone” gint
Set area that is not occluded with other surfaces.
Flags: Read / Write
Allowed values: >= -1
Default value: 0
“height”
property “height” guint
The height of the layer surface.
Flags: Read / Write
Default value: 0
“kbd-interactivity”
property “kbd-interactivity” gboolean
Whether the surface interacts with the keyboard.
Flags: Read / Write
Default value: FALSE
“layer”
property “layer” guint
The layer the surface should be attached to.
Flags: Read / Write / Construct Only
Default value: 0
“layer-shell”
property “layer-shell” gpointer
The layer shell wayland global.
Flags: Read / Write / Construct Only
“margin-bottom”
property “margin-bottom” gint
Distance away from the bottom anchor point.
Flags: Read / Write
Default value: 0
“margin-left”
property “margin-left” gint
Distance away from the left anchor point.
Flags: Read / Write
Default value: 0
“margin-right”
property “margin-right” gint
Distance away from the right anchor point.
Flags: Read / Write
Default value: 0
“margin-top”
property “margin-top” gint
Distance away from the top anchor point.
Flags: Read / Write
Default value: 0
“namespace”
property “namespace” gchar *
Namespace of the layer surface.
Flags: Read / Write / Construct Only
Default value: ""
“width”
property “width” guint
The width of the layer surface.
Flags: Read / Write
Default value: 0
“configured”
signalvoid user_function (PhoshLayerSurface *phoshlayersurface, gpointer user_data)
Flags: Run Last