window

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LoadingTitle = "Connecting to Discord — gtkcord3"
View Source
const SwitchFade = 200 // 200ms to fade between main view and loading screen.

Variables

View Source
var (
	ApplicationCSS string
	CustomCSS      string // raw CSS, once
	FileCSS        string // path
)

Functions

func Blur

func Blur()

Blur disables the window.

func Destroy

func Destroy()

Destroy closes the application as well.

func Display

func Display(w gtk.Widgetter)

func GDKWindow added in v0.1.0

func GDKWindow() gdk.Windower

func HeaderShowAll

func HeaderShowAll()

func NowLoading added in v0.0.4

func NowLoading()

NowLoading fades the internal stack view to show a spinning circle.

func PreferDarkTheme

func PreferDarkTheme(value bool)

func ReloadCSS added in v0.0.4

func ReloadCSS()

func Resize

func Resize(w, h int)

func SetHeader added in v0.1.0

func SetHeader(h gtk.Widgetter)

func SetTitle

func SetTitle(title string)

func Show

func Show()

func ShowAll

func ShowAll()

func Unblur

func Unblur()

Unblur enables the window.

func WithApplication

func WithApplication(app *gtk.Application) error

Types

type Container

type Container struct {
	*gtk.ApplicationWindow
	App   *gtk.Application
	Accel *gtk.AccelGroup

	Screen    *gdk.Screen
	Root      *gdk.Window
	Clipboard *gtk.Clipboard

	Main   *gtk.Stack
	Header *gtk.Box

	Settings *gtk.Settings
	// contains filtered or unexported fields
}
var Window *Container

Jump to

Keyboard shortcuts

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