Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GdkToplevelLayout

[16:7] extends: object

Contains information that is necessary to present a sovereign window on screen. The GdkToplevelLayout struct is necessary for using [method@Gdk.Toplevel.present]. Toplevel surfaces are sovereign windows that can be presented to the user in various states (maximized, on all workspaces, etc).

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GdkToplevelLayout (Handle = null)

    Create a toplevel layout description. Used together with [method@Gdk.Toplevel.present] to describe how a toplevel surface should be placed and behave on-screen. The size is in ”application pixels”, not ”device pixels” (see [method@Gdk.Surface.get_scale]).

    • @p Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • copy ()

    Create a new GdkToplevelLayout and copy the contents of @layout into it.

    • @r a copy of @layout..
  • equal (object other)

    Check whether @layout and @other has identical layout properties.

    • @p other is another toplevel layout.
    • @r true if @layout and @other have identical layout properties, otherwise false..
  • get_fullscreen ()

    If the layout specifies whether to the toplevel should go fullscreen, the value pointed to by @fullscreen is set to true if it should go fullscreen, or false, if it should go unfullscreen.

    • @p fullscreen is location to store whether the toplevel should be fullscreen.
    • @r whether the @layout specifies the fullscreen state for the toplevel.
  • get_fullscreen_monitor ()

    Returns the monitor that the layout is fullscreening the surface on.

    • @r the monitor on which @layout fullscreens.
  • get_maximized ()

    If the layout specifies whether to the toplevel should go maximized, the value pointed to by @maximized is set to true if it should go maximized, or false, if it should go unmaximized.

    • @p maximized is set to true if the toplevel should be maximized.
    • @r whether the @layout specifies the maximized state for the toplevel.
  • get_resizable ()

    Returns whether the layout should allow the user to resize the surface.

    • @r true if the layout is resizable.
  • ref ()

    Increases the reference count of @layout.

    • @r the same @layout.
  • set_fullscreen (bool fullscreen, object monitor)

    Sets whether the layout should cause the surface to be fullscreen when presented.

    • @p fullscreen is true to fullscreen the surface.
    • @p monitor is the monitor to fullscreen on.
    • @r None.
  • set_maximized (bool maximized)

    Sets whether the layout should cause the surface to be maximized when presented.

    • @p maximized is true to maximize.
    • @r None.
  • set_resizable (bool resizable)

    Sets whether the layout should allow the user to resize the surface after it has been presented.

    • @p resizable is true to allow resizing.
    • @r None.
  • unref ()

    Decreases the reference count of @layout.

    • @r None.