:right-sidebar: True Layout =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.6 .. class:: Layout(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Buildable` An individual layout in :obj:`~gi.repository.Adw.MultiLayoutView`\. Constructors ------------ .. rst-class:: interim-class .. class:: Layout :no-index: .. classmethod:: new(content: ~gi.repository.Gtk.Widget) -> ~gi.repository.Adw.Layout Creates a new ``AdwLayout`` that contains ``content``\. .. versionadded:: 1.6 :param content: the content widget to use Methods ------- .. rst-class:: interim-class .. class:: Layout :no-index: .. method:: get_content() -> ~gi.repository.Gtk.Widget Gets the content widget. .. versionadded:: 1.6 .. method:: get_name() -> str | None Gets the name of the layout. .. versionadded:: 1.6 .. method:: set_name(name: str | None = None) -> None Sets the name of the layout. .. versionadded:: 1.6 :param name: the layout name Properties ---------- .. rst-class:: interim-class .. class:: Layout :no-index: .. attribute:: props.content :type: ~gi.repository.Gtk.Widget The type of the None singleton. .. versionadded:: 1.6 .. attribute:: props.name :type: str The type of the None singleton. .. versionadded:: 1.6