Phoc.XdgToplevel
Description: Reference for Phoc.XdgToplevel

### Class

# PhocXdgToplevel

#### Description [src]

    final class Phoc.XdgToplevel : Phoc.View
      implements Phoc.ChildRoot {
      /* No available fields */
    }

An xdg toplevel surface as defined in the xdg-shell protocol. For popups see `PhocXdgPopup`.

For details on how to setup such an object see `phoc_handle_xdg_shell_toplevel()`.

#### Hierarchy

#### Ancestors

- PhocView
- GObject

#### Implements

- PhocChildRoot

#### Constructors

###### phoc_xdg_toplevel_new

No description available.

#### Instance methods

###### phoc_xdg_toplevel_get_wlr_surface_at

No description available.

###### phoc_xdg_toplevel_is_initialized

No description available.

##### Methods inherited from PhocView (50)

Please see PhocView for a full list of methods.

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

Please see GObject for a full list of methods.

##### Methods inherited from PhocChildRoot (6)

###### phoc_child_root_add_child

No description available.

###### phoc_child_root_apply_damage

No description available.

###### phoc_child_root_get_box

No description available.

###### phoc_child_root_is_mapped

No description available.

###### phoc_child_root_remove_child

No description available.

###### phoc_child_root_unconstrain_popup

No description available.

#### Properties

###### Phoc.XdgToplevel:wlr-xdg-toplevel

The underlying wlroots xdg-toplevel.

##### Properties inherited from PhocView (6)

###### Phoc.View:activation-token

If not `NULL` this token will be used to activate the view once mapped.

###### Phoc.View:alpha

The view’s transparency.

###### Phoc.View:decorated

Whether the view should have server side window decorations drawn.

###### Phoc.View:is-mapped

Whether the view is currently mapped.

###### Phoc.View:scale-to-fit

If `TRUE` if surface will be scaled down to fit the screen.

###### Phoc.View:state

The window is maximized, tiled or floating.

#### Signals

##### Signals inherited from PhocView (1)

###### PhocView::surface-destroy

Derived classes emit this signal just before dropping their ref so reference holders can react.

##### 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 PhocXdgToplevelClass {
      PhocViewClass parent_class;

    }

No description available.

###### Class members

`parent_class: PhocViewClass`

  No description available.