gui

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: GPL-3.0 Imports: 56 Imported by: 1

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 ConversationViewFactory added in v0.3.9

type ConversationViewFactory interface {
	OpenConversationView(userInitiated bool) conversationView
	IfConversationView(whenExists func(conversationView), whenDoesntExist func())
}

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 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) UI

NewGTK returns a new client for a GTK ui

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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