Documentation ¶
Index ¶
- func TempFile(size int64) (*os.File, error)
- type BGRA
- func (p *BGRA) At(x, y int) color.Color
- func (p *BGRA) Bounds() image.Rectangle
- func (p *BGRA) ColorModel() color.Model
- func (p *BGRA) Opaque() bool
- func (p *BGRA) Painter() *BGRAPainter
- func (p *BGRA) PixOffset(x, y int) int
- func (p *BGRA) RGBAAt(x, y int) color.RGBA
- func (p *BGRA) Set(x, y int, c color.Color)
- func (p *BGRA) SetRGBA(x, y int, c color.RGBA)
- func (p *BGRA) SubImage(r image.Rectangle) image.Image
- type BGRAPainter
- type Config
- type Display
- func (d *Display) Context() *wl.Context
- func (d *Display) Disconnect()
- func (d *Display) Dispatch() chan<- struct{}
- func (d *Display) FindWindow() *Window
- func (d *Display) HandleDisplayError(ev wl.DisplayErrorEvent)
- func (d *Display) HandleWmBasePing(ev xdg.WmBasePingEvent)
- func (d *Display) Keyboard() *wl.Keyboard
- func (d *Display) NewWindow(width, height int32) (*Window, error)
- func (d *Display) Pointer() *wl.Pointer
- func (d *Display) Touch() *wl.Touch
- type Window
- func (w *Window) Dispose()
- func (w *Window) Draw(img image.Image)
- func (w *Window) DrawUsingFunc(fn func(*BGRA))
- func (w *Window) HandleShellSurfacePing(ev wl.ShellSurfacePingEvent)
- func (w *Window) HandleSurfaceConfigure(ev xdg.SurfaceConfigureEvent)
- func (w *Window) HandleToplevelClose(ev xdg.ToplevelCloseEvent)
- func (w *Window) HandleToplevelConfigure(ev xdg.ToplevelConfigureEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BGRA ¶
BGRA is like RGBA but in wayland's byte order
func (*BGRA) ColorModel ¶
func (*BGRA) Painter ¶
func (p *BGRA) Painter() *BGRAPainter
type BGRAPainter ¶
type BGRAPainter struct {
// contains filtered or unexported fields
}
a BGRAPainter is used to interface with the freetype renderer and raster library
func (*BGRAPainter) SetColor ¶
func (p *BGRAPainter) SetColor(c color.Color)
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func (*Display) Disconnect ¶
func (d *Display) Disconnect()
func (*Display) HandleDisplayError ¶
func (d *Display) HandleDisplayError(ev wl.DisplayErrorEvent)
func (*Display) HandleWmBasePing ¶
func (d *Display) HandleWmBasePing(ev xdg.WmBasePingEvent)
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) DrawUsingFunc ¶
func (*Window) HandleShellSurfacePing ¶
func (w *Window) HandleShellSurfacePing(ev wl.ShellSurfacePingEvent)
func (*Window) HandleSurfaceConfigure ¶
func (w *Window) HandleSurfaceConfigure(ev xdg.SurfaceConfigureEvent)
func (*Window) HandleToplevelClose ¶
func (w *Window) HandleToplevelClose(ev xdg.ToplevelCloseEvent)
the compositor wants the surface to be closed, based on user action
func (*Window) HandleToplevelConfigure ¶
func (w *Window) HandleToplevelConfigure(ev xdg.ToplevelConfigureEvent)
Click to show internal directories.
Click to hide internal directories.