ui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivityBar

func NewActivityBar(triggers []string) *activityBar

Types

type View

type View struct {
	Activity *activityBar
	// contains filtered or unexported fields
}

func NewView

func NewView(socket *requests.Connection, c *config.Data) *View

func (*View) AddBufferMsg

func (v *View) AddBufferMsg(channel, from, msg string, time int64, bid int)

func (*View) AddChannel

func (v *View) AddChannel(name, topic string, cid, bid int, userList []string) *channel

func (*View) AddJoinEvent

func (v *View) AddJoinEvent(channel, nick, hostmask string, time int64, bid int)

func (*View) AddPartEvent

func (v *View) AddPartEvent(channel, nick, hostmask string, time int64, bid int)

func (*View) AddQuitEvent

func (v *View) AddQuitEvent(channel, nick, hostmask, reason string, time int64, bid int)

func (*View) AddUser

func (v *View) AddUser(channel, nick string, bid int)

func (*View) ChangeTopic

func (v *View) ChangeTopic(channel, author, newTopic string, time int64, bid int)

func (*View) ChangeUserNick

func (v *View) ChangeUserNick(channel, oldnick, newnick string, time int64, bid int)

func (*View) GetChannel added in v0.3.0

func (v *View) GetChannel(name string) *channel

func (*View) GetCurrentChannel

func (v *View) GetCurrentChannel() string

func (*View) HasChannel

func (v *View) HasChannel(channel string) bool

func (*View) HideSplash

func (v *View) HideSplash()

func (*View) Redraw

func (v *View) Redraw()

func (*View) RemoveChannel

func (v *View) RemoveChannel(name string)

func (*View) RemoveUser

func (v *View) RemoveUser(channel, nick string, bid int)

func (*View) SetLatestChannel

func (v *View) SetLatestChannel()

func (*View) Start

func (v *View) Start()

func (*View) Stop

func (v *View) Stop()

Jump to

Keyboard shortcuts

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