Top | ![]() |
![]() |
![]() |
![]() |
guint | drag-handle | Read / Write |
PhoshDragSurfaceDragMode | drag-mode | Read / Write |
PhoshDragSurfaceState | drag-state | Read |
guint | exclusive | Read / Write |
gpointer | layer-shell-effects | Read / Write / Construct Only |
int | margin-folded | Read / Write |
int | margin-unfolded | Read / Write |
double | threshold | Read / Write |
#define | PHOSH_TYPE_DRAG_SURFACE |
enum | PhoshDragSurfaceState |
enum | PhoshDragSurfaceDragMode |
struct | PhoshDragSurfaceClass |
PhoshDragSurface |
GEnum ├── PhoshDragSurfaceDragMode ╰── PhoshDragSurfaceState GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── PhoshLayerSurface ╰── PhoshDragSurface ├── PhoshHome ╰── PhoshTopPanel
A layer surface that can be dragged in ne direction via gestures.
See PhoshTopPanel for a usage example. Note that you need to
update folded/unfolded margins on the PhoshLayerSurface's
configured
event to adjust it to the proper sizes.
void phosh_drag_surface_set_margin (PhoshDragSurface *self
,int margin_folded
,int margin_unfolded
);
float
phosh_drag_surface_get_threshold (PhoshDragSurface *self
);
void phosh_drag_surface_set_threshold (PhoshDragSurface *self
,double threshold
);
PhoshDragSurfaceState
phosh_drag_surface_get_drag_state (PhoshDragSurface *self
);
void phosh_drag_surface_set_drag_state (PhoshDragSurface *self
,PhoshDragSurfaceState state
);
void phosh_drag_surface_set_exclusive (PhoshDragSurface *self
,guint exclusive
);
PhoshDragSurfaceDragMode
phosh_drag_surface_get_drag_mode (PhoshDragSurface *self
);
void phosh_drag_surface_set_drag_mode (PhoshDragSurface *self
,PhoshDragSurfaceDragMode mode
);
guint
phosh_drag_surface_get_drag_handle (PhoshDragSurface *self
);
void phosh_drag_surface_set_drag_handle (PhoshDragSurface *self
,guint handle
);
The drag mode of the drag surface. Specifies how and where the surface is draggable.
struct PhoshDragSurfaceClass { PhoshLayerSurfaceClass parent_class; void (*dragged) (PhoshDragSurface *self, int margin); };
“drag-handle”
property“drag-handle” guint
Owner: PhoshDragSurface
Flags: Read / Write
Default value: 0
“drag-mode”
property“drag-mode” PhoshDragSurfaceDragMode
Owner: PhoshDragSurface
Flags: Read / Write
Default value: PHOSH_DRAG_SURFACE_DRAG_MODE_FULL
“drag-state”
property“drag-state” PhoshDragSurfaceState
Owner: PhoshDragSurface
Flags: Read
Default value: PHOSH_DRAG_SURFACE_STATE_FOLDED
“exclusive”
property“exclusive” guint
Owner: PhoshDragSurface
Flags: Read / Write
Default value: 0
“layer-shell-effects”
property“layer-shell-effects” gpointer
Owner: PhoshDragSurface
Flags: Read / Write / Construct Only
“margin-folded”
property “margin-folded” int
Owner: PhoshDragSurface
Flags: Read / Write
Default value: 0
“margin-unfolded”
property “margin-unfolded” int
Owner: PhoshDragSurface
Flags: Read / Write
Default value: 0
“dragged”
signalvoid user_function (PhoshDragSurface *phoshdragsurface, int arg1, gpointer user_data)
Flags: Run Last