gui

package
v0.4.0-el2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 63 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir added in v0.3.9

func Dir(useLocal bool, name string) http.FileSystem

Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.

func FS added in v0.3.9

func FS(useLocal bool) http.FileSystem

FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSByte added in v0.3.9

func FSByte(useLocal bool, name string) ([]byte, error)

FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSMustByte added in v0.3.9

func FSMustByte(useLocal bool, name string) []byte

FSMustByte is the same as FSByte, but panics if name is not present.

func FSMustString added in v0.3.9

func FSMustString(useLocal bool, name string) string

FSMustString is the string version of FSMustByte.

func FSString added in v0.3.9

func FSString(useLocal bool, name string) (string, error)

FSString is the string version of FSByte.

Types

type Graphics

type Graphics struct {
	// contains filtered or unexported fields
}

Graphics represent the graphic configuration

func CreateGraphics

func CreateGraphics(gtkVal gtki.Gtk, glibVal glibi.Glib, gdkVal gdki.Gdk, pangoVal pangoi.Pango) Graphics

CreateGraphics creates a Graphic represention from the given arguments

type Icon

type Icon interface {
	GetPixbuf() gdki.Pixbuf
}

Icon is a published interface that allows the conversion of an icon to a pixbuf

var CoyimIcon Icon = coyimIcon

CoyimIcon is the CoyIM official icon, as a 256x256 png

type NoHooks

type NoHooks struct{}

NoHooks implements the OSHooks interface, doing nothing with the hooks

func (*NoHooks) AfterInit

func (*NoHooks) AfterInit()

AfterInit implements the OSHooks interface

func (*NoHooks) BeforeMainWindow

func (*NoHooks) BeforeMainWindow(*gtkUI)

BeforeMainWindow implements the OSHooks interface

type OSHooks

type OSHooks interface {
	// BeforeMainWindow will be called with the gtkUI object as soon as it's created
	BeforeMainWindow(*gtkUI)

	// AfterInit will be called after GTK has been initialized
	AfterInit()
}

OSHooks represents different hooks that will be called where OS specific functionality can be added

type StyleContextable added in v0.3.9

type StyleContextable interface {
	GetStyleContext() (gtki.StyleContext, error)
}

StyleContextable is an interface to assing css style

type UI

type UI interface {
	Loop()
}

UI is the user interface functionality exposed to main

func NewGTK

func NewGTK(version string, sf sessions.Factory, df interfaces.DialerFactory, gx Graphics, hooks OSHooks) UI

NewGTK returns a new client for a GTK ui

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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