Documentation ¶
Overview ¶
Package window contains project's windows
Index ¶
- type MainMenuUpdater
- type Renderable
- type Window
- func (t *Window) Build()
- func (t *Window) Cleanup()
- func (t *Window) IsVisible() bool
- func (t *Window) KeyboardShortcuts() []giu.WindowShortcut
- func (t *Window) Pos(x, y float32) *Window
- func (t *Window) RegisterKeyboardShortcuts(s ...giu.WindowShortcut)
- func (t *Window) SetVisible(visible bool)
- func (t *Window) Show()
- func (t *Window) State() state.WindowState
- func (t *Window) ToggleVisibility()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MainMenuUpdater ¶
type MainMenuUpdater interface { // UpdateMainMenuLayout receives a pointer to the current layout of the menu bar at the top of the application, // allowing a struct implementing this interface to alter the menu bar. // This is generally used for adding a menu to the bar specific to the struct implementing this method, with options // that would be useful for that struct. UpdateMainMenuLayout(layout *giu.Layout) }
MainMenuUpdater represents main menu updater
type Renderable ¶
type Renderable interface { Build() Cleanup() // KeyboardShortcuts returns a list of keyboard shortcuts KeyboardShortcuts() []giu.WindowShortcut IsVisible() bool // RegisterKeyboardShortcuts wraps giu.RegisterKeyboardShortcuts RegisterKeyboardShortcuts(...giu.WindowShortcut) GetLayout() giu.Widget }
Renderable represents top-level renderable objects (window of one of types: editor, toolwindow, dialog)
type Window ¶
type Window struct { *giu.WindowWidget Visible bool }
Window represents project's window
func (*Window) KeyboardShortcuts ¶
func (t *Window) KeyboardShortcuts() []giu.WindowShortcut
KeyboardShortcuts returns a list of local keyboard shortcuts
func (*Window) RegisterKeyboardShortcuts ¶
func (t *Window) RegisterKeyboardShortcuts(s ...giu.WindowShortcut)
RegisterKeyboardShortcuts sets a local shortcuts list
func (*Window) SetVisible ¶
SetVisible sets window's visibility
func (*Window) ToggleVisibility ¶
func (t *Window) ToggleVisibility()
ToggleVisibility toggles visibility
Directories ¶
Path | Synopsis |
---|---|
Package editor provides editors for the various file types.
|
Package editor provides editors for the various file types. |
animdata
Package animdata contains D2 editor's data
|
Package animdata contains D2 editor's data |
cof
Package cof contains cof editor's data
|
Package cof contains cof editor's data |
dc6
Package dc6 represents a dc6 editor window
|
Package dc6 represents a dc6 editor window |
dcc
Package dcc contains dcc editor's data
|
Package dcc contains dcc editor's data |
ds1
Package ds1 contains ds1 editor's data
|
Package ds1 contains ds1 editor's data |
dt1
Package dt1 contains dt1 editor's data
|
Package dt1 contains dt1 editor's data |
font
Package font contains font editor's data
|
Package font contains font editor's data |
fonttable
Package fonttable represents fontTableEditor's window
|
Package fonttable represents fontTableEditor's window |
palette
Package palette contains palette editor's data
|
Package palette contains palette editor's data |
palettemap
Package palettemap contains palette map editor's data
|
Package palettemap contains palette map editor's data |
sound
Package sound represents a soundEditor's window
|
Package sound represents a soundEditor's window |
stringtable
Package stringtable contains string tables editor's data
|
Package stringtable contains string tables editor's data |
text
Package text contains text editor's data
|
Package text contains text editor's data |
Package popup contains project's dialogs
|
Package popup contains project's dialogs |
aboutdialog
Package aboutdialog provides the "About" window implementation, which shows information about hellspawner.
|
Package aboutdialog provides the "About" window implementation, which shows information about hellspawner. |
preferences
Package preferences contains preferences dialog data
|
Package preferences contains preferences dialog data |
projectproperties
Package projectproperties contains project properties dialog's data
|
Package projectproperties contains project properties dialog's data |
Package toolwindow contains game tool-windows' data
|
Package toolwindow contains game tool-windows' data |
console
Package console provides a graphical console for logging output while the app is running.
|
Package console provides a graphical console for logging output while the app is running. |
mpqexplorer
Package mpqexplorer contains an implementation of a MPQ archive explorer, which displays the archive contents as a tree.
|
Package mpqexplorer contains an implementation of a MPQ archive explorer, which displays the archive contents as a tree. |
projectexplorer
Package projectexplorer provides a project explorer, for viewing project directories as trees.
|
Package projectexplorer provides a project explorer, for viewing project directories as trees. |
Click to show internal directories.
Click to hide internal directories.