window

package
v0.0.0-...-165de30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package window contains project's windows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 New

func New(title string, x, y float32) *Window

New creates new window

func (*Window) Build

func (t *Window) Build()

Build builds window

func (*Window) Cleanup

func (t *Window) Cleanup()

Cleanup hides window

func (*Window) IsVisible

func (t *Window) IsVisible() bool

IsVisible returns true if window is visible

func (*Window) KeyboardShortcuts

func (t *Window) KeyboardShortcuts() []giu.WindowShortcut

KeyboardShortcuts returns a list of local keyboard shortcuts

func (*Window) Pos

func (t *Window) Pos(x, y float32) *Window

func (*Window) RegisterKeyboardShortcuts

func (t *Window) RegisterKeyboardShortcuts(s ...giu.WindowShortcut)

RegisterKeyboardShortcuts sets a local shortcuts list

func (*Window) SetVisible

func (t *Window) SetVisible(visible bool)

SetVisible sets window's visibility

func (*Window) Show

func (t *Window) Show()

Show turns visibility to true

func (*Window) State

func (t *Window) State() state.WindowState

State returns window's state

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.

Jump to

Keyboard shortcuts

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