gui

package
v0.0.0-...-c86a493 Latest Latest
Warning

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

Go to latest
Published: May 15, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUI

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

func NewGUI

func NewGUI(title string, width, height int) *GUI

func (*GUI) AddSetting

func (gui *GUI) AddSetting(settingsName, initialText string) *gtk.Entry

AddSetting adds a setting to the setting menu in the form of an entry. Takes the setting name and the initialtext in the entry and returns a pointer to the entry.

func (*GUI) AddSettingButton

func (gui *GUI) AddSettingButton(text string, buttonFunc func())

AddSettingButton adds a button to the settings menu with the label of the first argument. Calls on buttonFunc on click

func (*GUI) AutoScroll

func (gui *GUI) AutoScroll(textview *gtk.TextView, endIter *gtk.TextIter)

func (*GUI) CloseSettingsWindow

func (gui *GUI) CloseSettingsWindow()

func (*GUI) CreateChannelWindow

func (gui *GUI) CreateChannelWindow(context string, sendFunc func())

func (*GUI) DeleteChannelWindow

func (gui *GUI) DeleteChannelWindow(context string) error

func (*GUI) DeleteCurrentWindow

func (gui *GUI) DeleteCurrentWindow()

func (*GUI) EmptyEntryText

func (gui *GUI) EmptyEntryText(context string) error

func (*GUI) EmptyNicks

func (gui *GUI) EmptyNicks(context string) error

func (*GUI) GetEntryText

func (gui *GUI) GetEntryText(context string) (string, error)

func (*GUI) Notebook

func (gui *GUI) Notebook() *gtk.Notebook

func (*GUI) SetSettingsFunc

func (gui *GUI) SetSettingsFunc(settingsfunc func())

func (*GUI) StartMain

func (gui *GUI) StartMain()

func (*GUI) WriteToChannel

func (gui *GUI) WriteToChannel(s, context string) error

func (*GUI) WriteToCurrentWindow

func (gui *GUI) WriteToCurrentWindow(s string) error

func (*GUI) WriteToNicks

func (gui *GUI) WriteToNicks(s, context string) error

type Page

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

type SettingsFunc

type SettingsFunc func()

Jump to

Keyboard shortcuts

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