utils

package
v0.0.0-...-7d45778 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventIDVariant = glib.NewVariantType("s")

Functions

func ButtonLoading

func ButtonLoading(button *gtk.Button, loadingText string) func()

func InjectAvatarSize

func InjectAvatarSize(urlstr string) string

InjectAvatarSize calls InjectSize with size being 64px.

func InjectSize

func InjectSize(urlstr string, size int) string

InjectSize injects the size query parameter into the URL. Size is automatically scaled up to 2x or more.

func InjectSizeUnscaled

func InjectSizeUnscaled(urlstr string, size int) string

InjectSizeUnscaled is like InjectSize, except the size is not scaled according to the scale factor.

func NewEventIDVariant

func NewEventIDVariant(id string) *glib.Variant

Types

This section is empty.

Jump to

Keyboard shortcuts

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