It derives from <GObject>.
An item within SidebarSection.
Sidebar items must have a title, set via SidebarItem:title.
Sidebar items should, but are not required to, have an icon. Icons can
be set from an icon name, via SidebarItem:icon-name, or a
<GdkPaintable>, via
SidebarItem:icon-paintable.
Items can also have subtitles, set with the SidebarItem:subtitle
property. Subtitles should be used sparingly.
To add a tooltip, use SidebarItem:tooltip. Tooltips always use
Pango markup.
Items can have an arbitrary suffix widget, set with the
SidebarItem:suffix properties. It will be displayed at the end
of its row, or before the arrow in the Adw.SidebarMode.page mode.
To hide or disable the item, use the SidebarItem:visible and
SidebarItem:enabled properties respectively.
To access the items’s section, use SidebarItem:section.
It’s also possible to access the index of the item in both the section
and the sidebar, using SidebarItem.get_section_index and
SidebarItem.get_index respectively.
Dragging content over sidebar items activates them by default. To
disable this behavior, set SidebarItem:drag-motion-activate to
FALSE.
<AdwSidebarItem> is derivable, and
applications that need to associate each page with data can store it in
the items themselves this way.
parent-instanceWhether to activate the item on pointer motion during Drag-and-Drop.
This is needed to be able to drag content into the page the item represents, when the sidebar is used as a page switcher. However, it may be unwanted when dropping content onto the item itself, so it can be disabled.
Its value is a boolean.
Set it with (set! (sidebar-item:drag-motion-activate self)
value).
Whether the item is enabled.
See widget:sensitive.
Its value is a boolean.
Set it with (set! (sidebar-item:enabled self) value).
The icon name for this item.
Mutually exclusive with SidebarItem:icon-paintable.
Its value is a string, or #f.
Set it with (set! (sidebar-item:icon-name self) value).
The paintable to use as the icon for this item.
Mutually exclusive with SidebarItem:icon-name.
Its value is a <GdkPaintable>, or #f.
Set it with (set! (sidebar-item:icon-paintable self) value).
The section the item is in.
Its value is a <AdwSidebarSection>, or
#f.
It is read only.
Subtitle of the item.
Its value is a string, or #f.
Set it with (set! (sidebar-item:subtitle self) value).
The suffix widget for this item.
Suffix will be shown at the end of the item’s row, or before the arrow
in the Adw.SidebarMode.page mode.
Its value is a <GtkWidget>, or #f.
Set it with (set! (sidebar-item:suffix self) value).
Title of the item.
Its value is a string, or #f.
Set it with (set! (sidebar-item:title self) value).
The tooltip of the item.
The tooltip can be marked up with the Pango text markup language.
Its value is a string, or #f.
Set it with (set! (sidebar-item:tooltip self) value).
Whether an underline in the title indicates a mnemonic.
The mnemonic can be used to activate the item.
Its value is a boolean.
Set it with (set! (sidebar-item:use-underline self) value).
Whether the item is visible.
Its value is a boolean.
Set it with (set! (sidebar-item:visible self) value).
Gets whether self will be activated on pointer motion during Drag-and-Drop.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a boolean.
whether to enable the item on drag motion
Gets whether self is enabled.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a boolean.
whether the item is enabled
Gets the icon name for item.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a string, or #f.
the icon name
Gets the paintable used as the icon for item.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a <GdkPaintable>, or #f.
the icon paintable
Gets index of self within its Sidebar.
If self is within a section, but that section is not in a sidebar, index will be within the section only.
If self is not within a section, the index will be 0.
The item can later be retrieved by passing this index into
Sidebar.get_item.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: an unsigned 32-bit integer.
the index of self
Gets the section self is in.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a <AdwSidebarSection>, or
#f.
the section of self
Gets index of self within its SidebarSection.
If self is not within a section, the index will be 0.
The item can later be retrieved by passing this index into
SidebarSection.get_item.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: an unsigned 32-bit integer.
the index of self
Gets the subtitle of self.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a string, or #f.
the subtitle
Gets the suffix widget for self.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a <GtkWidget>, or #f.
the suffix widget
Gets the title of self.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a string, or #f.
the title
Gets the tooltip of self.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a string, or #f.
the tooltip
Gets whether an underline in the title indicates a mnemonic.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a boolean.
whether an underline in the text indicates a mnemonic
Gets whether self is visible.
Passed: a <AdwSidebarItem>.
a sidebar item
Returned: a boolean.
whether the item is visible
Creates a new <AdwSidebarItem> with
title as its title.
Passed: a string.
the item title
Returned: a <AdwSidebarItem>.
the newly created <AdwSidebarItem>
Sets whether to activate self on pointer motion during Drag-and-Drop.
This is needed to be able to drag content into the page the item represents, when the sidebar is used as a page switcher. However, it may be unwanted when dropping content onto the item itself, so it can be disabled.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed: a boolean.
whether to enable the item on drag motion
Sets whether self is enabled.
See widget:sensitive.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed: a boolean.
whether to enable the item
Sets the icon name for item.
Mutually exclusive with SidebarItem:icon-paintable.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a string, or #f.
the icon name
Sets the paintable to use as the icon for item.
Mutually exclusive with SidebarItem:icon-name.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a <GdkPaintable>, or
#f.
the icon paintable
Sets the subtitle of self.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a string, or #f.
the subtitle
Sets the suffix widget for self.
Suffix will be shown at the end of the item’s row, or before the arrow
in the Adw.SidebarMode.page mode.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a <GtkWidget>, or
#f.
the suffix widget
Sets the title of self.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a string, or #f.
the title
Sets the tooltip of self.
The tooltip can be marked up with the Pango text markup language.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed, or left out: a string, or #f.
the tooltip
Sets whether an underline in the title indicates a mnemonic.
The mnemonic can be used to activate the item.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed: a boolean.
whether an underline in the text indicates a mnemonic
Sets whether self is visible.
Passed: a <AdwSidebarItem>.
a sidebar item
Passed: a boolean.
whether the item is visible