Documentation ¶
Index ¶
- func Run(p Profile) error
- type DefaultProfile
- func (p DefaultProfile) End()
- func (p DefaultProfile) EventFocus(w *glfw.Window, focused bool)
- func (p DefaultProfile) EventKey(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...)
- func (p DefaultProfile) EventMouseKey(w *glfw.Window, key glfw.MouseButton, act glfw.Action, mod glfw.ModifierKey)
- func (p DefaultProfile) EventMousePos(w *glfw.Window, x float64, y float64)
- func (p DefaultProfile) EventRune(w *glfw.Window, char rune)
- func (p DefaultProfile) InitialSize() (int, int)
- func (p DefaultProfile) InitialTitle() string
- func (p DefaultProfile) PreCreation() error
- func (p DefaultProfile) Swap(w *glfw.Window) error
- type Profile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultProfile ¶
type DefaultProfile struct { }
func (DefaultProfile) End ¶
func (p DefaultProfile) End()
func (DefaultProfile) EventFocus ¶
func (p DefaultProfile) EventFocus(w *glfw.Window, focused bool)
func (DefaultProfile) EventKey ¶
func (p DefaultProfile) EventKey(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)
func (DefaultProfile) EventMouseKey ¶
func (p DefaultProfile) EventMouseKey(w *glfw.Window, key glfw.MouseButton, act glfw.Action, mod glfw.ModifierKey)
func (DefaultProfile) EventMousePos ¶
func (p DefaultProfile) EventMousePos(w *glfw.Window, x float64, y float64)
func (DefaultProfile) InitialSize ¶
func (p DefaultProfile) InitialSize() (int, int)
func (DefaultProfile) InitialTitle ¶
func (p DefaultProfile) InitialTitle() string
func (DefaultProfile) PreCreation ¶
func (p DefaultProfile) PreCreation() error
type Profile ¶
type Profile interface { InitialSize() (width int, height int) InitialTitle() string PreCreation() error PostCreation(w *glfw.Window) error EventFocus(w *glfw.Window, focused bool) EventResize(w *glfw.Window, width int, height int) EventMousePos(w *glfw.Window, x float64, y float64) EventMouseKey(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey) EventKey(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) EventRune(w *glfw.Window, char rune) Draw(w *glfw.Window) error Swap(w *glfw.Window) error End() }
Click to show internal directories.
Click to hide internal directories.