uzbl

package module
v0.0.0-...-75f744f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalidValue

type ErrInvalidValue struct {
	Type  string
	Value string
}

func (ErrInvalidValue) Error

func (e ErrInvalidValue) Error() string

type ErrUnknownType

type ErrUnknownType struct {
	Type  string
	Value string
}

func (ErrUnknownType) Error

func (e ErrUnknownType) Error() string

type Event

type Event struct {
	*event_manager.Event
	Uzbl *Uzbl
}

type Handler

type Handler func(*Event) error

type InputManager

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

func NewInputManager

func NewInputManager(u *Uzbl) *InputManager

func (*InputManager) ClearInput

func (im *InputManager) ClearInput()

func (*InputManager) SetGlobalKeymap

func (im *InputManager) SetGlobalKeymap()

func (*InputManager) SetKeymap

func (im *InputManager) SetKeymap(k *Keymap)

type Key

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

func (Key) String

func (key Key) String() string

type KeyHandler

type KeyHandler struct {
	State int
}

type Keymap

type Keymap struct {
	Prompt        string
	DisplaySpaces bool
	OnEscape      func(ev *Event)
	// contains filtered or unexported fields
}

func (*Keymap) Bind

func (k *Keymap) Bind(s string, fn func(ev *Event, input Keys) error)

type Keys

type Keys []Key

func (Keys) Display

func (keys Keys) Display() string

func (Keys) String

func (keys Keys) String() string

type Registerable

type Registerable interface {
	Init(*Uzbl)
}

type Uzbl

type Uzbl struct {
	Variables *VariableStore

	IM *InputManager
	// contains filtered or unexported fields
}

func (*Uzbl) AddHandler

func (u *Uzbl) AddHandler(ev string, fn Handler)

func (*Uzbl) CommandFn

func (u *Uzbl) CommandFn(cmd string) func(*Event, Keys) error

func (*Uzbl) Register

func (u *Uzbl) Register(r ...Registerable)

func (*Uzbl) Send

func (u *Uzbl) Send(cmd string)

func (*Uzbl) Start

func (u *Uzbl) Start()

type VariableStore

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

func NewVariableStore

func NewVariableStore() *VariableStore

func (*VariableStore) GetFloat

func (vs *VariableStore) GetFloat(name string, def float64) float64

func (*VariableStore) GetInt

func (vs *VariableStore) GetInt(name string, def int) int

func (*VariableStore) GetString

func (vs *VariableStore) GetString(name string, def string) string

func (*VariableStore) SetFloat

func (vs *VariableStore) SetFloat(name string, value float64)

func (*VariableStore) SetInt

func (vs *VariableStore) SetInt(name string, value int)

func (*VariableStore) SetString

func (vs *VariableStore) SetString(name string, value string)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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