backbutton

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BackButtonIcon = "sidebar-show-symbolic"

BackButtonIcon is the default icon name for a fold reveal button.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackButton

type BackButton struct {
	*gtk.Revealer
	Button *gtk.ToggleButton
}

BackButton is a button that toggles whether or not the fold's sidebar should be revealed.

func New

func New() *BackButton

New creates a new fold reveal button. The button is hidden by default until a sidebar is connected to it.

func (*BackButton) ConnectSplitView

func (b *BackButton) ConnectSplitView(view *adw.OverlaySplitView)

ConnectFold connects the current sidebar reveal button to the given sidebar.

func (*BackButton) SetIconName

func (b *BackButton) SetIconName(icon string)

SetIconName sets the reveal button's icon name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL