gtkutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCSS added in v0.1.0

func AddCSS(style *gtk.StyleContext, CSS string)

func AsContainer added in v0.0.4

func AsContainer(w gtk.Widgetter) *gtk.Container

func Bold

func Bold(str string) string

func CSSAdder added in v0.1.0

func CSSAdder(CSS string) func(style *gtk.StyleContext)

func DiffClass

func DiffClass(old *string, new string, style *gtk.StyleContext)

func Escape

func Escape(str string) string

func EventIsLeftClick

func EventIsLeftClick(ev *gdk.Event) bool

EventIsLeftClick see EventIsMouseButton.

func EventIsMouseButton added in v0.1.0

func EventIsMouseButton(ev *gdk.Event, mouseBtn uint) bool

EventIsMouseButton returns true if the given event is a button press event on the given button.

func EventIsRightClick

func EventIsRightClick(ev *gdk.Event) bool

EventIsRightClick see EventIsMouseButton.

func HasProperty added in v0.0.4

func HasProperty(obj glib.Objector, name string) bool

func InjectCSS

func InjectCSS(w gtk.Widgetter, class, CSS string)

func KeyIsASCII

func KeyIsASCII(key uint) bool

func Margin

func Margin(widget gtk.Widgetter, sz int)

func Margin2

func Margin2(widget gtk.Widgetter, top, left int)

func Margin4

func Margin4(widget gtk.Widgetter, top, bottom, left, right int)

func NthChildren added in v0.0.4

func NthChildren(container gtk.Containerer, i int) gtk.Widgetter

func OnMap added in v0.1.0

func OnMap(w gtk.Widgetter, f func() func())

OnMap binds f to w's mapping signals.

func OpenURI added in v0.0.4

func OpenURI(uri string)

OpenURI, TODO: deprecate this

func PangoAttrs added in v0.1.0

func PangoAttrs(attrs ...*pango.Attribute) *pango.AttrList

PangoAttrs is a way to declaratively create a pango.AttrList.

func TransferMargin added in v0.0.4

func TransferMargin(dst, src gtk.Widgetter)

func TraverseWidget added in v0.0.4

func TraverseWidget(container gtk.Containerer, fn func(gtk.Widgetter))

fn() == true => break

func WrapBox added in v0.0.4

func WrapBox(orient gtk.Orientation, widgets ...gtk.Widgetter) *gtk.Box

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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