Phoc.Seat
Description: Reference for Phoc.Seat

### Class

# PhocSeat

#### Description [src]

    class Phoc.Seat : GObject.Object
    {
      wlr_seat* seat,
      PhocCursor* cursor,
      int32_t touch_id,
      double touch_x,
      double touch_y,
      wlr_layer_surface_v1* focused_layer,
      PhocInputMethodRelay im_relay,
      PhocDragIcon* drag_icon,
      gpointer keyboard_shortcuts_inhibitors,
      gpointer keyboards,
      gpointer pointers,
      gpointer switches,
      gpointer touch,
      gpointer tablets,
      gpointer tablet_pads,
      wl_listener request_set_selection,
      wl_listener request_set_primary_selection,
      wl_listener request_start_drag,
      wl_listener start_drag,
      wl_listener destroy
    }

Represents a seat.

#### Hierarchy

#### Ancestors

- GObject

#### Constructors

###### phoc_seat_new

No description available.

#### Functions

###### phoc_seat_from_wlr_seat

No description available.

#### Instance methods

###### phoc_seat_add_device

No description available.

###### phoc_seat_add_shortcuts_inhibit

No description available.

###### phoc_seat_begin_move

No description available.

###### phoc_seat_begin_resize

No description available.

###### phoc_seat_configure_cursor

No description available.

###### phoc_seat_cycle_focus

Cycles the input focus through the current seat views. Depending on `forward` it cycles either forward or backward.

###### phoc_seat_end_compositor_grab

No description available.

###### phoc_seat_focus_workspace

Focus the view that was last focused on the give workspace.

###### phoc_seat_get_cursor

Get the current cursor.

###### phoc_seat_get_focus_view

No description available.

###### phoc_seat_get_last_button_or_touch_serial

No description available.

###### phoc_seat_get_last_event_ts

No description available.

###### phoc_seat_grab_meta_press

No description available.

###### phoc_seat_has_hw_keyboard

No description available.

###### phoc_seat_has_keyboard

No description available.

###### phoc_seat_has_pointer

No description available.

###### phoc_seat_has_switch

No description available.

###### phoc_seat_has_touch

No description available.

###### phoc_seat_is_input_allowed

No description available.

###### phoc_seat_maybe_set_cursor

No description available.

###### phoc_seat_notify_activity

No description available.

###### phoc_seat_set_exclusive_client

If %client is no `NULL` only this client can receive input events.

###### phoc_seat_set_focus_layer

Focus semantics of layer surfaces are somewhat detached from the normal focus flow. For layers above the shell layer, for example, you cannot unfocus them. You also cannot alt-tab between layer surfaces and shell surfaces.

###### phoc_seat_set_focus_surface

Focus the given surface. Except from cursor code you want to invoke `phoc_seat_set_focus_view()` instead.

###### phoc_seat_set_focus_view

If possible it will unfocus the currently focused view and focus the given %view, raise it if necessary and make it appear activated. If `NULL` is passed only the current view is unfocused.

###### phoc_seat_shortcuts_inhibited

No description available.

###### phoc_seat_update_last_button_serial

No description available.

###### phoc_seat_update_last_touch_serial

No description available.

###### phoc_seat_view_from_view

Looks up the seat view tracking the given view. If no seat view is found a new one is created.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Phoc.Seat:input

The %PhocInput that keeps track of all seats.

###### Phoc.Seat:name

The name of this seat.

#### Signals

##### 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.

#### Class structure

    struct PhocSeatClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.