Documentation ¶
Index ¶
- type ChannelAdd
- type ContactAdd
- type Identity
- type Main
- type Module
- func (m *Module) AttachButtonClickedSignal(builder *gtk.Builder, buttonName string, onClick OnClickEvent) (err error)
- func (m *Module) Dialog(messageType gtk.MessageType, format string, args ...interface{})
- func (m *Module) FindButtonWithBuilder(builder *gtk.Builder, buttonName string) (button *gtk.Button, err error)
- func (m *Module) FindDialogWithBuilder(builder *gtk.Builder, dialogName string) (dialog *gtk.Dialog, err error)
- func (m *Module) FindEntryWithBuilder(builder *gtk.Builder, entryName string) (button *gtk.Entry, err error)
- func (m *Module) FindFileChooserButtonWithBuilder(builder *gtk.Builder, fileChooserName string) (button *gtk.FileChooserButton, err error)
- func (m *Module) FindLabelWithBuilder(builder *gtk.Builder, labelName string) (l *gtk.Label, err error)
- func (m *Module) FindListBoxWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListBox, err error)
- func (m *Module) FindListStoreWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListStore, err error)
- func (m *Module) FindMenuItemWithBuilder(builder *gtk.Builder, imiName string) (menuItem *gtk.MenuItem, err error)
- func (m *Module) FindPanedWithBuilder(builder *gtk.Builder, panedName string) (menuItem *gtk.Paned, err error)
- func (m *Module) FindTextViewWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.TextView, err error)
- func (m *Module) FindTreeViewWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.TreeView, err error)
- func (m *Module) FindWindowWithBuilder(builder *gtk.Builder, windowName string) (window *gtk.Window, err error)
- type OnClickEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelAdd ¶
type ChannelAdd struct { Module // contains filtered or unexported fields }
ChannelAdd represent the channel addition view
type ContactAdd ¶
type ContactAdd struct { Module // contains filtered or unexported fields }
ContactAdd represent the contact addition view
type Identity ¶
type Identity struct { Module // contains filtered or unexported fields }
Identity represent the login view
type Main ¶
type Main struct { Module // contains filtered or unexported fields }
Main represent the main view
func (*Main) ChannelsRefresh ¶
type Module ¶
Module represent a module of the application (login, chat, ...)
func (*Module) AttachButtonClickedSignal ¶
func (m *Module) AttachButtonClickedSignal(builder *gtk.Builder, buttonName string, onClick OnClickEvent) (err error)
AttachButtonClickedSignal attach the clicked sign to a button
func (*Module) Dialog ¶
func (m *Module) Dialog(messageType gtk.MessageType, format string, args ...interface{})
Dialog open a modal box and display a message
func (*Module) FindButtonWithBuilder ¶
func (m *Module) FindButtonWithBuilder(builder *gtk.Builder, buttonName string) (button *gtk.Button, err error)
FindButtonWithBuilder return a button stored in a builder, based on his name nolint: dupl
func (*Module) FindDialogWithBuilder ¶
func (m *Module) FindDialogWithBuilder(builder *gtk.Builder, dialogName string) (dialog *gtk.Dialog, err error)
FindDialogWithBuilder return a dialog stored in a builder, based on his name nolint: dupl
func (*Module) FindEntryWithBuilder ¶
func (m *Module) FindEntryWithBuilder(builder *gtk.Builder, entryName string) (button *gtk.Entry, err error)
FindEntryWithBuilder return an entry stored in a builder, based on his name nolint: dupl
func (*Module) FindFileChooserButtonWithBuilder ¶
func (m *Module) FindFileChooserButtonWithBuilder(builder *gtk.Builder, fileChooserName string) (button *gtk.FileChooserButton, err error)
FindFileChooserButtonWithBuilder return an file chooser button stored in a builder, based on his name nolint: dupl
func (*Module) FindLabelWithBuilder ¶
func (m *Module) FindLabelWithBuilder(builder *gtk.Builder, labelName string) (l *gtk.Label, err error)
FindLabelWithBuilder return a text view stored in a builder, based on his name nolint: dupl
func (*Module) FindListBoxWithBuilder ¶
func (m *Module) FindListBoxWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListBox, err error)
FindListBoxWithBuilder return a list box stored in a builder, based on his name nolint: dupl
func (*Module) FindListStoreWithBuilder ¶
func (m *Module) FindListStoreWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.ListStore, err error)
FindListStoreWithBuilder return a list store stored in a builder, based on his name nolint: dupl
func (*Module) FindMenuItemWithBuilder ¶
func (m *Module) FindMenuItemWithBuilder(builder *gtk.Builder, imiName string) (menuItem *gtk.MenuItem, err error)
FindMenuItemWithBuilder return a menuitem stored in a builder, based on his name nolint: dupl
func (*Module) FindPanedWithBuilder ¶
func (m *Module) FindPanedWithBuilder(builder *gtk.Builder, panedName string) (menuItem *gtk.Paned, err error)
FindPanedWithBuilder return a paned stored in a builder, based on his name nolint: dupl
func (*Module) FindTextViewWithBuilder ¶
func (m *Module) FindTextViewWithBuilder(builder *gtk.Builder, tvName string) (tv *gtk.TextView, err error)
FindTextViewWithBuilder return a text view stored in a builder, based on his name nolint: dupl
type OnClickEvent ¶
type OnClickEvent func() error
OnClickEvent is the prototype of a button clicked event