Documentation
¶
Index ¶
- Variables
- func DataDir() (string, error)
- func Events(yield func(event.Event) bool)
- func Main()
- func NewContext(ops *op.Ops, e FrameEvent) layout.Context
- type Config
- type ConfigEvent
- type DestroyEvent
- type FrameEvent
- type Insets
- type Option
- type Orientation
- type URLEvent
- type ViewEvent
- type WaylandViewEvent
- type Window
- type WindowMode
- type X11ViewEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ID = ""
Functions ¶
func NewContext ¶
func NewContext(ops *op.Ops, e FrameEvent) layout.Context
Types ¶
type ConfigEvent ¶
type ConfigEvent struct {
Config Config
}
func (ConfigEvent) ImplementsEvent ¶
func (ConfigEvent) ImplementsEvent()
type DestroyEvent ¶
type DestroyEvent struct {
Err error
}
func (DestroyEvent) ImplementsEvent ¶
func (DestroyEvent) ImplementsEvent()
type FrameEvent ¶
type FrameEvent struct {
Now time.Time
Metric unit.Metric
Size image.Point
Insets Insets
Frame func(frame *op.Ops)
Source input.Source
}
func (FrameEvent) ImplementsEvent ¶
func (FrameEvent) ImplementsEvent()
type Orientation ¶
type Orientation uint8
const ( AnyOrientation Orientation = iota LandscapeOrientation PortraitOrientation )
func (Orientation) Option ¶
func (o Orientation) Option() Option
func (Orientation) String ¶
func (o Orientation) String() string
type URLEvent ¶
func (URLEvent) ImplementsEvent ¶
func (URLEvent) ImplementsEvent()
type ViewEvent ¶
type ViewEvent interface {
ImplementsEvent()
Valid() bool
// contains filtered or unexported methods
}
type WaylandViewEvent ¶
func (WaylandViewEvent) ImplementsEvent ¶
func (WaylandViewEvent) ImplementsEvent()
func (WaylandViewEvent) Valid ¶
func (w WaylandViewEvent) Valid() bool
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) Invalidate ¶
func (w *Window) Invalidate()
type WindowMode ¶
type WindowMode uint8
const ( Windowed WindowMode = iota Fullscreen Minimized Maximized )
func (WindowMode) Option ¶
func (m WindowMode) Option() Option
func (WindowMode) String ¶
func (m WindowMode) String() string
type X11ViewEvent ¶
func (X11ViewEvent) ImplementsEvent ¶
func (X11ViewEvent) ImplementsEvent()
func (X11ViewEvent) Valid ¶
func (x X11ViewEvent) Valid() bool
Source Files
¶
Click to show internal directories.
Click to hide internal directories.