Documentation ¶
Index ¶
- type MainWindow
- type MainWindowImpl
- type NoteDetailsWindow
- type NoteDetailsWindowImpl
- func (ui *NoteDetailsWindowImpl) Close(clearData bool)
- func (ui *NoteDetailsWindowImpl) CreateWindow(title string, width, height float32, visible bool, ...)
- func (ui *NoteDetailsWindowImpl) GetWindow() fyne.Window
- func (ui *NoteDetailsWindowImpl) ParseDefaultOptions(options map[string]interface{})
- func (ui *NoteDetailsWindowImpl) UpdateNoteDetailsWidget() observer.Listener
- type UI
- type UImpl
- func (ui *UImpl) AddWidget(name string, w fyne.CanvasObject)
- func (ui *UImpl) AddWindow(name string, w fyne.Window)
- func (ui *UImpl) GetNoteService() service.NoteService
- func (ui *UImpl) GetObserver() observer.Observer
- func (ui *UImpl) GetWidget(name string) (fyne.CanvasObject, error)
- func (ui *UImpl) GetWindow(name string) (fyne.Window, error)
- func (ui *UImpl) Run()
- func (ui *UImpl) SetFocusOnWidget(w fyne.Window, wg fyne.Focusable)
- func (ui *UImpl) SetWidgetEnabled(name string, enabled bool) error
- func (ui *UImpl) SetWidgetVisibility(name string, visible bool) error
- func (ui *UImpl) SetWindowVisibility(name string, visible bool) error
- func (ui *UImpl) ShowNotification(title, contentStr string)
- func (ui *UImpl) Stop()
- func (ui *UImpl) ToggleFullScreen(w fyne.Window)
- type WindowDefaultOptions
- type WindowInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MainWindow ¶
type MainWindow interface { WindowInterface UpdateNoteListWidget() observer.Listener }
func NewMainWindow ¶
func NewMainWindow( ui *UImpl, cryptoService service.CryptoServiceFactory, ) MainWindow
type MainWindowImpl ¶
type MainWindowImpl struct { UImpl WindowDefaultOptions // contains filtered or unexported fields }
func (*MainWindowImpl) CreateWindow ¶
func (ui *MainWindowImpl) CreateWindow(title string, width, height float32, _ bool, options map[string]interface{})
CreateWindow ....
func (*MainWindowImpl) GetWindow ¶
func (ui *MainWindowImpl) GetWindow() fyne.Window
GetWindow returns the window object
func (*MainWindowImpl) UpdateNoteListWidget ¶
func (ui *MainWindowImpl) UpdateNoteListWidget() observer.Listener
UpdateNoteList listener (observer) triggered when the note tiles are u
type NoteDetailsWindow ¶
type NoteDetailsWindow interface { WindowInterface UpdateNoteDetailsWidget() observer.Listener Close(clearData bool) }
NoteDetailsWindow ....
func NewNoteDetailsWindow ¶
func NewNoteDetailsWindow(ui *UImpl, note *model.Note) NoteDetailsWindow
NewNoteDetailsWindow ....
type NoteDetailsWindowImpl ¶
type NoteDetailsWindowImpl struct { UImpl WindowDefaultOptions // contains filtered or unexported fields }
NoteDetailsWindowImpl ....
func (*NoteDetailsWindowImpl) Close ¶
func (ui *NoteDetailsWindowImpl) Close(clearData bool)
Close close note details window
func (*NoteDetailsWindowImpl) CreateWindow ¶
func (ui *NoteDetailsWindowImpl) CreateWindow( title string, width, height float32, visible bool, options map[string]interface{}, )
CreateWindow ....
func (*NoteDetailsWindowImpl) GetWindow ¶
func (ui *NoteDetailsWindowImpl) GetWindow() fyne.Window
GetWindow returns the window object
func (*NoteDetailsWindowImpl) ParseDefaultOptions ¶
func (ui *NoteDetailsWindowImpl) ParseDefaultOptions(options map[string]interface{})
ParseDefaultOptions ....
func (*NoteDetailsWindowImpl) UpdateNoteDetailsWidget ¶
func (ui *NoteDetailsWindowImpl) UpdateNoteDetailsWidget() observer.Listener
UpdateNoteDetailsWidget ....
type UI ¶
type UI interface { AddWindow(name string, w fyne.Window) AddWidget(name string, w fyne.CanvasObject) GetWindow(name string) (fyne.Window, error) GetWidget(name string) (fyne.CanvasObject, error) ShowNotification(title, contentStr string) Run() Stop() SetFocusOnWidget(w fyne.Window, wg fyne.CanvasObject) GetNoteService() service.NoteService GetObserver() observer.Observer SetWidgetVisibility(name string, visible bool) error SetWidgetEnabled(name string, enabled bool) error SetWindowVisibility(name string, visible bool) error ToggleFullScreen(w fyne.Window) }
UI ....
type UImpl ¶
type UImpl struct {
// contains filtered or unexported fields
}
UImpl Main ui configuration
func NewUI ¶
func NewUI( app fyne.App, confService service.ConfigService, noteService service.NoteService, certService service.CertService, obs observer.Observer, ) *UImpl
NewUI UI constructor
func (*UImpl) GetNoteService ¶
func (ui *UImpl) GetNoteService() service.NoteService
GetNoteService ....
func (*UImpl) SetFocusOnWidget ¶
func (ui *UImpl) SetFocusOnWidget(w fyne.Window, wg fyne.Focusable)
SetFocusOnWidget ....
func (*UImpl) SetWidgetEnabled ¶
SetWidgetEnabled ....
func (*UImpl) SetWidgetVisibility ¶
SetWidgetVisibility ....
func (*UImpl) SetWindowVisibility ¶
SetWindowVisibility ....
func (*UImpl) ShowNotification ¶
ShowNotification ....
func (*UImpl) ToggleFullScreen ¶
func (ui *UImpl) ToggleFullScreen(w fyne.Window)
ToggleFullScreen ....
type WindowDefaultOptions ¶
type WindowDefaultOptions struct {
// contains filtered or unexported fields
}
WindowDefaultOptions default options for windows
func (*WindowDefaultOptions) ParseDefaultOptions ¶
func (ui *WindowDefaultOptions) ParseDefaultOptions(options map[string]interface{})
ParseDefaultOptions ...