Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScreenWidth = 720 ScreenHeight = 1024 )
Variables ¶
This section is empty.
Functions ¶
func CreateKeyController ¶
func CreateKeyController(handler KeyHandler) *gtk.EventControllerKey
func NewGameWidget ¶
func NewGameWidget(parent GJumpWindow, g gameCallbacks) gtk.Widgetter
func NewMenuWidget ¶
func NewMenuWidget(parent GJumpWindow) gtk.Widgetter
Types ¶
type GJumpWindow ¶
type GJumpWindow interface { LoadWidget(widget gtk.Widgetter) ConnectKeyEvents(handler KeyHandler) QuitApp() }
func NewWindow ¶
func NewWindow(app *gtk.Application) GJumpWindow
type GameWidget ¶
type GameWidget struct {
// contains filtered or unexported fields
}
type KeyHandler ¶
type Window ¶
type Window struct {
*gtk.ApplicationWindow
}
func (*Window) ConnectKeyEvents ¶
func (window *Window) ConnectKeyEvents(handler KeyHandler)
func (*Window) LoadWidget ¶
func (window *Window) LoadWidget(widget gtk.Widgetter)
Click to show internal directories.
Click to hide internal directories.