package windowing
Functions
DPI2PX
func DPI2PX(pixels, mm, targetMM int) int
Types
FileSearch
struct
type FileSearch struct {
Title string
Extension string
}
Window
struct
type Window struct {
Mouse hid.Mouse
Keyboard hid.Keyboard
Touch hid.Touch
Stylus hid.Stylus
Controller hid.Controller
Cursor hid.Cursor
Renderer rendering.Renderer
OnResize events.Event
OnMove events.Event
// Has unexported fields.
}
New
func New(windowName string, width, height, x, y int) (*Window, error)
Window.AddBorder
func (w *Window) AddBorder()
Window.Center
func (w *Window) Center() (x int, y int)
Window.ClipboardContents
func (w *Window) ClipboardContents() string
Window.CopyToClipboard
func (w *Window) CopyToClipboard(text string)
Window.CursorIbeam
func (w *Window) CursorIbeam()
Window.CursorSizeAll
func (w *Window) CursorSizeAll()
Window.CursorSizeNS
func (w *Window) CursorSizeNS()
Window.CursorSizeWE
func (w *Window) CursorSizeWE()
Window.CursorStandard
func (w *Window) CursorStandard()
Window.Destroy
func (w *Window) Destroy()
Window.EndUpdate
func (w *Window) EndUpdate()
Window.Focus
Window.GetDrawableSize
func (w *Window) GetDrawableSize() (int32, int32)
Window.GetInstanceExtensions
func (w *Window) GetInstanceExtensions() []string
Window.Height
func (w *Window) Height() int
Window.IsClosed
func (w *Window) IsClosed() bool
Window.IsCrashed
func (w *Window) IsCrashed() bool
Window.IsPCSize
func (w *Window) IsPCSize() bool
Window.IsPhoneSize
func (w *Window) IsPhoneSize() bool
Window.IsTabletSize
func (w *Window) IsTabletSize() bool
func (w *Window) PlatformInstance() unsafe.Pointer
func (w *Window) PlatformWindow() unsafe.Pointer
Window.Poll
Window.Position
func (w *Window) Position() (x int, y int)
Window.RemoveBorder
func (w *Window) RemoveBorder()
Window.SetPosition
func (w *Window) SetPosition(x, y int)
Window.SetSize
func (w *Window) SetSize(width, height int)
Window.SizeMM
func (w *Window) SizeMM() (int, int, error)
Window.SwapBuffers
func (w *Window) SwapBuffers()
Window.Viewport
func (w *Window) Viewport() matrix.Vec4
Window.Width
func (w *Window) Width() int
Window.X
Window.XY
func (w *Window) XY() (int, int)
Window.Y