directbutton

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	*gtk.Overlay
	Pill   *sidebutton.Pill
	Button *gtk.Button
	// contains filtered or unexported fields
}

func NewButton

func NewButton(ctx context.Context) *Button

type ChannelButton

type ChannelButton struct {
	*sidebutton.Button
	// contains filtered or unexported fields
}

func NewChannelButton

func NewChannelButton(ctx context.Context, id discord.ChannelID) *ChannelButton

func (*ChannelButton) ID

ID returns the channel ID.

func (*ChannelButton) Invalidate

func (c *ChannelButton) Invalidate()

Invalidate invalidates and updates the state of the channel.

func (*ChannelButton) InvalidateUnread

func (c *ChannelButton) InvalidateUnread()

InvalidateUnread invalidates the guild's unread state.

func (*ChannelButton) Update

func (c *ChannelButton) Update(ch *discord.Channel)

Update updates the channel with the given Discord object.

type View

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

func NewView

func NewView(ctx context.Context) *View

func (*View) Invalidate

func (v *View) Invalidate()

func (*View) SetSelected

func (v *View) SetSelected(selected bool)

func (*View) Unselect

func (v *View) Unselect()

Jump to

Keyboard shortcuts

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