window

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

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

Functions

func Blur

func Blur()

func Destroy

func Destroy()

Destroy closes the application as well.

func Display

func Display(w gtk.IWidget)

func HeaderDisplay

func HeaderDisplay(w gtkutils.ExtendedWidget)

func HeaderShowAll

func HeaderShowAll()

func Notify

func Notify(id string, notification *glib.Notification)

func NowLoading

func NowLoading()

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

func PreferDarkTheme

func PreferDarkTheme(value bool)

func ReloadCSS

func ReloadCSS()

func Resize

func Resize(w, h int)

func SetTitle

func SetTitle(title string)

func Show

func Show()

func ShowAll

func ShowAll()

func Unblur

func Unblur()

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

	Header *Header
	Main   *gtk.Stack

	Settings *gtk.Settings
	// contains filtered or unexported fields
}
var Window *Container
type Header struct {
	*handy.TitleBar
	Main *gtk.Stack
}

Jump to

Keyboard shortcuts

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