gioui.org: gioui.org/app/internal/window Index | Files

package window

import "gioui.org/app/internal/window"

Package window implements platform specific windows and GPU contexts.

Index

Package Files

egl_wayland.go egl_x11.go os_unix.go os_wayland.go os_x11.go window.go

func Main Uses

func Main()

func NewWindow Uses

func NewWindow(window Callbacks, opts *Options) error

type Callbacks Uses

type Callbacks interface {
    SetDriver(d Driver)
    Event(e event.Event)
}

type Context Uses

type Context interface {
    Functions() *glimpl.Functions
    Present() error
    MakeCurrent() error
    Release()
    Lock()
    Unlock()
}

type Driver Uses

type Driver interface {
    // SetAnimating sets the animation flag. When the window is animating,
    // FrameEvents are delivered as fast as the display can handle them.
    SetAnimating(anim bool)
    // ShowTextInput updates the virtual keyboard state.
    ShowTextInput(show bool)
    NewContext() (Context, error)
}

Driver is the interface for the platform implementation of a window.

type FrameEvent Uses

type FrameEvent struct {
    system.FrameEvent

    Sync bool
}

type Options Uses

type Options struct {
    Width, Height unit.Value
    Title         string
}

Package window imports 22 packages (graph) and is imported by 3 packages. Updated 2020-02-17. Refresh now. Tools for package owners.