app

package
v0.0.0-...-e0df81a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	WindowList []Window
}

func New

func New() App

func (App) Close

func (app App) Close()

func (*App) NewWindow

func (app *App) NewWindow(name string, size vec2.Type) Window

type Window

type Window struct {
	Name string

	SDL *sdl.Window

	FLAG_RESIZABLE     uint32 // Allowes window to be resized
	FLAG_FULLSCREEN    uint32 // Makes window fullscreen
	FLAG_MINIMIZED     uint32 // Makes window minimized
	FLAG_MAXIMIZED     uint32 // Makes window maximized
	FLAG_BORDERLESS    uint32 // Removes window borders (Not recomended)
	FLAG_SHOW          uint32 // Showes the window
	FLAG_HIDE          uint32 // Hides the window
	FLAG_FOREIGN       uint32 // In case the window is made by another framework then SDL2
	FLAG_ALLOW_HIGHDPI uint32 // (Window should be created in high-DPI mode if supported)
	FLAG_ALWAYS_ON_TOP uint32 // Makes so the window is allways above other windows
	FLAG_UTILITY       uint32 // Makes so window is treated as a utility
	FLAG_TOOLTIP       uint32 // Makes so window is treated as a tooltip
	FLAG_POPUP_MENU    uint32 // Makes so window is treated as a popup menu
	// contains filtered or unexported fields
}

func (*Window) BeginDraw

func (w *Window) BeginDraw()

func (*Window) Close

func (w *Window) Close()

func (*Window) CloseEvent

func (w *Window) CloseEvent() bool

func (*Window) EndDraw

func (w *Window) EndDraw()

func (*Window) GetDeltaTime

func (w *Window) GetDeltaTime() float32

func (*Window) GetFlags

func (w *Window) GetFlags() uint32

func (*Window) GetMaxFPS

func (w *Window) GetMaxFPS() uint32

func (*Window) GetMaxSize

func (w *Window) GetMaxSize() vec2.Type

func (*Window) GetMinSize

func (w *Window) GetMinSize() vec2.Type

func (*Window) GetSize

func (w *Window) GetSize() vec2.Type

func (*Window) Hide

func (w *Window) Hide()

func (*Window) Maximize

func (w *Window) Maximize()

func (*Window) Minimize

func (w *Window) Minimize()

func (*Window) Open

func (w *Window) Open()

func (*Window) SetAlwaysOnTop

func (w *Window) SetAlwaysOnTop(onTop bool)

func (*Window) SetFlags

func (w *Window) SetFlags(flags uint32)

func (*Window) SetIcon

func (w *Window) SetIcon(image image.Image)

func (*Window) SetMaxFPS

func (w *Window) SetMaxFPS(value uint32)

func (*Window) SetMaxSize

func (w *Window) SetMaxSize(size vec2.Type)

func (*Window) SetMinSize

func (w *Window) SetMinSize(size vec2.Type)

func (*Window) SetSize

func (w *Window) SetSize(size vec2.Type)

func (*Window) Show

func (w *Window) Show()

Jump to

Keyboard shortcuts

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