Documentation ¶
Index ¶
- type App
- type Window
- func (w *Window) BeginDraw()
- func (w *Window) Close()
- func (w *Window) CloseEvent() bool
- func (w *Window) EndDraw()
- func (w *Window) GetDeltaTime() float32
- func (w *Window) GetFlags() uint32
- func (w *Window) GetMaxFPS() uint32
- func (w *Window) GetMaxSize() vec2.Type
- func (w *Window) GetMinSize() vec2.Type
- func (w *Window) GetSize() vec2.Type
- func (w *Window) Hide()
- func (w *Window) Maximize()
- func (w *Window) Minimize()
- func (w *Window) Open()
- func (w *Window) SetAlwaysOnTop(onTop bool)
- func (w *Window) SetFlags(flags uint32)
- func (w *Window) SetIcon(image image.Image)
- func (w *Window) SetMaxFPS(value uint32)
- func (w *Window) SetMaxSize(size vec2.Type)
- func (w *Window) SetMinSize(size vec2.Type)
- func (w *Window) SetSize(size vec2.Type)
- func (w *Window) Show()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) CloseEvent ¶
func (*Window) GetDeltaTime ¶
func (*Window) GetMaxSize ¶
func (*Window) GetMinSize ¶
func (*Window) SetAlwaysOnTop ¶
func (*Window) SetMaxSize ¶
func (*Window) SetMinSize ¶
Click to show internal directories.
Click to hide internal directories.