buttonoverlay

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Take

func Take(b, smallbutton Button, size int)

Take takes over the given button and replaces its content with the wrapped overlay, which has the old content as well as the smaller button on top.

func Wrap

func Wrap(maincontent Widget, smallbutton Button, size int) *gtk.Overlay

Wrap wraps maincontent inside an overlay with smallbutton placed rightmost on top of the content. It will also set the margins and aligns widgets.

Types

type Button

type Button interface {
	Widget
	// Bin
	GetChild() (gtk.IWidget, error)
	// Container
	Add(gtk.IWidget)
	Remove(gtk.IWidget)
	// Button
	SetRelief(gtk.ReliefStyle)
}

type Widget

type Widget interface {
	gtk.IWidget
	SetMarginEnd(int)
	SetSizeRequest(int, int)
	SetHAlign(gtk.Align)
}

Jump to

Keyboard shortcuts

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