| Top |
| gboolean | meta_barrier_is_active () |
| void | meta_barrier_destroy () |
| void | meta_barrier_release () |
| MetaBarrierDirection | directions | Read / Write / Construct Only |
| MetaDisplay * | display | Read / Write / Construct Only |
| gint | x1 | Read / Write / Construct Only |
| gint | x2 | Read / Write / Construct Only |
| gint | y1 | Read / Write / Construct Only |
| gint | y2 | Read / Write / Construct Only |
| struct | MetaBarrier |
| struct | MetaBarrierClass |
| enum | MetaBarrierDirection |
| struct | MetaBarrierEvent |
void meta_barrier_release (MetaBarrier *barrier,MetaBarrierEvent *event);
In XI2.3, pointer barriers provide a feature where they can be temporarily released so that the pointer goes through them. Pass a MetaBarrierEvent to release the barrier for this event sequence.
struct MetaBarrier;
The MetaBarrier structure contains only private data and should be accessed using the provided API
struct MetaBarrierClass {
};
The MetaBarrierClass structure contains only private data.
struct MetaBarrierEvent {
int event_id;
int dt;
guint32 time;
double x;
double y;
double dx;
double dy;
gboolean released;
gboolean grabbed;
};
A unique integer ID identifying a consecutive series of motions at or along the barrier |
||
Server time, in milliseconds, since the last event sent for this barrier |
||
Server time, in milliseconds |
||
The cursor X position in screen coordinates |
||
The cursor Y position in screen coordinates. |
||
If the cursor hadn't been constrained, the delta of X movement past the barrier, in screen coordinates |
||
If the cursor hadn't been constrained, the delta of X movement past the barrier, in screen coordinates |
||
A boolean flag, |
||
A boolean flag, |
“directions” property“directions” MetaBarrierDirection
A set of directions to let the pointer through.
Flags: Read / Write / Construct Only
“display” property“display” MetaDisplay *
The display to construct the pointer barrier on.
Flags: Read / Write / Construct Only
“x1” property “x1” gint
The first X coordinate of the barrier.
Flags: Read / Write / Construct Only
Allowed values: [0,32767]
Default value: 0
“x2” property “x2” gint
The second X coordinate of the barrier.
Flags: Read / Write / Construct Only
Allowed values: [0,32767]
Default value: 32767
“y1” property “y1” gint
The first Y coordinate of the barrier.
Flags: Read / Write / Construct Only
Allowed values: [0,32767]
Default value: 0
“hit” signalvoid user_function (MetaBarrier *barrier, MetaBarrierEvent *event, gpointer user_data)
When a pointer barrier is hit, this will trigger. This requires an XI2-enabled server.
barrier |
The MetaBarrier that was hit |
|
event |
A MetaBarrierEvent that has the details of how the barrier was hit. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
“left” signalvoid user_function (MetaBarrier *barrier, MetaBarrierEvent *event, gpointer user_data)
When a pointer barrier hitbox was left, this will trigger. This requires an XI2-enabled server.
barrier |
The MetaBarrier that was left |
|
event |
A MetaBarrierEvent that has the details of how the barrier was left. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First