emojiview

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const EmojiSize = 32

EmojiSize is the size of each emoji in widget size.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	*gtk.Box
	// contains filtered or unexported fields
}

func ForRoom

func ForRoom(ctx context.Context, roomID matrix.RoomID) *View

ForRoom creates a new emoji view dialog for a room.

func ForUser

func ForUser(ctx context.Context) *View

ForUser creates a new emoji view dialog for the current user.

func (*View) Invalidate

func (v *View) Invalidate()

Invalidate invalidates the emoji list and re-renders everything. If the given room ID is empty, then the user's emojis are fetched.

func (*View) InvalidateName

func (v *View) InvalidateName()

InvalidateName invalidates the name at the top left corner.

func (*View) Stop

func (v *View) Stop()

Stop cancels the background context, which cancels any background jobs.

func (*View) ToData

func (v *View) ToData() emojis.EmoticonEventData

ToData converts View's internal state to an EmoticonEventData type.

Jump to

Keyboard shortcuts

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