Documentation ¶
Overview ¶
generated by wl-scanner https://github.com/sternix/wl-scanner
Index ¶
- Constants
- func Float64bits(f float64) uint64
- func Float64frombits(b uint64) float64
- type BaseProxy
- type Buffer
- type BufferReleaseEvent
- type BytePool
- type Callback
- type CallbackDoneEvent
- type Compositor
- type Context
- type DataDevice
- func (p *DataDevice) AddDataOfferHandler(h Handler)
- func (p *DataDevice) AddDropHandler(h Handler)
- func (p *DataDevice) AddEnterHandler(h Handler)
- func (p *DataDevice) AddLeaveHandler(h Handler)
- func (p *DataDevice) AddMotionHandler(h Handler)
- func (p *DataDevice) AddSelectionHandler(h Handler)
- func (p *DataDevice) Dispatch(event *Event)
- func (p *DataDevice) Release() error
- func (p *DataDevice) RemoveDataOfferHandler(h Handler)
- func (p *DataDevice) RemoveDropHandler(h Handler)
- func (p *DataDevice) RemoveEnterHandler(h Handler)
- func (p *DataDevice) RemoveLeaveHandler(h Handler)
- func (p *DataDevice) RemoveMotionHandler(h Handler)
- func (p *DataDevice) RemoveSelectionHandler(h Handler)
- func (p *DataDevice) SetSelection(source *DataSource, serial uint32) error
- func (p *DataDevice) StartDrag(source *DataSource, origin *Surface, icon *Surface, serial uint32) error
- type DataDeviceDataOfferEvent
- type DataDeviceDropEvent
- type DataDeviceEnterEvent
- type DataDeviceLeaveEvent
- type DataDeviceManager
- type DataDeviceMotionEvent
- type DataDeviceSelectionEvent
- type DataOffer
- func (p *DataOffer) Accept(serial uint32, mime_type string) error
- func (p *DataOffer) AddActionHandler(h Handler)
- func (p *DataOffer) AddOfferHandler(h Handler)
- func (p *DataOffer) AddSourceActionsHandler(h Handler)
- func (p *DataOffer) Destroy() error
- func (p *DataOffer) Dispatch(event *Event)
- func (p *DataOffer) Finish() error
- func (p *DataOffer) Receive(mime_type string, fd uintptr) error
- func (p *DataOffer) RemoveActionHandler(h Handler)
- func (p *DataOffer) RemoveOfferHandler(h Handler)
- func (p *DataOffer) RemoveSourceActionsHandler(h Handler)
- func (p *DataOffer) SetActions(dnd_actions uint32, preferred_action uint32) error
- type DataOfferActionEvent
- type DataOfferOfferEvent
- type DataOfferSourceActionsEvent
- type DataSource
- func (p *DataSource) AddActionHandler(h Handler)
- func (p *DataSource) AddCancelledHandler(h Handler)
- func (p *DataSource) AddDndDropPerformedHandler(h Handler)
- func (p *DataSource) AddDndFinishedHandler(h Handler)
- func (p *DataSource) AddSendHandler(h Handler)
- func (p *DataSource) AddTargetHandler(h Handler)
- func (p *DataSource) Destroy() error
- func (p *DataSource) Dispatch(event *Event)
- func (p *DataSource) Offer(mime_type string) error
- func (p *DataSource) RemoveActionHandler(h Handler)
- func (p *DataSource) RemoveCancelledHandler(h Handler)
- func (p *DataSource) RemoveDndDropPerformedHandler(h Handler)
- func (p *DataSource) RemoveDndFinishedHandler(h Handler)
- func (p *DataSource) RemoveSendHandler(h Handler)
- func (p *DataSource) RemoveTargetHandler(h Handler)
- func (p *DataSource) SetActions(dnd_actions uint32) error
- type DataSourceActionEvent
- type DataSourceCancelledEvent
- type DataSourceDndDropPerformedEvent
- type DataSourceDndFinishedEvent
- type DataSourceSendEvent
- type DataSourceTargetEvent
- type Dispatcher
- type Display
- func (p *Display) AddDeleteIdHandler(h Handler)
- func (p *Display) AddErrorHandler(h Handler)
- func (p *Display) Dispatch(event *Event)
- func (p *Display) GetRegistry() (*Registry, error)
- func (p *Display) RemoveDeleteIdHandler(h Handler)
- func (p *Display) RemoveErrorHandler(h Handler)
- func (p *Display) Sync() (*Callback, error)
- type DisplayDeleteIdEvent
- type DisplayErrorEvent
- type Event
- type Handler
- type Keyboard
- func (p *Keyboard) AddEnterHandler(h Handler)
- func (p *Keyboard) AddKeyHandler(h Handler)
- func (p *Keyboard) AddKeymapHandler(h Handler)
- func (p *Keyboard) AddLeaveHandler(h Handler)
- func (p *Keyboard) AddModifiersHandler(h Handler)
- func (p *Keyboard) AddRepeatInfoHandler(h Handler)
- func (p *Keyboard) Dispatch(event *Event)
- func (p *Keyboard) Release() error
- func (p *Keyboard) RemoveEnterHandler(h Handler)
- func (p *Keyboard) RemoveKeyHandler(h Handler)
- func (p *Keyboard) RemoveKeymapHandler(h Handler)
- func (p *Keyboard) RemoveLeaveHandler(h Handler)
- func (p *Keyboard) RemoveModifiersHandler(h Handler)
- func (p *Keyboard) RemoveRepeatInfoHandler(h Handler)
- type KeyboardEnterEvent
- type KeyboardKeyEvent
- type KeyboardKeymapEvent
- type KeyboardLeaveEvent
- type KeyboardModifiersEvent
- type KeyboardRepeatInfoEvent
- type Output
- func (p *Output) AddDoneHandler(h Handler)
- func (p *Output) AddGeometryHandler(h Handler)
- func (p *Output) AddModeHandler(h Handler)
- func (p *Output) AddScaleHandler(h Handler)
- func (p *Output) Dispatch(event *Event)
- func (p *Output) Release() error
- func (p *Output) RemoveDoneHandler(h Handler)
- func (p *Output) RemoveGeometryHandler(h Handler)
- func (p *Output) RemoveModeHandler(h Handler)
- func (p *Output) RemoveScaleHandler(h Handler)
- type OutputDoneEvent
- type OutputGeometryEvent
- type OutputModeEvent
- type OutputScaleEvent
- type Pointer
- func (p *Pointer) AddAxisDiscreteHandler(h Handler)
- func (p *Pointer) AddAxisHandler(h Handler)
- func (p *Pointer) AddAxisSourceHandler(h Handler)
- func (p *Pointer) AddAxisStopHandler(h Handler)
- func (p *Pointer) AddButtonHandler(h Handler)
- func (p *Pointer) AddEnterHandler(h Handler)
- func (p *Pointer) AddFrameHandler(h Handler)
- func (p *Pointer) AddLeaveHandler(h Handler)
- func (p *Pointer) AddMotionHandler(h Handler)
- func (p *Pointer) Dispatch(event *Event)
- func (p *Pointer) Release() error
- func (p *Pointer) RemoveAxisDiscreteHandler(h Handler)
- func (p *Pointer) RemoveAxisHandler(h Handler)
- func (p *Pointer) RemoveAxisSourceHandler(h Handler)
- func (p *Pointer) RemoveAxisStopHandler(h Handler)
- func (p *Pointer) RemoveButtonHandler(h Handler)
- func (p *Pointer) RemoveEnterHandler(h Handler)
- func (p *Pointer) RemoveFrameHandler(h Handler)
- func (p *Pointer) RemoveLeaveHandler(h Handler)
- func (p *Pointer) RemoveMotionHandler(h Handler)
- func (p *Pointer) SetCursor(serial uint32, surface *Surface, hotspot_x int32, hotspot_y int32) error
- type PointerAxisDiscreteEvent
- type PointerAxisEvent
- type PointerAxisSourceEvent
- type PointerAxisStopEvent
- type PointerButtonEvent
- type PointerEnterEvent
- type PointerFrameEvent
- type PointerLeaveEvent
- type PointerMotionEvent
- type Proxy
- type ProxyId
- type Region
- type Registry
- func (p *Registry) AddGlobalHandler(h Handler)
- func (p *Registry) AddGlobalRemoveHandler(h Handler)
- func (p *Registry) Bind(name uint32, iface string, version uint32, id Proxy) error
- func (p *Registry) Dispatch(event *Event)
- func (p *Registry) RemoveGlobalHandler(h Handler)
- func (p *Registry) RemoveGlobalRemoveHandler(h Handler)
- type RegistryGlobalEvent
- type RegistryGlobalRemoveEvent
- type Request
- func (r *Request) PutArray(a []int32)
- func (r *Request) PutFd(fd uintptr)
- func (r *Request) PutFloat32(f float32)
- func (r *Request) PutInt32(i int32)
- func (r *Request) PutProxy(p Proxy)
- func (r *Request) PutString(s string)
- func (r *Request) PutUint32(u uint32)
- func (r *Request) Write(arg interface{})
- type Seat
- func (p *Seat) AddCapabilitiesHandler(h Handler)
- func (p *Seat) AddNameHandler(h Handler)
- func (p *Seat) Dispatch(event *Event)
- func (p *Seat) GetKeyboard() (*Keyboard, error)
- func (p *Seat) GetPointer() (*Pointer, error)
- func (p *Seat) GetTouch() (*Touch, error)
- func (p *Seat) Release() error
- func (p *Seat) RemoveCapabilitiesHandler(h Handler)
- func (p *Seat) RemoveNameHandler(h Handler)
- type SeatCapabilitiesEvent
- type SeatNameEvent
- type Shell
- type ShellSurface
- func (p *ShellSurface) AddConfigureHandler(h Handler)
- func (p *ShellSurface) AddPingHandler(h Handler)
- func (p *ShellSurface) AddPopupDoneHandler(h Handler)
- func (p *ShellSurface) Dispatch(event *Event)
- func (p *ShellSurface) Move(seat *Seat, serial uint32) error
- func (p *ShellSurface) Pong(serial uint32) error
- func (p *ShellSurface) RemoveConfigureHandler(h Handler)
- func (p *ShellSurface) RemovePingHandler(h Handler)
- func (p *ShellSurface) RemovePopupDoneHandler(h Handler)
- func (p *ShellSurface) Resize(seat *Seat, serial uint32, edges uint32) error
- func (p *ShellSurface) SetClass(class_ string) error
- func (p *ShellSurface) SetFullscreen(method uint32, framerate uint32, output *Output) error
- func (p *ShellSurface) SetMaximized(output *Output) error
- func (p *ShellSurface) SetPopup(seat *Seat, serial uint32, parent *Surface, x int32, y int32, flags uint32) error
- func (p *ShellSurface) SetTitle(title string) error
- func (p *ShellSurface) SetToplevel() error
- func (p *ShellSurface) SetTransient(parent *Surface, x int32, y int32, flags uint32) error
- type ShellSurfaceConfigureEvent
- type ShellSurfacePingEvent
- type ShellSurfacePopupDoneEvent
- type Shm
- type ShmFormatEvent
- type ShmPool
- type Subcompositor
- type Subsurface
- type Surface
- func (p *Surface) AddEnterHandler(h Handler)
- func (p *Surface) AddLeaveHandler(h Handler)
- func (p *Surface) Attach(buffer *Buffer, x int32, y int32) error
- func (p *Surface) Commit() error
- func (p *Surface) Damage(x int32, y int32, width int32, height int32) error
- func (p *Surface) DamageBuffer(x int32, y int32, width int32, height int32) error
- func (p *Surface) Destroy() error
- func (p *Surface) Dispatch(event *Event)
- func (p *Surface) Frame() (*Callback, error)
- func (p *Surface) RemoveEnterHandler(h Handler)
- func (p *Surface) RemoveLeaveHandler(h Handler)
- func (p *Surface) SetBufferScale(scale int32) error
- func (p *Surface) SetBufferTransform(transform int32) error
- func (p *Surface) SetInputRegion(region *Region) error
- func (p *Surface) SetOpaqueRegion(region *Region) error
- type SurfaceEnterEvent
- type SurfaceLeaveEvent
- type TextCursorPosition
- type Touch
- func (p *Touch) AddCancelHandler(h Handler)
- func (p *Touch) AddDownHandler(h Handler)
- func (p *Touch) AddFrameHandler(h Handler)
- func (p *Touch) AddMotionHandler(h Handler)
- func (p *Touch) AddOrientationHandler(h Handler)
- func (p *Touch) AddShapeHandler(h Handler)
- func (p *Touch) AddUpHandler(h Handler)
- func (p *Touch) Dispatch(event *Event)
- func (p *Touch) Release() error
- func (p *Touch) RemoveCancelHandler(h Handler)
- func (p *Touch) RemoveDownHandler(h Handler)
- func (p *Touch) RemoveFrameHandler(h Handler)
- func (p *Touch) RemoveMotionHandler(h Handler)
- func (p *Touch) RemoveOrientationHandler(h Handler)
- func (p *Touch) RemoveShapeHandler(h Handler)
- func (p *Touch) RemoveUpHandler(h Handler)
- type TouchCancelEvent
- type TouchDownEvent
- type TouchFrameEvent
- type TouchMotionEvent
- type TouchOrientationEvent
- type TouchShapeEvent
- type TouchUpEvent
- type WestonScreenshooter
- type WestonScreenshooterDoneEvent
Constants ¶
View Source
const ( DisplayErrorInvalidObject = 0 DisplayErrorInvalidMethod = 1 DisplayErrorNoMemory = 2 )
View Source
const ( ShmErrorInvalidFormat = 0 ShmErrorInvalidStride = 1 ShmErrorInvalidFd = 2 )
View Source
const ( ShmFormatArgb8888 = 0 ShmFormatXrgb8888 = 1 ShmFormatC8 = 0x20203843 ShmFormatRgb332 = 0x38424752 ShmFormatBgr233 = 0x38524742 ShmFormatXrgb4444 = 0x32315258 ShmFormatXbgr4444 = 0x32314258 ShmFormatRgbx4444 = 0x32315852 ShmFormatBgrx4444 = 0x32315842 ShmFormatArgb4444 = 0x32315241 ShmFormatAbgr4444 = 0x32314241 ShmFormatRgba4444 = 0x32314152 ShmFormatBgra4444 = 0x32314142 ShmFormatXrgb1555 = 0x35315258 ShmFormatXbgr1555 = 0x35314258 ShmFormatRgbx5551 = 0x35315852 ShmFormatBgrx5551 = 0x35315842 ShmFormatArgb1555 = 0x35315241 ShmFormatAbgr1555 = 0x35314241 ShmFormatRgba5551 = 0x35314152 ShmFormatBgra5551 = 0x35314142 ShmFormatRgb565 = 0x36314752 ShmFormatBgr565 = 0x36314742 ShmFormatRgb888 = 0x34324752 ShmFormatBgr888 = 0x34324742 ShmFormatXbgr8888 = 0x34324258 ShmFormatRgbx8888 = 0x34325852 ShmFormatBgrx8888 = 0x34325842 ShmFormatAbgr8888 = 0x34324241 ShmFormatRgba8888 = 0x34324152 ShmFormatBgra8888 = 0x34324142 ShmFormatXrgb2101010 = 0x30335258 ShmFormatXbgr2101010 = 0x30334258 ShmFormatRgbx1010102 = 0x30335852 ShmFormatBgrx1010102 = 0x30335842 ShmFormatArgb2101010 = 0x30335241 ShmFormatAbgr2101010 = 0x30334241 ShmFormatRgba1010102 = 0x30334152 ShmFormatBgra1010102 = 0x30334142 ShmFormatYuyv = 0x56595559 ShmFormatYvyu = 0x55595659 ShmFormatUyvy = 0x59565955 ShmFormatVyuy = 0x59555956 ShmFormatAyuv = 0x56555941 ShmFormatNv12 = 0x3231564e ShmFormatNv21 = 0x3132564e ShmFormatNv16 = 0x3631564e ShmFormatNv61 = 0x3136564e ShmFormatYuv410 = 0x39565559 ShmFormatYvu410 = 0x39555659 ShmFormatYuv411 = 0x31315559 ShmFormatYvu411 = 0x31315659 ShmFormatYuv420 = 0x32315559 ShmFormatYvu420 = 0x32315659 ShmFormatYuv422 = 0x36315559 ShmFormatYvu422 = 0x36315659 ShmFormatYuv444 = 0x34325559 ShmFormatYvu444 = 0x34325659 )
View Source
const ( DataOfferErrorInvalidFinish = 0 DataOfferErrorInvalidActionMask = 1 DataOfferErrorInvalidAction = 2 DataOfferErrorInvalidOffer = 3 )
View Source
const ( DataSourceErrorInvalidActionMask = 0 DataSourceErrorInvalidSource = 1 )
View Source
const ( DataDeviceManagerDndActionNone = 0 DataDeviceManagerDndActionCopy = 1 DataDeviceManagerDndActionMove = 2 DataDeviceManagerDndActionAsk = 4 )
View Source
const ( ShellSurfaceResizeNone = 0 ShellSurfaceResizeTop = 1 ShellSurfaceResizeBottom = 2 ShellSurfaceResizeLeft = 4 ShellSurfaceResizeTopLeft = 5 ShellSurfaceResizeBottomLeft = 6 ShellSurfaceResizeRight = 8 ShellSurfaceResizeTopRight = 9 ShellSurfaceResizeBottomRight = 10 )
View Source
const ( ShellSurfaceFullscreenMethodDefault = 0 ShellSurfaceFullscreenMethodScale = 1 ShellSurfaceFullscreenMethodDriver = 2 ShellSurfaceFullscreenMethodFill = 3 )
View Source
const ( SurfaceErrorInvalidScale = 0 SurfaceErrorInvalidTransform = 1 )
View Source
const ( SeatCapabilityPointer = 1 SeatCapabilityKeyboard = 2 SeatCapabilityTouch = 4 )
View Source
const ( PointerButtonStateReleased = 0 PointerButtonStatePressed = 1 )
View Source
const ( PointerAxisVerticalScroll = 0 PointerAxisHorizontalScroll = 1 )
View Source
const ( PointerAxisSourceWheel = 0 PointerAxisSourceFinger = 1 PointerAxisSourceContinuous = 2 PointerAxisSourceWheelTilt = 3 )
View Source
const ( KeyboardKeymapFormatNoKeymap = 0 KeyboardKeymapFormatXkbV1 = 1 )
View Source
const ( KeyboardKeyStateReleased = 0 KeyboardKeyStatePressed = 1 )
View Source
const ( OutputSubpixelUnknown = 0 OutputSubpixelNone = 1 OutputSubpixelHorizontalRgb = 2 OutputSubpixelHorizontalBgr = 3 OutputSubpixelVerticalRgb = 4 OutputSubpixelVerticalBgr = 5 )
View Source
const ( OutputTransformNormal = 0 OutputTransform90 = 1 OutputTransform180 = 2 OutputTransform270 = 3 OutputTransformFlipped = 4 OutputTransformFlipped90 = 5 OutputTransformFlipped180 = 6 OutputTransformFlipped270 = 7 )
View Source
const ( OutputModeCurrent = 0x1 OutputModePreferred = 0x2 )
View Source
const (
DataDeviceErrorRole = 0
)
View Source
const (
PointerErrorRole = 0
)
View Source
const (
ShellErrorRole = 0
)
View Source
const (
ShellSurfaceTransientInactive = 0x1
)
View Source
const (
SubcompositorErrorBadSurface = 0
)
View Source
const (
SubsurfaceErrorBadSurface = 0
)
Variables ¶
This section is empty.
Functions ¶
func Float64bits ¶
func Float64frombits ¶
Types ¶
type BaseProxy ¶
type BaseProxy struct {
// contains filtered or unexported fields
}
func (*BaseProxy) SetContext ¶
type Buffer ¶
type Buffer struct { BaseProxy // contains filtered or unexported fields }
func (*Buffer) AddReleaseHandler ¶
func (*Buffer) RemoveReleaseHandler ¶
type BufferReleaseEvent ¶
type BufferReleaseEvent struct { }
type Callback ¶
type Callback struct { BaseProxy // contains filtered or unexported fields }
func NewCallback ¶
func (*Callback) AddDoneHandler ¶
func (*Callback) RemoveDoneHandler ¶
type CallbackDoneEvent ¶
type CallbackDoneEvent struct {
CallbackData uint32
}
type Compositor ¶
type Compositor struct {
BaseProxy
}
func NewCompositor ¶
func NewCompositor(ctx *Context) *Compositor
func (*Compositor) CreateRegion ¶
func (p *Compositor) CreateRegion() (*Region, error)
func (*Compositor) CreateSurface ¶
func (p *Compositor) CreateSurface() (*Surface, error)
type DataDevice ¶
type DataDevice struct { BaseProxy // contains filtered or unexported fields }
func NewDataDevice ¶
func NewDataDevice(ctx *Context) *DataDevice
func (*DataDevice) AddDataOfferHandler ¶
func (p *DataDevice) AddDataOfferHandler(h Handler)
func (*DataDevice) AddDropHandler ¶
func (p *DataDevice) AddDropHandler(h Handler)
func (*DataDevice) AddEnterHandler ¶
func (p *DataDevice) AddEnterHandler(h Handler)
func (*DataDevice) AddLeaveHandler ¶
func (p *DataDevice) AddLeaveHandler(h Handler)
func (*DataDevice) AddMotionHandler ¶
func (p *DataDevice) AddMotionHandler(h Handler)
func (*DataDevice) AddSelectionHandler ¶
func (p *DataDevice) AddSelectionHandler(h Handler)
func (*DataDevice) Dispatch ¶
func (p *DataDevice) Dispatch(event *Event)
func (*DataDevice) Release ¶
func (p *DataDevice) Release() error
func (*DataDevice) RemoveDataOfferHandler ¶
func (p *DataDevice) RemoveDataOfferHandler(h Handler)
func (*DataDevice) RemoveDropHandler ¶
func (p *DataDevice) RemoveDropHandler(h Handler)
func (*DataDevice) RemoveEnterHandler ¶
func (p *DataDevice) RemoveEnterHandler(h Handler)
func (*DataDevice) RemoveLeaveHandler ¶
func (p *DataDevice) RemoveLeaveHandler(h Handler)
func (*DataDevice) RemoveMotionHandler ¶
func (p *DataDevice) RemoveMotionHandler(h Handler)
func (*DataDevice) RemoveSelectionHandler ¶
func (p *DataDevice) RemoveSelectionHandler(h Handler)
func (*DataDevice) SetSelection ¶
func (p *DataDevice) SetSelection(source *DataSource, serial uint32) error
func (*DataDevice) StartDrag ¶
func (p *DataDevice) StartDrag(source *DataSource, origin *Surface, icon *Surface, serial uint32) error
type DataDeviceDataOfferEvent ¶
type DataDeviceDataOfferEvent struct {
Id *DataOffer
}
type DataDeviceDropEvent ¶
type DataDeviceDropEvent struct { }
type DataDeviceEnterEvent ¶
type DataDeviceLeaveEvent ¶
type DataDeviceLeaveEvent struct { }
type DataDeviceManager ¶
type DataDeviceManager struct {
BaseProxy
}
func NewDataDeviceManager ¶
func NewDataDeviceManager(ctx *Context) *DataDeviceManager
func (*DataDeviceManager) CreateDataSource ¶
func (p *DataDeviceManager) CreateDataSource() (*DataSource, error)
func (*DataDeviceManager) GetDataDevice ¶
func (p *DataDeviceManager) GetDataDevice(seat *Seat) (*DataDevice, error)
type DataDeviceMotionEvent ¶
type DataDeviceSelectionEvent ¶
type DataDeviceSelectionEvent struct {
Id *DataOffer
}
type DataOffer ¶
type DataOffer struct { BaseProxy // contains filtered or unexported fields }
func NewDataOffer ¶
func (*DataOffer) AddActionHandler ¶
func (*DataOffer) AddOfferHandler ¶
func (*DataOffer) AddSourceActionsHandler ¶
func (*DataOffer) RemoveActionHandler ¶
func (*DataOffer) RemoveOfferHandler ¶
func (*DataOffer) RemoveSourceActionsHandler ¶
type DataOfferActionEvent ¶
type DataOfferActionEvent struct {
DndAction uint32
}
type DataOfferOfferEvent ¶
type DataOfferOfferEvent struct {
MimeType string
}
type DataOfferSourceActionsEvent ¶
type DataOfferSourceActionsEvent struct {
SourceActions uint32
}
type DataSource ¶
type DataSource struct { BaseProxy // contains filtered or unexported fields }
func NewDataSource ¶
func NewDataSource(ctx *Context) *DataSource
func (*DataSource) AddActionHandler ¶
func (p *DataSource) AddActionHandler(h Handler)
func (*DataSource) AddCancelledHandler ¶
func (p *DataSource) AddCancelledHandler(h Handler)
func (*DataSource) AddDndDropPerformedHandler ¶
func (p *DataSource) AddDndDropPerformedHandler(h Handler)
func (*DataSource) AddDndFinishedHandler ¶
func (p *DataSource) AddDndFinishedHandler(h Handler)
func (*DataSource) AddSendHandler ¶
func (p *DataSource) AddSendHandler(h Handler)
func (*DataSource) AddTargetHandler ¶
func (p *DataSource) AddTargetHandler(h Handler)
func (*DataSource) Destroy ¶
func (p *DataSource) Destroy() error
func (*DataSource) Dispatch ¶
func (p *DataSource) Dispatch(event *Event)
func (*DataSource) Offer ¶
func (p *DataSource) Offer(mime_type string) error
func (*DataSource) RemoveActionHandler ¶
func (p *DataSource) RemoveActionHandler(h Handler)
func (*DataSource) RemoveCancelledHandler ¶
func (p *DataSource) RemoveCancelledHandler(h Handler)
func (*DataSource) RemoveDndDropPerformedHandler ¶
func (p *DataSource) RemoveDndDropPerformedHandler(h Handler)
func (*DataSource) RemoveDndFinishedHandler ¶
func (p *DataSource) RemoveDndFinishedHandler(h Handler)
func (*DataSource) RemoveSendHandler ¶
func (p *DataSource) RemoveSendHandler(h Handler)
func (*DataSource) RemoveTargetHandler ¶
func (p *DataSource) RemoveTargetHandler(h Handler)
func (*DataSource) SetActions ¶
func (p *DataSource) SetActions(dnd_actions uint32) error
type DataSourceActionEvent ¶
type DataSourceActionEvent struct {
DndAction uint32
}
type DataSourceCancelledEvent ¶
type DataSourceCancelledEvent struct { }
type DataSourceDndDropPerformedEvent ¶
type DataSourceDndDropPerformedEvent struct { }
type DataSourceDndFinishedEvent ¶
type DataSourceDndFinishedEvent struct { }
type DataSourceSendEvent ¶
type DataSourceTargetEvent ¶
type DataSourceTargetEvent struct {
MimeType string
}
type Dispatcher ¶
type Dispatcher interface {
Dispatch(*Event)
}
type Display ¶
type Display struct { BaseProxy // contains filtered or unexported fields }
func NewDisplay ¶
func (*Display) AddDeleteIdHandler ¶
func (*Display) AddErrorHandler ¶
func (*Display) GetRegistry ¶
func (*Display) RemoveDeleteIdHandler ¶
func (*Display) RemoveErrorHandler ¶
type DisplayDeleteIdEvent ¶
type DisplayDeleteIdEvent struct {
Id uint32
}
type DisplayErrorEvent ¶
type Handler ¶
type Handler interface {
Handle(ev interface{})
}
func HandlerFunc ¶
func HandlerFunc(f func(interface{})) Handler
type Keyboard ¶
type Keyboard struct { BaseProxy // contains filtered or unexported fields }
func NewKeyboard ¶
func (*Keyboard) AddEnterHandler ¶
func (*Keyboard) AddKeyHandler ¶
func (*Keyboard) AddKeymapHandler ¶
func (*Keyboard) AddLeaveHandler ¶
func (*Keyboard) AddModifiersHandler ¶
func (*Keyboard) AddRepeatInfoHandler ¶
func (*Keyboard) RemoveEnterHandler ¶
func (*Keyboard) RemoveKeyHandler ¶
func (*Keyboard) RemoveKeymapHandler ¶
func (*Keyboard) RemoveLeaveHandler ¶
func (*Keyboard) RemoveModifiersHandler ¶
func (*Keyboard) RemoveRepeatInfoHandler ¶
type KeyboardEnterEvent ¶
type KeyboardKeyEvent ¶
type KeyboardKeymapEvent ¶
type KeyboardLeaveEvent ¶
type KeyboardModifiersEvent ¶
type KeyboardRepeatInfoEvent ¶
type Output ¶
type Output struct { BaseProxy // contains filtered or unexported fields }
func (*Output) AddDoneHandler ¶
func (*Output) AddGeometryHandler ¶
func (*Output) AddModeHandler ¶
func (*Output) AddScaleHandler ¶
func (*Output) RemoveDoneHandler ¶
func (*Output) RemoveGeometryHandler ¶
func (*Output) RemoveModeHandler ¶
func (*Output) RemoveScaleHandler ¶
type OutputDoneEvent ¶
type OutputDoneEvent struct { }
type OutputGeometryEvent ¶
type OutputModeEvent ¶
type OutputScaleEvent ¶
type OutputScaleEvent struct {
Factor int32
}
type Pointer ¶
type Pointer struct { BaseProxy // contains filtered or unexported fields }
func NewPointer ¶
func (*Pointer) AddAxisDiscreteHandler ¶
func (*Pointer) AddAxisHandler ¶
func (*Pointer) AddAxisSourceHandler ¶
func (*Pointer) AddAxisStopHandler ¶
func (*Pointer) AddButtonHandler ¶
func (*Pointer) AddEnterHandler ¶
func (*Pointer) AddFrameHandler ¶
func (*Pointer) AddLeaveHandler ¶
func (*Pointer) AddMotionHandler ¶
func (*Pointer) RemoveAxisDiscreteHandler ¶
func (*Pointer) RemoveAxisHandler ¶
func (*Pointer) RemoveAxisSourceHandler ¶
func (*Pointer) RemoveAxisStopHandler ¶
func (*Pointer) RemoveButtonHandler ¶
func (*Pointer) RemoveEnterHandler ¶
func (*Pointer) RemoveFrameHandler ¶
func (*Pointer) RemoveLeaveHandler ¶
func (*Pointer) RemoveMotionHandler ¶
type PointerAxisEvent ¶
type PointerAxisSourceEvent ¶
type PointerAxisSourceEvent struct {
AxisSource uint32
}
type PointerAxisStopEvent ¶
type PointerButtonEvent ¶
type PointerEnterEvent ¶
type PointerFrameEvent ¶
type PointerFrameEvent struct { }
type PointerLeaveEvent ¶
type PointerMotionEvent ¶
type Registry ¶
type Registry struct { BaseProxy // contains filtered or unexported fields }
func NewRegistry ¶
func (*Registry) AddGlobalHandler ¶
func (*Registry) AddGlobalRemoveHandler ¶
func (*Registry) RemoveGlobalHandler ¶
func (*Registry) RemoveGlobalRemoveHandler ¶
type RegistryGlobalEvent ¶
type RegistryGlobalRemoveEvent ¶
type RegistryGlobalRemoveEvent struct {
Name uint32
}
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) PutFloat32 ¶
type Seat ¶
type Seat struct { BaseProxy // contains filtered or unexported fields }
func (*Seat) AddCapabilitiesHandler ¶
func (*Seat) AddNameHandler ¶
func (*Seat) GetKeyboard ¶
func (*Seat) GetPointer ¶
func (*Seat) RemoveCapabilitiesHandler ¶
func (*Seat) RemoveNameHandler ¶
type SeatCapabilitiesEvent ¶
type SeatCapabilitiesEvent struct {
Capabilities uint32
}
type SeatNameEvent ¶
type SeatNameEvent struct {
Name string
}
type Shell ¶
type Shell struct {
BaseProxy
}
func (*Shell) GetShellSurface ¶
func (p *Shell) GetShellSurface(surface *Surface) (*ShellSurface, error)
type ShellSurface ¶
type ShellSurface struct { BaseProxy // contains filtered or unexported fields }
func NewShellSurface ¶
func NewShellSurface(ctx *Context) *ShellSurface
func (*ShellSurface) AddConfigureHandler ¶
func (p *ShellSurface) AddConfigureHandler(h Handler)
func (*ShellSurface) AddPingHandler ¶
func (p *ShellSurface) AddPingHandler(h Handler)
func (*ShellSurface) AddPopupDoneHandler ¶
func (p *ShellSurface) AddPopupDoneHandler(h Handler)
func (*ShellSurface) Dispatch ¶
func (p *ShellSurface) Dispatch(event *Event)
func (*ShellSurface) Pong ¶
func (p *ShellSurface) Pong(serial uint32) error
func (*ShellSurface) RemoveConfigureHandler ¶
func (p *ShellSurface) RemoveConfigureHandler(h Handler)
func (*ShellSurface) RemovePingHandler ¶
func (p *ShellSurface) RemovePingHandler(h Handler)
func (*ShellSurface) RemovePopupDoneHandler ¶
func (p *ShellSurface) RemovePopupDoneHandler(h Handler)
func (*ShellSurface) Resize ¶
func (p *ShellSurface) Resize(seat *Seat, serial uint32, edges uint32) error
func (*ShellSurface) SetClass ¶
func (p *ShellSurface) SetClass(class_ string) error
func (*ShellSurface) SetFullscreen ¶
func (p *ShellSurface) SetFullscreen(method uint32, framerate uint32, output *Output) error
func (*ShellSurface) SetMaximized ¶
func (p *ShellSurface) SetMaximized(output *Output) error
func (*ShellSurface) SetTitle ¶
func (p *ShellSurface) SetTitle(title string) error
func (*ShellSurface) SetToplevel ¶
func (p *ShellSurface) SetToplevel() error
func (*ShellSurface) SetTransient ¶
type ShellSurfacePingEvent ¶
type ShellSurfacePingEvent struct {
Serial uint32
}
type ShellSurfacePopupDoneEvent ¶
type ShellSurfacePopupDoneEvent struct { }
type Shm ¶
type Shm struct { BaseProxy // contains filtered or unexported fields }
func (*Shm) AddFormatHandler ¶
func (*Shm) RemoveFormatHandler ¶
type ShmFormatEvent ¶
type ShmFormatEvent struct {
Format uint32
}
type Subcompositor ¶
type Subcompositor struct {
BaseProxy
}
func NewSubcompositor ¶
func NewSubcompositor(ctx *Context) *Subcompositor
func (*Subcompositor) Destroy ¶
func (p *Subcompositor) Destroy() error
func (*Subcompositor) GetSubsurface ¶
func (p *Subcompositor) GetSubsurface(surface *Surface, parent *Surface) (*Subsurface, error)
type Subsurface ¶
type Subsurface struct {
BaseProxy
}
func NewSubsurface ¶
func NewSubsurface(ctx *Context) *Subsurface
func (*Subsurface) Destroy ¶
func (p *Subsurface) Destroy() error
func (*Subsurface) PlaceAbove ¶
func (p *Subsurface) PlaceAbove(sibling *Surface) error
func (*Subsurface) PlaceBelow ¶
func (p *Subsurface) PlaceBelow(sibling *Surface) error
func (*Subsurface) SetDesync ¶
func (p *Subsurface) SetDesync() error
func (*Subsurface) SetPosition ¶
func (p *Subsurface) SetPosition(x int32, y int32) error
func (*Subsurface) SetSync ¶
func (p *Subsurface) SetSync() error
type Surface ¶
type Surface struct { BaseProxy // contains filtered or unexported fields }
func NewSurface ¶
func (*Surface) AddEnterHandler ¶
func (*Surface) AddLeaveHandler ¶
func (*Surface) DamageBuffer ¶
func (*Surface) RemoveEnterHandler ¶
func (*Surface) RemoveLeaveHandler ¶
func (*Surface) SetBufferScale ¶
func (*Surface) SetBufferTransform ¶
func (*Surface) SetInputRegion ¶
func (*Surface) SetOpaqueRegion ¶
type SurfaceEnterEvent ¶
type SurfaceEnterEvent struct {
Output *Output
}
type SurfaceLeaveEvent ¶
type SurfaceLeaveEvent struct {
Output *Output
}
type TextCursorPosition ¶
type TextCursorPosition struct {
BaseProxy
}
func NewTextCursorPosition ¶
func NewTextCursorPosition(conn *Context) *TextCursorPosition
type Touch ¶
type Touch struct { BaseProxy // contains filtered or unexported fields }
func (*Touch) AddCancelHandler ¶
func (*Touch) AddDownHandler ¶
func (*Touch) AddFrameHandler ¶
func (*Touch) AddMotionHandler ¶
func (*Touch) AddOrientationHandler ¶
func (*Touch) AddShapeHandler ¶
func (*Touch) AddUpHandler ¶
func (*Touch) RemoveCancelHandler ¶
func (*Touch) RemoveDownHandler ¶
func (*Touch) RemoveFrameHandler ¶
func (*Touch) RemoveMotionHandler ¶
func (*Touch) RemoveOrientationHandler ¶
func (*Touch) RemoveShapeHandler ¶
func (*Touch) RemoveUpHandler ¶
type TouchCancelEvent ¶
type TouchCancelEvent struct { }
type TouchDownEvent ¶
type TouchFrameEvent ¶
type TouchFrameEvent struct { }
type TouchOrientationEvent ¶
type TouchShapeEvent ¶
type TouchUpEvent ¶
type WestonScreenshooter ¶
type WestonScreenshooter struct { BaseProxy DoneChan chan WestonScreenshooterDoneEvent }
func NewWestonScreenshooter ¶
func NewWestonScreenshooter(conn *Context) *WestonScreenshooter
type WestonScreenshooterDoneEvent ¶
type WestonScreenshooterDoneEvent struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.