Documentation ¶
Index ¶
- func FormatFloat32(input float32) string
- func FormatFloat64(input float64) string
- func ParseFloat32(input string, def float32) float32
- type App
- type CameraSettings
- type ErrorDialog
- type FileSelect
- type IScreen
- type SceneUI
- func (s *SceneUI) CenterCamera()
- func (s *SceneUI) CurrentFixture() *fixture.Fixture
- func (s *SceneUI) Draw()
- func (s *SceneUI) DrawBounds()
- func (s *SceneUI) DrawFixtures()
- func (s *SceneUI) Initialize(app *App)
- func (s *SceneUI) Log() *logger.Logger
- func (s *SceneUI) NewRainbowMaterial(hue float64) *material.Standard
- func (s *SceneUI) Render(a *App)
- func (s *SceneUI) SetCorners()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFloat32 ¶
func FormatFloat64 ¶
func ParseFloat32 ¶
Types ¶
type App ¶
type App struct { *application.Application // Embedded standard application object // contains filtered or unexported fields }
func (*App) AddFinalizer ¶
func (app *App) AddFinalizer(f func())
AddFinalizer adds a function which will be executed before another screen is started
func (*App) ControlFolder ¶
func (app *App) ControlFolder() *gui.ControlFolder
ControlFolder returns the application control folder
func (*App) RunFinalizers ¶
func (app *App) RunFinalizers()
type CameraSettings ¶
type CameraSettings struct {
// contains filtered or unexported fields
}
func (*CameraSettings) Initialize ¶
func (s *CameraSettings) Initialize(a *App)
func (*CameraSettings) Render ¶
func (s *CameraSettings) Render(a *App)
type ErrorDialog ¶
func NewErrorDialog ¶
func NewErrorDialog(width, height float32) *ErrorDialog
func (*ErrorDialog) Show ¶
func (e *ErrorDialog) Show(msg string)
type FileSelect ¶
func NewFileSelect ¶
func NewFileSelect(width, height float32, relativeStartingPath string) (*FileSelect, error)
func (*FileSelect) Selected ¶
func (fs *FileSelect) Selected() (string, error)
func (*FileSelect) SetFilename ¶
func (fs *FileSelect) SetFilename(name string)
func (*FileSelect) SetPath ¶
func (fs *FileSelect) SetPath(path string) error
func (*FileSelect) SetTitle ¶
func (fs *FileSelect) SetTitle(title string)
func (*FileSelect) Show ¶
func (fs *FileSelect) Show(show bool)
Show shows or hide the file selection dialog
type SceneUI ¶
type SceneUI struct {
// contains filtered or unexported fields
}
func (*SceneUI) CenterCamera ¶
func (s *SceneUI) CenterCamera()
func (*SceneUI) CurrentFixture ¶
func (*SceneUI) DrawBounds ¶
func (s *SceneUI) DrawBounds()
func (*SceneUI) DrawFixtures ¶
func (s *SceneUI) DrawFixtures()
func (*SceneUI) Initialize ¶
func (*SceneUI) NewRainbowMaterial ¶
func (*SceneUI) SetCorners ¶
func (s *SceneUI) SetCorners()
Click to show internal directories.
Click to hide internal directories.