SplitButton


Object Hierarchy:

Adw.SplitButton Adw.SplitButton Adw.SplitButton Gtk.Widget Gtk.Widget Gtk.Widget->Adw.SplitButton GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Adw.SplitButton Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Adw.SplitButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Adw.SplitButton Gtk.ConstraintTarget->Gtk.Widget Gtk.Actionable Gtk.Actionable Gtk.Actionable->Adw.SplitButton

Description:

[ CCode ( type_id = "adw_split_button_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public sealed class SplitButton : Widget, Accessible, Actionable, Buildable, ConstraintTarget

A combined button and dropdown widget.

<picture> <source srcset="split-button-dark.png" media="(prefers-color-scheme: dark)"> <img src="split-button.png" alt="split-button"> </picture>

`AdwSplitButton` is typically used to present a set of actions in a menu, but allow access to one of them with a single click.

The API is very similar to [[email protected]] and [[email protected]], see their documentation for details.

CSS nodes

``` splitbutton.image-button ├── button │ ╰── <content> ├── separator ╰── menubutton ╰── button.toggle ╰── arrow ```

`AdwSplitButton`'s CSS node is called `splitbutton`. It contains the css nodes: `button`, `separator`, `menubutton`. See [ [email protected]] documentation for the `menubutton` contents.

The main CSS node will contain the `.image-button` or `.text-button` style classes matching the button contents. The nested button nodes will never contain them.

Accessibility

`AdwSplitButton` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Actionable
All known members inherited from interface Gtk.Buildable



2022 vala-language.org