Documentation
¶
Index ¶
- Constants
- Variables
- type Binder
- type Buffer
- type BufferDestroyRequest
- type BufferReleaseEvent
- type BufferReleaseFunc
- type Callback
- type CallbackDoneEvent
- type CallbackDoneFunc
- type Compositor
- type CompositorCreateRegionRequest
- type CompositorCreateSurfaceRequest
- type CompositorReleaseRequest
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Dispatch(ctx context.Context) error
- func (c *Conn) DispatchPending() error
- func (c *Conn) Flush() error
- func (c *Conn) IsClosed() bool
- func (c *Conn) Logger() *slog.Logger
- func (c *Conn) LookupProxy(id uint32) *Proxy
- func (c *Conn) RegisterProxy(p *Proxy)
- func (c *Conn) RegisterProxyWithID(p *Proxy, id uint32)
- func (c *Conn) SendRequest(objID uint32, opcode uint16, m wire.Marshaler) error
- func (c *Conn) SetLogger(l *slog.Logger)
- func (c *Conn) UnregisterProxy(id uint32)
- type DataDevice
- func (o *DataDevice) OnDataOffer(fn DataDeviceDataOfferFunc)
- func (o *DataDevice) OnDrop(fn DataDeviceDropFunc)
- func (o *DataDevice) OnEnter(fn DataDeviceEnterFunc)
- func (o *DataDevice) OnLeave(fn DataDeviceLeaveFunc)
- func (o *DataDevice) OnMotion(fn DataDeviceMotionFunc)
- func (o *DataDevice) OnSelection(fn DataDeviceSelectionFunc)
- func (o *DataDevice) Proxy() *Proxy
- func (o *DataDevice) Release() error
- func (o *DataDevice) SetSelection(source wire.ObjectID, serial uint32) error
- func (o *DataDevice) StartDrag(source wire.ObjectID, origin wire.ObjectID, icon wire.ObjectID, serial uint32) error
- type DataDeviceDataOfferEvent
- type DataDeviceDataOfferFunc
- type DataDeviceDropEvent
- type DataDeviceDropFunc
- type DataDeviceEnterEvent
- type DataDeviceEnterFunc
- type DataDeviceError
- type DataDeviceLeaveEvent
- type DataDeviceLeaveFunc
- type DataDeviceManager
- type DataDeviceManagerCreateDataSourceRequest
- type DataDeviceManagerDndAction
- type DataDeviceManagerGetDataDeviceRequest
- type DataDeviceManagerReleaseRequest
- type DataDeviceMotionEvent
- type DataDeviceMotionFunc
- type DataDeviceReleaseRequest
- type DataDeviceSelectionEvent
- type DataDeviceSelectionFunc
- type DataDeviceSetSelectionRequest
- type DataDeviceStartDragRequest
- type DataOffer
- func (o *DataOffer) Accept(serial uint32, mimeType string) error
- func (o *DataOffer) Destroy() error
- func (o *DataOffer) Finish() error
- func (o *DataOffer) OnAction(fn DataOfferActionFunc)
- func (o *DataOffer) OnOffer(fn DataOfferOfferFunc)
- func (o *DataOffer) OnSourceActions(fn DataOfferSourceActionsFunc)
- func (o *DataOffer) Proxy() *Proxy
- func (o *DataOffer) Receive(mimeType string, fd int) error
- func (o *DataOffer) SetActions(dndActions uint32, preferredAction uint32) error
- type DataOfferAcceptRequest
- type DataOfferActionEvent
- type DataOfferActionFunc
- type DataOfferDestroyRequest
- type DataOfferError
- type DataOfferFinishRequest
- type DataOfferOfferEvent
- type DataOfferOfferFunc
- type DataOfferReceiveRequest
- type DataOfferSetActionsRequest
- type DataOfferSourceActionsEvent
- type DataOfferSourceActionsFunc
- type DataSource
- func (o *DataSource) Destroy() error
- func (o *DataSource) Offer(mimeType string) error
- func (o *DataSource) OnAction(fn DataSourceActionFunc)
- func (o *DataSource) OnCancelled(fn DataSourceCancelledFunc)
- func (o *DataSource) OnDndDropPerformed(fn DataSourceDndDropPerformedFunc)
- func (o *DataSource) OnDndFinished(fn DataSourceDndFinishedFunc)
- func (o *DataSource) OnSend(fn DataSourceSendFunc)
- func (o *DataSource) OnTarget(fn DataSourceTargetFunc)
- func (o *DataSource) Proxy() *Proxy
- func (o *DataSource) SetActions(dndActions uint32) error
- type DataSourceActionEvent
- type DataSourceActionFunc
- type DataSourceCancelledEvent
- type DataSourceCancelledFunc
- type DataSourceDestroyRequest
- type DataSourceDndDropPerformedEvent
- type DataSourceDndDropPerformedFunc
- type DataSourceDndFinishedEvent
- type DataSourceDndFinishedFunc
- type DataSourceError
- type DataSourceOfferRequest
- type DataSourceSendEvent
- type DataSourceSendFunc
- type DataSourceSetActionsRequest
- type DataSourceTargetEvent
- type DataSourceTargetFunc
- type Display
- func BindDisplay(b Binder, name uint32, version uint32) (*Display, error)
- func Connect(ctx context.Context) (*Display, error)
- func ConnectFd(ctx context.Context, fd int, path string) (*Display, error)
- func ConnectPath(ctx context.Context, path string) (*Display, error)
- func NewDisplay(p *Proxy) *Display
- func (d *Display) Close() error
- func (d *Display) Conn() *Conn
- func (d *Display) Dispatch(ctx context.Context) error
- func (d *Display) DispatchPending() error
- func (d *Display) Flush() error
- func (o *Display) GetRegistry() (*Registry, error)
- func (o *Display) OnDeleteID(fn DisplayDeleteIDFunc)
- func (o *Display) OnError(fn DisplayErrorFunc)
- func (o *Display) Proxy() *Proxy
- func (d *Display) Roundtrip(ctx context.Context) error
- func (d *Display) SetLogger(l *slog.Logger)
- func (d *Display) SetOnError(fn func(*ProtocolError))
- func (o *Display) Sync() (*Callback, error)
- type DisplayDeleteIDEvent
- type DisplayDeleteIDFunc
- type DisplayError
- type DisplayErrorEvent
- type DisplayErrorFunc
- type DisplayGetRegistryRequest
- type DisplaySyncRequest
- type Fixes
- type FixesDestroyRegistryRequest
- type FixesDestroyRequest
- type Keyboard
- func (o *Keyboard) OnEnter(fn KeyboardEnterFunc)
- func (o *Keyboard) OnKey(fn KeyboardKeyFunc)
- func (o *Keyboard) OnKeymap(fn KeyboardKeymapFunc)
- func (o *Keyboard) OnLeave(fn KeyboardLeaveFunc)
- func (o *Keyboard) OnModifiers(fn KeyboardModifiersFunc)
- func (o *Keyboard) OnRepeatInfo(fn KeyboardRepeatInfoFunc)
- func (o *Keyboard) Proxy() *Proxy
- func (o *Keyboard) Release() error
- type KeyboardEnterEvent
- type KeyboardEnterFunc
- type KeyboardKeyEvent
- type KeyboardKeyFunc
- type KeyboardKeyState
- type KeyboardKeymapEvent
- type KeyboardKeymapFormat
- type KeyboardKeymapFunc
- type KeyboardLeaveEvent
- type KeyboardLeaveFunc
- type KeyboardModifiersEvent
- type KeyboardModifiersFunc
- type KeyboardReleaseRequest
- type KeyboardRepeatInfoEvent
- type KeyboardRepeatInfoFunc
- type Output
- func (o *Output) OnDescription(fn OutputDescriptionFunc)
- func (o *Output) OnDone(fn OutputDoneFunc)
- func (o *Output) OnGeometry(fn OutputGeometryFunc)
- func (o *Output) OnMode(fn OutputModeFunc)
- func (o *Output) OnName(fn OutputNameFunc)
- func (o *Output) OnScale(fn OutputScaleFunc)
- func (o *Output) Proxy() *Proxy
- func (o *Output) Release() error
- type OutputDescriptionEvent
- type OutputDescriptionFunc
- type OutputDoneEvent
- type OutputDoneFunc
- type OutputGeometryEvent
- type OutputGeometryFunc
- type OutputMode
- type OutputModeEvent
- type OutputModeFunc
- type OutputNameEvent
- type OutputNameFunc
- type OutputReleaseRequest
- type OutputScaleEvent
- type OutputScaleFunc
- type OutputSubpixel
- type OutputTransform
- type Pointer
- func (o *Pointer) OnAxis(fn PointerAxisFunc)
- func (o *Pointer) OnAxisDiscrete(fn PointerAxisDiscreteFunc)
- func (o *Pointer) OnAxisRelativeDirection(fn PointerAxisRelativeDirectionFunc)
- func (o *Pointer) OnAxisSource(fn PointerAxisSourceFunc)
- func (o *Pointer) OnAxisStop(fn PointerAxisStopFunc)
- func (o *Pointer) OnAxisValue120(fn PointerAxisValue120Func)
- func (o *Pointer) OnButton(fn PointerButtonFunc)
- func (o *Pointer) OnEnter(fn PointerEnterFunc)
- func (o *Pointer) OnFrame(fn PointerFrameFunc)
- func (o *Pointer) OnLeave(fn PointerLeaveFunc)
- func (o *Pointer) OnMotion(fn PointerMotionFunc)
- func (o *Pointer) Proxy() *Proxy
- func (o *Pointer) Release() error
- func (o *Pointer) SetCursor(serial uint32, surface wire.ObjectID, hotspotX int32, hotspotY int32) error
- type PointerAxis
- type PointerAxisDiscreteEvent
- type PointerAxisDiscreteFunc
- type PointerAxisEvent
- type PointerAxisFunc
- type PointerAxisRelativeDirection
- type PointerAxisRelativeDirectionEvent
- type PointerAxisRelativeDirectionFunc
- type PointerAxisSource
- type PointerAxisSourceEvent
- type PointerAxisSourceFunc
- type PointerAxisStopEvent
- type PointerAxisStopFunc
- type PointerAxisValue120Event
- type PointerAxisValue120Func
- type PointerButtonEvent
- type PointerButtonFunc
- type PointerButtonState
- type PointerEnterEvent
- type PointerEnterFunc
- type PointerError
- type PointerFrameEvent
- type PointerFrameFunc
- type PointerLeaveEvent
- type PointerLeaveFunc
- type PointerMotionEvent
- type PointerMotionFunc
- type PointerReleaseRequest
- type PointerSetCursorRequest
- type ProtocolError
- type Proxy
- func (p *Proxy) Conn() *Conn
- func (p *Proxy) Deleted() bool
- func (p *Proxy) FDCounts() map[uint16]int
- func (p *Proxy) ID() uint32
- func (p *Proxy) RegisterEvent(opcode uint16, h func(*wire.Reader))
- func (p *Proxy) SendRequest(opcode uint16, m wire.Marshaler) error
- func (p *Proxy) SetEventFDCounts(fdCounts map[uint16]int)
- func (p *Proxy) SetVersion(v uint32)
- func (p *Proxy) Version() uint32
- type Region
- type RegionAddRequest
- type RegionDestroyRequest
- type RegionSubtractRequest
- type Registry
- type RegistryBindRequest
- type RegistryGlobalEvent
- type RegistryGlobalFunc
- type RegistryGlobalRemoveEvent
- type RegistryGlobalRemoveFunc
- type Seat
- type SeatCapabilitiesEvent
- type SeatCapabilitiesFunc
- type SeatCapability
- type SeatError
- type SeatGetKeyboardRequest
- type SeatGetPointerRequest
- type SeatGetTouchRequest
- type SeatNameEvent
- type SeatNameFunc
- type SeatReleaseRequest
- type Shell
- type ShellError
- type ShellGetShellSurfaceRequest
- type ShellSurface
- func (o *ShellSurface) Move(seat wire.ObjectID, serial uint32) error
- func (o *ShellSurface) OnConfigure(fn ShellSurfaceConfigureFunc)
- func (o *ShellSurface) OnPing(fn ShellSurfacePingFunc)
- func (o *ShellSurface) OnPopupDone(fn ShellSurfacePopupDoneFunc)
- func (o *ShellSurface) Pong(serial uint32) error
- func (o *ShellSurface) Proxy() *Proxy
- func (o *ShellSurface) Resize(seat wire.ObjectID, serial uint32, edges uint32) error
- func (o *ShellSurface) SetClass(class string) error
- func (o *ShellSurface) SetFullscreen(method uint32, framerate uint32, output wire.ObjectID) error
- func (o *ShellSurface) SetMaximized(output wire.ObjectID) error
- func (o *ShellSurface) SetPopup(seat wire.ObjectID, serial uint32, parent wire.ObjectID, x int32, y int32, ...) error
- func (o *ShellSurface) SetTitle(title string) error
- func (o *ShellSurface) SetToplevel() error
- func (o *ShellSurface) SetTransient(parent wire.ObjectID, x int32, y int32, flags uint32) error
- type ShellSurfaceConfigureEvent
- type ShellSurfaceConfigureFunc
- type ShellSurfaceFullscreenMethod
- type ShellSurfaceMoveRequest
- type ShellSurfacePingEvent
- type ShellSurfacePingFunc
- type ShellSurfacePongRequest
- type ShellSurfacePopupDoneEvent
- type ShellSurfacePopupDoneFunc
- type ShellSurfaceResize
- type ShellSurfaceResizeRequest
- type ShellSurfaceSetClassRequest
- type ShellSurfaceSetFullscreenRequest
- type ShellSurfaceSetMaximizedRequest
- type ShellSurfaceSetPopupRequest
- type ShellSurfaceSetTitleRequest
- type ShellSurfaceSetToplevelRequest
- type ShellSurfaceSetTransientRequest
- type ShellSurfaceTransient
- type Shm
- type ShmCreatePoolRequest
- type ShmError
- type ShmFormat
- type ShmFormatEvent
- type ShmFormatFunc
- type ShmPool
- type ShmPoolCreateBufferRequest
- type ShmPoolDestroyRequest
- type ShmPoolResizeRequest
- type ShmReleaseRequest
- type Subcompositor
- type SubcompositorDestroyRequest
- type SubcompositorError
- type SubcompositorGetSubsurfaceRequest
- type Subsurface
- func (o *Subsurface) Destroy() error
- func (o *Subsurface) PlaceAbove(sibling wire.ObjectID) error
- func (o *Subsurface) PlaceBelow(sibling wire.ObjectID) error
- func (o *Subsurface) Proxy() *Proxy
- func (o *Subsurface) SetDesync() error
- func (o *Subsurface) SetPosition(x int32, y int32) error
- func (o *Subsurface) SetSync() error
- type SubsurfaceDestroyRequest
- type SubsurfaceError
- type SubsurfacePlaceAboveRequest
- type SubsurfacePlaceBelowRequest
- type SubsurfaceSetDesyncRequest
- type SubsurfaceSetPositionRequest
- type SubsurfaceSetSyncRequest
- type Surface
- func (o *Surface) Attach(buffer wire.ObjectID, x int32, y int32) error
- func (o *Surface) Commit() error
- func (o *Surface) Damage(x int32, y int32, width int32, height int32) error
- func (o *Surface) DamageBuffer(x int32, y int32, width int32, height int32) error
- func (o *Surface) Destroy() error
- func (o *Surface) Frame() (*Callback, error)
- func (o *Surface) GetRelease() (*Callback, error)
- func (o *Surface) Offset(x int32, y int32) error
- func (o *Surface) OnEnter(fn SurfaceEnterFunc)
- func (o *Surface) OnLeave(fn SurfaceLeaveFunc)
- func (o *Surface) OnPreferredBufferScale(fn SurfacePreferredBufferScaleFunc)
- func (o *Surface) OnPreferredBufferTransform(fn SurfacePreferredBufferTransformFunc)
- func (o *Surface) Proxy() *Proxy
- func (o *Surface) SetBufferScale(scale int32) error
- func (o *Surface) SetBufferTransform(transform int32) error
- func (o *Surface) SetInputRegion(region wire.ObjectID) error
- func (o *Surface) SetOpaqueRegion(region wire.ObjectID) error
- type SurfaceAttachRequest
- type SurfaceCommitRequest
- type SurfaceDamageBufferRequest
- type SurfaceDamageRequest
- type SurfaceDestroyRequest
- type SurfaceEnterEvent
- type SurfaceEnterFunc
- type SurfaceError
- type SurfaceFrameRequest
- type SurfaceGetReleaseRequest
- type SurfaceLeaveEvent
- type SurfaceLeaveFunc
- type SurfaceOffsetRequest
- type SurfacePreferredBufferScaleEvent
- type SurfacePreferredBufferScaleFunc
- type SurfacePreferredBufferTransformEvent
- type SurfacePreferredBufferTransformFunc
- type SurfaceSetBufferScaleRequest
- type SurfaceSetBufferTransformRequest
- type SurfaceSetInputRegionRequest
- type SurfaceSetOpaqueRegionRequest
- type Touch
- func (o *Touch) OnCancel(fn TouchCancelFunc)
- func (o *Touch) OnDown(fn TouchDownFunc)
- func (o *Touch) OnFrame(fn TouchFrameFunc)
- func (o *Touch) OnMotion(fn TouchMotionFunc)
- func (o *Touch) OnOrientation(fn TouchOrientationFunc)
- func (o *Touch) OnShape(fn TouchShapeFunc)
- func (o *Touch) OnUp(fn TouchUpFunc)
- func (o *Touch) Proxy() *Proxy
- func (o *Touch) Release() error
- type TouchCancelEvent
- type TouchCancelFunc
- type TouchDownEvent
- type TouchDownFunc
- type TouchFrameEvent
- type TouchFrameFunc
- type TouchMotionEvent
- type TouchMotionFunc
- type TouchOrientationEvent
- type TouchOrientationFunc
- type TouchReleaseRequest
- type TouchShapeEvent
- type TouchShapeFunc
- type TouchUpEvent
- type TouchUpFunc
Constants ¶
View Source
const ( CompositorRequestCreateSurface uint16 = 0 CompositorRequestCreateRegion uint16 = 1 CompositorRequestRelease uint16 = 2 )
View Source
const ( DataDeviceRequestStartDrag uint16 = 0 DataDeviceRequestSetSelection uint16 = 1 DataDeviceRequestRelease uint16 = 2 )
View Source
const ( DataDeviceEventDataOffer uint16 = 0 DataDeviceEventEnter uint16 = 1 DataDeviceEventLeave uint16 = 2 DataDeviceEventMotion uint16 = 3 DataDeviceEventDrop uint16 = 4 DataDeviceEventSelection uint16 = 5 )
View Source
const ( DataDeviceManagerRequestCreateDataSource uint16 = 0 DataDeviceManagerRequestGetDataDevice uint16 = 1 DataDeviceManagerRequestRelease uint16 = 2 )
View Source
const ( DataOfferRequestAccept uint16 = 0 DataOfferRequestReceive uint16 = 1 DataOfferRequestDestroy uint16 = 2 DataOfferRequestFinish uint16 = 3 DataOfferRequestSetActions uint16 = 4 )
View Source
const ( DataOfferEventOffer uint16 = 0 DataOfferEventSourceActions uint16 = 1 DataOfferEventAction uint16 = 2 )
View Source
const ( DataSourceRequestOffer uint16 = 0 DataSourceRequestDestroy uint16 = 1 DataSourceRequestSetActions uint16 = 2 )
View Source
const ( DataSourceEventTarget uint16 = 0 DataSourceEventSend uint16 = 1 DataSourceEventCancelled uint16 = 2 DataSourceEventDndDropPerformed uint16 = 3 DataSourceEventDndFinished uint16 = 4 DataSourceEventAction uint16 = 5 )
View Source
const ( DisplayRequestSync uint16 = 0 DisplayRequestGetRegistry uint16 = 1 )
View Source
const ( DisplayEventError uint16 = 0 DisplayEventDeleteID uint16 = 1 )
View Source
const ( FixesRequestDestroy uint16 = 0 FixesRequestDestroyRegistry uint16 = 1 )
View Source
const ( KeyboardEventKeymap uint16 = 0 KeyboardEventEnter uint16 = 1 KeyboardEventLeave uint16 = 2 KeyboardEventKey uint16 = 3 KeyboardEventModifiers uint16 = 4 KeyboardEventRepeatInfo uint16 = 5 )
View Source
const ( OutputEventGeometry uint16 = 0 OutputEventMode uint16 = 1 OutputEventDone uint16 = 2 OutputEventScale uint16 = 3 OutputEventName uint16 = 4 OutputEventDescription uint16 = 5 )
View Source
const ( PointerRequestSetCursor uint16 = 0 PointerRequestRelease uint16 = 1 )
View Source
const ( PointerEventEnter uint16 = 0 PointerEventLeave uint16 = 1 PointerEventMotion uint16 = 2 PointerEventButton uint16 = 3 PointerEventAxis uint16 = 4 PointerEventFrame uint16 = 5 PointerEventAxisSource uint16 = 6 PointerEventAxisStop uint16 = 7 PointerEventAxisDiscrete uint16 = 8 PointerEventAxisValue120 uint16 = 9 PointerEventAxisRelativeDirection uint16 = 10 )
View Source
const ( RegionRequestDestroy uint16 = 0 RegionRequestAdd uint16 = 1 RegionRequestSubtract uint16 = 2 )
View Source
const ( RegistryEventGlobal uint16 = 0 RegistryEventGlobalRemove uint16 = 1 )
View Source
const ( SeatRequestGetPointer uint16 = 0 SeatRequestGetKeyboard uint16 = 1 SeatRequestGetTouch uint16 = 2 SeatRequestRelease uint16 = 3 )
View Source
const ( SeatEventCapabilities uint16 = 0 SeatEventName uint16 = 1 )
View Source
const ( ShellSurfaceRequestPong uint16 = 0 ShellSurfaceRequestMove uint16 = 1 ShellSurfaceRequestResize uint16 = 2 ShellSurfaceRequestSetToplevel uint16 = 3 ShellSurfaceRequestSetTransient uint16 = 4 ShellSurfaceRequestSetFullscreen uint16 = 5 ShellSurfaceRequestSetPopup uint16 = 6 ShellSurfaceRequestSetMaximized uint16 = 7 ShellSurfaceRequestSetTitle uint16 = 8 ShellSurfaceRequestSetClass uint16 = 9 )
View Source
const ( ShellSurfaceEventPing uint16 = 0 ShellSurfaceEventConfigure uint16 = 1 ShellSurfaceEventPopupDone uint16 = 2 )
View Source
const ( ShmRequestCreatePool uint16 = 0 ShmRequestRelease uint16 = 1 )
View Source
const ( ShmPoolRequestCreateBuffer uint16 = 0 ShmPoolRequestDestroy uint16 = 1 ShmPoolRequestResize uint16 = 2 )
View Source
const ( SubcompositorRequestDestroy uint16 = 0 SubcompositorRequestGetSubsurface uint16 = 1 )
View Source
const ( SubsurfaceRequestDestroy uint16 = 0 SubsurfaceRequestSetPosition uint16 = 1 SubsurfaceRequestPlaceAbove uint16 = 2 SubsurfaceRequestPlaceBelow uint16 = 3 SubsurfaceRequestSetSync uint16 = 4 SubsurfaceRequestSetDesync uint16 = 5 )
View Source
const ( SurfaceRequestDestroy uint16 = 0 SurfaceRequestAttach uint16 = 1 SurfaceRequestDamage uint16 = 2 SurfaceRequestFrame uint16 = 3 SurfaceRequestSetOpaqueRegion uint16 = 4 SurfaceRequestSetInputRegion uint16 = 5 SurfaceRequestCommit uint16 = 6 SurfaceRequestSetBufferTransform uint16 = 7 SurfaceRequestSetBufferScale uint16 = 8 SurfaceRequestDamageBuffer uint16 = 9 SurfaceRequestOffset uint16 = 10 SurfaceRequestGetRelease uint16 = 11 )
View Source
const ( SurfaceEventEnter uint16 = 0 SurfaceEventLeave uint16 = 1 SurfaceEventPreferredBufferScale uint16 = 2 SurfaceEventPreferredBufferTransform uint16 = 3 )
View Source
const ( TouchEventDown uint16 = 0 TouchEventUp uint16 = 1 TouchEventMotion uint16 = 2 TouchEventFrame uint16 = 3 TouchEventCancel uint16 = 4 TouchEventShape uint16 = 5 TouchEventOrientation uint16 = 6 )
View Source
const (
BufferEventRelease uint16 = 0
)
View Source
const (
BufferRequestDestroy uint16 = 0
)
View Source
const (
CallbackEventDone uint16 = 0
)
View Source
const InterfaceBuffer = "wl_buffer"
View Source
const InterfaceCallback = "wl_callback"
View Source
const InterfaceCompositor = "wl_compositor"
View Source
const InterfaceDataDevice = "wl_data_device"
View Source
const InterfaceDataDeviceManager = "wl_data_device_manager"
View Source
const InterfaceDataOffer = "wl_data_offer"
View Source
const InterfaceDataSource = "wl_data_source"
View Source
const InterfaceDisplay = "wl_display"
View Source
const InterfaceFixes = "wl_fixes"
View Source
const InterfaceKeyboard = "wl_keyboard"
View Source
const InterfaceOutput = "wl_output"
View Source
const InterfacePointer = "wl_pointer"
View Source
const InterfaceRegion = "wl_region"
View Source
const InterfaceRegistry = "wl_registry"
View Source
const InterfaceSeat = "wl_seat"
View Source
const InterfaceShell = "wl_shell"
View Source
const InterfaceShellSurface = "wl_shell_surface"
View Source
const InterfaceShm = "wl_shm"
View Source
const InterfaceShmPool = "wl_shm_pool"
View Source
const InterfaceSubcompositor = "wl_subcompositor"
View Source
const InterfaceSubsurface = "wl_subsurface"
View Source
const InterfaceSurface = "wl_surface"
View Source
const InterfaceTouch = "wl_touch"
View Source
const (
KeyboardRequestRelease uint16 = 0
)
View Source
const (
OutputRequestRelease uint16 = 0
)
View Source
const (
RegistryRequestBind uint16 = 0
)
View Source
const (
ShellRequestGetShellSurface uint16 = 0
)
View Source
const (
ShmEventFormat uint16 = 0
)
View Source
const (
TouchRequestRelease uint16 = 0
)
View Source
const VersionBuffer = 1
View Source
const VersionCallback = 1
View Source
const VersionCompositor = 7
View Source
const VersionDataDevice = 4
View Source
const VersionDataDeviceManager = 4
View Source
const VersionDataOffer = 4
View Source
const VersionDataSource = 4
View Source
const VersionDisplay = 1
View Source
const VersionFixes = 1
View Source
const VersionKeyboard = 10
View Source
const VersionOutput = 4
View Source
const VersionPointer = 10
View Source
const VersionRegion = 7
View Source
const VersionRegistry = 1
View Source
const VersionSeat = 10
View Source
const VersionShell = 1
View Source
const VersionShellSurface = 1
View Source
const VersionShm = 2
View Source
const VersionShmPool = 2
View Source
const VersionSubcompositor = 1
View Source
const VersionSubsurface = 1
View Source
const VersionSurface = 7
View Source
const VersionTouch = 10
Variables ¶
View Source
var ErrConnClosed = errors.New("wayland: connection closed")
View Source
var ErrObjectDeleted = errors.New("wayland: object deleted")
View Source
var ErrVersionMismatch = errors.New("wayland: version mismatch")
Functions ¶
This section is empty.
Types ¶
type Binder ¶
Binder is implemented by objects that can bind a Wayland protocol interface to a server-side global. The generated BindXxx functions accept a Binder so they can be used with any client-side proxy that supports binding.
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) OnRelease ¶
func (o *Buffer) OnRelease(fn BufferReleaseFunc)
type BufferDestroyRequest ¶
type BufferDestroyRequest struct {
}
func (*BufferDestroyRequest) Opcode ¶
func (r *BufferDestroyRequest) Opcode() uint16
func (*BufferDestroyRequest) Since ¶
func (r *BufferDestroyRequest) Since() int
type BufferReleaseEvent ¶
type BufferReleaseEvent struct {
}
func (*BufferReleaseEvent) Opcode ¶
func (e *BufferReleaseEvent) Opcode() uint16
func (*BufferReleaseEvent) Since ¶
func (e *BufferReleaseEvent) Since() int
type BufferReleaseFunc ¶
type BufferReleaseFunc func(ev BufferReleaseEvent)
type Callback ¶
type Callback struct {
// contains filtered or unexported fields
}
func NewCallback ¶
func (*Callback) OnDone ¶
func (o *Callback) OnDone(fn CallbackDoneFunc)
type CallbackDoneEvent ¶
type CallbackDoneEvent struct {
CallbackData uint32
}
func (*CallbackDoneEvent) Opcode ¶
func (e *CallbackDoneEvent) Opcode() uint16
func (*CallbackDoneEvent) Since ¶
func (e *CallbackDoneEvent) Since() int
type CallbackDoneFunc ¶
type CallbackDoneFunc func(ev CallbackDoneEvent)
type Compositor ¶
type Compositor struct {
// contains filtered or unexported fields
}
func BindCompositor ¶
func BindCompositor(b Binder, name uint32, version uint32) (*Compositor, error)
func NewCompositor ¶
func NewCompositor(p *Proxy) *Compositor
func (*Compositor) CreateRegion ¶
func (o *Compositor) CreateRegion() (*Region, error)
func (*Compositor) CreateSurface ¶
func (o *Compositor) CreateSurface() (*Surface, error)
func (*Compositor) Proxy ¶
func (o *Compositor) Proxy() *Proxy
func (*Compositor) Release ¶
func (o *Compositor) Release() error
type CompositorCreateRegionRequest ¶
func (*CompositorCreateRegionRequest) Marshal ¶
func (r *CompositorCreateRegionRequest) Marshal(w *wire.Writer) error
func (*CompositorCreateRegionRequest) Opcode ¶
func (r *CompositorCreateRegionRequest) Opcode() uint16
func (*CompositorCreateRegionRequest) Since ¶
func (r *CompositorCreateRegionRequest) Since() int
type CompositorCreateSurfaceRequest ¶
func (*CompositorCreateSurfaceRequest) Marshal ¶
func (r *CompositorCreateSurfaceRequest) Marshal(w *wire.Writer) error
func (*CompositorCreateSurfaceRequest) Opcode ¶
func (r *CompositorCreateSurfaceRequest) Opcode() uint16
func (*CompositorCreateSurfaceRequest) Since ¶
func (r *CompositorCreateSurfaceRequest) Since() int
type CompositorReleaseRequest ¶
type CompositorReleaseRequest struct {
}
func (*CompositorReleaseRequest) Marshal ¶
func (r *CompositorReleaseRequest) Marshal(w *wire.Writer) error
func (*CompositorReleaseRequest) Opcode ¶
func (r *CompositorReleaseRequest) Opcode() uint16
func (*CompositorReleaseRequest) Since ¶
func (r *CompositorReleaseRequest) Since() int
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) DispatchPending ¶
func (*Conn) LookupProxy ¶
func (*Conn) RegisterProxy ¶
func (*Conn) RegisterProxyWithID ¶
func (*Conn) SendRequest ¶
func (*Conn) UnregisterProxy ¶
type DataDevice ¶
type DataDevice struct {
// contains filtered or unexported fields
}
func BindDataDevice ¶
func BindDataDevice(b Binder, name uint32, version uint32) (*DataDevice, error)
func NewDataDevice ¶
func NewDataDevice(p *Proxy) *DataDevice
func (*DataDevice) OnDataOffer ¶
func (o *DataDevice) OnDataOffer(fn DataDeviceDataOfferFunc)
func (*DataDevice) OnDrop ¶
func (o *DataDevice) OnDrop(fn DataDeviceDropFunc)
func (*DataDevice) OnEnter ¶
func (o *DataDevice) OnEnter(fn DataDeviceEnterFunc)
func (*DataDevice) OnLeave ¶
func (o *DataDevice) OnLeave(fn DataDeviceLeaveFunc)
func (*DataDevice) OnMotion ¶
func (o *DataDevice) OnMotion(fn DataDeviceMotionFunc)
func (*DataDevice) OnSelection ¶
func (o *DataDevice) OnSelection(fn DataDeviceSelectionFunc)
func (*DataDevice) Proxy ¶
func (o *DataDevice) Proxy() *Proxy
func (*DataDevice) Release ¶
func (o *DataDevice) Release() error
func (*DataDevice) SetSelection ¶
func (o *DataDevice) SetSelection(source wire.ObjectID, serial uint32) error
type DataDeviceDataOfferEvent ¶
func (*DataDeviceDataOfferEvent) Opcode ¶
func (e *DataDeviceDataOfferEvent) Opcode() uint16
func (*DataDeviceDataOfferEvent) Since ¶
func (e *DataDeviceDataOfferEvent) Since() int
type DataDeviceDataOfferFunc ¶
type DataDeviceDataOfferFunc func(ev DataDeviceDataOfferEvent)
type DataDeviceDropEvent ¶
type DataDeviceDropEvent struct {
}
func (*DataDeviceDropEvent) Opcode ¶
func (e *DataDeviceDropEvent) Opcode() uint16
func (*DataDeviceDropEvent) Since ¶
func (e *DataDeviceDropEvent) Since() int
type DataDeviceDropFunc ¶
type DataDeviceDropFunc func(ev DataDeviceDropEvent)
type DataDeviceEnterEvent ¶
type DataDeviceEnterEvent struct {
Serial uint32
Surface wire.ObjectID
X wire.Fixed
Y wire.Fixed
ID wire.ObjectID
}
func (*DataDeviceEnterEvent) Opcode ¶
func (e *DataDeviceEnterEvent) Opcode() uint16
func (*DataDeviceEnterEvent) Since ¶
func (e *DataDeviceEnterEvent) Since() int
type DataDeviceEnterFunc ¶
type DataDeviceEnterFunc func(ev DataDeviceEnterEvent)
type DataDeviceError ¶
type DataDeviceError uint32
const ( DataDeviceErrorRole DataDeviceError = 0 DataDeviceErrorUsedSource DataDeviceError = 1 )
type DataDeviceLeaveEvent ¶
type DataDeviceLeaveEvent struct {
}
func (*DataDeviceLeaveEvent) Opcode ¶
func (e *DataDeviceLeaveEvent) Opcode() uint16
func (*DataDeviceLeaveEvent) Since ¶
func (e *DataDeviceLeaveEvent) Since() int
type DataDeviceLeaveFunc ¶
type DataDeviceLeaveFunc func(ev DataDeviceLeaveEvent)
type DataDeviceManager ¶
type DataDeviceManager struct {
// contains filtered or unexported fields
}
func BindDataDeviceManager ¶
func BindDataDeviceManager(b Binder, name uint32, version uint32) (*DataDeviceManager, error)
func NewDataDeviceManager ¶
func NewDataDeviceManager(p *Proxy) *DataDeviceManager
func (*DataDeviceManager) CreateDataSource ¶
func (o *DataDeviceManager) CreateDataSource() (*DataSource, error)
func (*DataDeviceManager) GetDataDevice ¶
func (o *DataDeviceManager) GetDataDevice(seat wire.ObjectID) (*DataDevice, error)
func (*DataDeviceManager) Proxy ¶
func (o *DataDeviceManager) Proxy() *Proxy
func (*DataDeviceManager) Release ¶
func (o *DataDeviceManager) Release() error
type DataDeviceManagerCreateDataSourceRequest ¶
func (*DataDeviceManagerCreateDataSourceRequest) Marshal ¶
func (r *DataDeviceManagerCreateDataSourceRequest) Marshal(w *wire.Writer) error
func (*DataDeviceManagerCreateDataSourceRequest) Opcode ¶
func (r *DataDeviceManagerCreateDataSourceRequest) Opcode() uint16
func (*DataDeviceManagerCreateDataSourceRequest) Since ¶
func (r *DataDeviceManagerCreateDataSourceRequest) Since() int
type DataDeviceManagerDndAction ¶
type DataDeviceManagerDndAction uint32
const ( DataDeviceManagerDndActionNone DataDeviceManagerDndAction = 0 DataDeviceManagerDndActionCopy DataDeviceManagerDndAction = 1 DataDeviceManagerDndActionMove DataDeviceManagerDndAction = 2 DataDeviceManagerDndActionAsk DataDeviceManagerDndAction = 4 )
type DataDeviceManagerGetDataDeviceRequest ¶
func (*DataDeviceManagerGetDataDeviceRequest) Marshal ¶
func (r *DataDeviceManagerGetDataDeviceRequest) Marshal(w *wire.Writer) error
func (*DataDeviceManagerGetDataDeviceRequest) Opcode ¶
func (r *DataDeviceManagerGetDataDeviceRequest) Opcode() uint16
func (*DataDeviceManagerGetDataDeviceRequest) Since ¶
func (r *DataDeviceManagerGetDataDeviceRequest) Since() int
type DataDeviceManagerReleaseRequest ¶
type DataDeviceManagerReleaseRequest struct {
}
func (*DataDeviceManagerReleaseRequest) Marshal ¶
func (r *DataDeviceManagerReleaseRequest) Marshal(w *wire.Writer) error
func (*DataDeviceManagerReleaseRequest) Opcode ¶
func (r *DataDeviceManagerReleaseRequest) Opcode() uint16
func (*DataDeviceManagerReleaseRequest) Since ¶
func (r *DataDeviceManagerReleaseRequest) Since() int
type DataDeviceMotionEvent ¶
func (*DataDeviceMotionEvent) Opcode ¶
func (e *DataDeviceMotionEvent) Opcode() uint16
func (*DataDeviceMotionEvent) Since ¶
func (e *DataDeviceMotionEvent) Since() int
type DataDeviceMotionFunc ¶
type DataDeviceMotionFunc func(ev DataDeviceMotionEvent)
type DataDeviceReleaseRequest ¶
type DataDeviceReleaseRequest struct {
}
func (*DataDeviceReleaseRequest) Marshal ¶
func (r *DataDeviceReleaseRequest) Marshal(w *wire.Writer) error
func (*DataDeviceReleaseRequest) Opcode ¶
func (r *DataDeviceReleaseRequest) Opcode() uint16
func (*DataDeviceReleaseRequest) Since ¶
func (r *DataDeviceReleaseRequest) Since() int
type DataDeviceSelectionEvent ¶
func (*DataDeviceSelectionEvent) Opcode ¶
func (e *DataDeviceSelectionEvent) Opcode() uint16
func (*DataDeviceSelectionEvent) Since ¶
func (e *DataDeviceSelectionEvent) Since() int
type DataDeviceSelectionFunc ¶
type DataDeviceSelectionFunc func(ev DataDeviceSelectionEvent)
type DataDeviceSetSelectionRequest ¶
func (*DataDeviceSetSelectionRequest) Marshal ¶
func (r *DataDeviceSetSelectionRequest) Marshal(w *wire.Writer) error
func (*DataDeviceSetSelectionRequest) Opcode ¶
func (r *DataDeviceSetSelectionRequest) Opcode() uint16
func (*DataDeviceSetSelectionRequest) Since ¶
func (r *DataDeviceSetSelectionRequest) Since() int
type DataDeviceStartDragRequest ¶
type DataDeviceStartDragRequest struct {
Source wire.ObjectID
Origin wire.ObjectID
Icon wire.ObjectID
Serial uint32
}
func (*DataDeviceStartDragRequest) Marshal ¶
func (r *DataDeviceStartDragRequest) Marshal(w *wire.Writer) error
func (*DataDeviceStartDragRequest) Opcode ¶
func (r *DataDeviceStartDragRequest) Opcode() uint16
func (*DataDeviceStartDragRequest) Since ¶
func (r *DataDeviceStartDragRequest) Since() int
type DataOffer ¶
type DataOffer struct {
// contains filtered or unexported fields
}
func NewDataOffer ¶
func (*DataOffer) OnAction ¶
func (o *DataOffer) OnAction(fn DataOfferActionFunc)
func (*DataOffer) OnOffer ¶
func (o *DataOffer) OnOffer(fn DataOfferOfferFunc)
func (*DataOffer) OnSourceActions ¶
func (o *DataOffer) OnSourceActions(fn DataOfferSourceActionsFunc)
type DataOfferAcceptRequest ¶
func (*DataOfferAcceptRequest) Marshal ¶
func (r *DataOfferAcceptRequest) Marshal(w *wire.Writer) error
func (*DataOfferAcceptRequest) Opcode ¶
func (r *DataOfferAcceptRequest) Opcode() uint16
func (*DataOfferAcceptRequest) Since ¶
func (r *DataOfferAcceptRequest) Since() int
type DataOfferActionEvent ¶
type DataOfferActionEvent struct {
DndAction uint32
}
func (*DataOfferActionEvent) Opcode ¶
func (e *DataOfferActionEvent) Opcode() uint16
func (*DataOfferActionEvent) Since ¶
func (e *DataOfferActionEvent) Since() int
type DataOfferActionFunc ¶
type DataOfferActionFunc func(ev DataOfferActionEvent)
type DataOfferDestroyRequest ¶
type DataOfferDestroyRequest struct {
}
func (*DataOfferDestroyRequest) Marshal ¶
func (r *DataOfferDestroyRequest) Marshal(w *wire.Writer) error
func (*DataOfferDestroyRequest) Opcode ¶
func (r *DataOfferDestroyRequest) Opcode() uint16
func (*DataOfferDestroyRequest) Since ¶
func (r *DataOfferDestroyRequest) Since() int
type DataOfferError ¶
type DataOfferError uint32
const ( DataOfferErrorInvalidFinish DataOfferError = 0 DataOfferErrorInvalidActionMask DataOfferError = 1 DataOfferErrorInvalidAction DataOfferError = 2 DataOfferErrorInvalidOffer DataOfferError = 3 )
type DataOfferFinishRequest ¶
type DataOfferFinishRequest struct {
}
func (*DataOfferFinishRequest) Marshal ¶
func (r *DataOfferFinishRequest) Marshal(w *wire.Writer) error
func (*DataOfferFinishRequest) Opcode ¶
func (r *DataOfferFinishRequest) Opcode() uint16
func (*DataOfferFinishRequest) Since ¶
func (r *DataOfferFinishRequest) Since() int
type DataOfferOfferEvent ¶
type DataOfferOfferEvent struct {
MimeType string
}
func (*DataOfferOfferEvent) Opcode ¶
func (e *DataOfferOfferEvent) Opcode() uint16
func (*DataOfferOfferEvent) Since ¶
func (e *DataOfferOfferEvent) Since() int
type DataOfferOfferFunc ¶
type DataOfferOfferFunc func(ev DataOfferOfferEvent)
type DataOfferReceiveRequest ¶
func (*DataOfferReceiveRequest) Marshal ¶
func (r *DataOfferReceiveRequest) Marshal(w *wire.Writer) error
func (*DataOfferReceiveRequest) Opcode ¶
func (r *DataOfferReceiveRequest) Opcode() uint16
func (*DataOfferReceiveRequest) Since ¶
func (r *DataOfferReceiveRequest) Since() int
type DataOfferSetActionsRequest ¶
func (*DataOfferSetActionsRequest) Marshal ¶
func (r *DataOfferSetActionsRequest) Marshal(w *wire.Writer) error
func (*DataOfferSetActionsRequest) Opcode ¶
func (r *DataOfferSetActionsRequest) Opcode() uint16
func (*DataOfferSetActionsRequest) Since ¶
func (r *DataOfferSetActionsRequest) Since() int
type DataOfferSourceActionsEvent ¶
type DataOfferSourceActionsEvent struct {
SourceActions uint32
}
func (*DataOfferSourceActionsEvent) Opcode ¶
func (e *DataOfferSourceActionsEvent) Opcode() uint16
func (*DataOfferSourceActionsEvent) Since ¶
func (e *DataOfferSourceActionsEvent) Since() int
type DataOfferSourceActionsFunc ¶
type DataOfferSourceActionsFunc func(ev DataOfferSourceActionsEvent)
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
func BindDataSource ¶
func BindDataSource(b Binder, name uint32, version uint32) (*DataSource, error)
func NewDataSource ¶
func NewDataSource(p *Proxy) *DataSource
func (*DataSource) Destroy ¶
func (o *DataSource) Destroy() error
func (*DataSource) Offer ¶
func (o *DataSource) Offer(mimeType string) error
func (*DataSource) OnAction ¶
func (o *DataSource) OnAction(fn DataSourceActionFunc)
func (*DataSource) OnCancelled ¶
func (o *DataSource) OnCancelled(fn DataSourceCancelledFunc)
func (*DataSource) OnDndDropPerformed ¶
func (o *DataSource) OnDndDropPerformed(fn DataSourceDndDropPerformedFunc)
func (*DataSource) OnDndFinished ¶
func (o *DataSource) OnDndFinished(fn DataSourceDndFinishedFunc)
func (*DataSource) OnSend ¶
func (o *DataSource) OnSend(fn DataSourceSendFunc)
func (*DataSource) OnTarget ¶
func (o *DataSource) OnTarget(fn DataSourceTargetFunc)
func (*DataSource) Proxy ¶
func (o *DataSource) Proxy() *Proxy
func (*DataSource) SetActions ¶
func (o *DataSource) SetActions(dndActions uint32) error
type DataSourceActionEvent ¶
type DataSourceActionEvent struct {
DndAction uint32
}
func (*DataSourceActionEvent) Opcode ¶
func (e *DataSourceActionEvent) Opcode() uint16
func (*DataSourceActionEvent) Since ¶
func (e *DataSourceActionEvent) Since() int
type DataSourceActionFunc ¶
type DataSourceActionFunc func(ev DataSourceActionEvent)
type DataSourceCancelledEvent ¶
type DataSourceCancelledEvent struct {
}
func (*DataSourceCancelledEvent) Opcode ¶
func (e *DataSourceCancelledEvent) Opcode() uint16
func (*DataSourceCancelledEvent) Since ¶
func (e *DataSourceCancelledEvent) Since() int
type DataSourceCancelledFunc ¶
type DataSourceCancelledFunc func(ev DataSourceCancelledEvent)
type DataSourceDestroyRequest ¶
type DataSourceDestroyRequest struct {
}
func (*DataSourceDestroyRequest) Marshal ¶
func (r *DataSourceDestroyRequest) Marshal(w *wire.Writer) error
func (*DataSourceDestroyRequest) Opcode ¶
func (r *DataSourceDestroyRequest) Opcode() uint16
func (*DataSourceDestroyRequest) Since ¶
func (r *DataSourceDestroyRequest) Since() int
type DataSourceDndDropPerformedEvent ¶
type DataSourceDndDropPerformedEvent struct {
}
func (*DataSourceDndDropPerformedEvent) Opcode ¶
func (e *DataSourceDndDropPerformedEvent) Opcode() uint16
func (*DataSourceDndDropPerformedEvent) Since ¶
func (e *DataSourceDndDropPerformedEvent) Since() int
type DataSourceDndDropPerformedFunc ¶
type DataSourceDndDropPerformedFunc func(ev DataSourceDndDropPerformedEvent)
type DataSourceDndFinishedEvent ¶
type DataSourceDndFinishedEvent struct {
}
func (*DataSourceDndFinishedEvent) Opcode ¶
func (e *DataSourceDndFinishedEvent) Opcode() uint16
func (*DataSourceDndFinishedEvent) Since ¶
func (e *DataSourceDndFinishedEvent) Since() int
type DataSourceDndFinishedFunc ¶
type DataSourceDndFinishedFunc func(ev DataSourceDndFinishedEvent)
type DataSourceError ¶
type DataSourceError uint32
const ( DataSourceErrorInvalidActionMask DataSourceError = 0 DataSourceErrorInvalidSource DataSourceError = 1 )
type DataSourceOfferRequest ¶
type DataSourceOfferRequest struct {
MimeType string
}
func (*DataSourceOfferRequest) Marshal ¶
func (r *DataSourceOfferRequest) Marshal(w *wire.Writer) error
func (*DataSourceOfferRequest) Opcode ¶
func (r *DataSourceOfferRequest) Opcode() uint16
func (*DataSourceOfferRequest) Since ¶
func (r *DataSourceOfferRequest) Since() int
type DataSourceSendEvent ¶
func (*DataSourceSendEvent) Opcode ¶
func (e *DataSourceSendEvent) Opcode() uint16
func (*DataSourceSendEvent) Since ¶
func (e *DataSourceSendEvent) Since() int
type DataSourceSendFunc ¶
type DataSourceSendFunc func(ev DataSourceSendEvent)
type DataSourceSetActionsRequest ¶
type DataSourceSetActionsRequest struct {
DndActions uint32
}
func (*DataSourceSetActionsRequest) Marshal ¶
func (r *DataSourceSetActionsRequest) Marshal(w *wire.Writer) error
func (*DataSourceSetActionsRequest) Opcode ¶
func (r *DataSourceSetActionsRequest) Opcode() uint16
func (*DataSourceSetActionsRequest) Since ¶
func (r *DataSourceSetActionsRequest) Since() int
type DataSourceTargetEvent ¶
type DataSourceTargetEvent struct {
MimeType string
}
func (*DataSourceTargetEvent) Opcode ¶
func (e *DataSourceTargetEvent) Opcode() uint16
func (*DataSourceTargetEvent) Since ¶
func (e *DataSourceTargetEvent) Since() int
type DataSourceTargetFunc ¶
type DataSourceTargetFunc func(ev DataSourceTargetEvent)
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func ConnectPath ¶
ConnectPath dials the Wayland display socket at the given path.
func NewDisplay ¶
func (*Display) DispatchPending ¶
DispatchPending dispatches all pending events without blocking.
func (*Display) GetRegistry ¶
func (*Display) OnDeleteID ¶
func (o *Display) OnDeleteID(fn DisplayDeleteIDFunc)
func (*Display) OnError ¶
func (o *Display) OnError(fn DisplayErrorFunc)
func (*Display) Roundtrip ¶
Roundtrip sends a sync request and blocks until the server has processed it and all preceding requests, dispatching events along the way.
func (*Display) SetOnError ¶
func (d *Display) SetOnError(fn func(*ProtocolError))
SetOnError registers a callback for protocol error events.
type DisplayDeleteIDEvent ¶
type DisplayDeleteIDEvent struct {
ID uint32
}
func (*DisplayDeleteIDEvent) Opcode ¶
func (e *DisplayDeleteIDEvent) Opcode() uint16
func (*DisplayDeleteIDEvent) Since ¶
func (e *DisplayDeleteIDEvent) Since() int
type DisplayDeleteIDFunc ¶
type DisplayDeleteIDFunc func(ev DisplayDeleteIDEvent)
type DisplayError ¶
type DisplayError uint32
const ( DisplayErrorInvalidObject DisplayError = 0 DisplayErrorInvalidMethod DisplayError = 1 DisplayErrorNoMemory DisplayError = 2 DisplayErrorImplementation DisplayError = 3 )
type DisplayErrorEvent ¶
func (*DisplayErrorEvent) Opcode ¶
func (e *DisplayErrorEvent) Opcode() uint16
func (*DisplayErrorEvent) Since ¶
func (e *DisplayErrorEvent) Since() int
type DisplayErrorFunc ¶
type DisplayErrorFunc func(ev DisplayErrorEvent)
type DisplayGetRegistryRequest ¶
func (*DisplayGetRegistryRequest) Marshal ¶
func (r *DisplayGetRegistryRequest) Marshal(w *wire.Writer) error
func (*DisplayGetRegistryRequest) Opcode ¶
func (r *DisplayGetRegistryRequest) Opcode() uint16
func (*DisplayGetRegistryRequest) Since ¶
func (r *DisplayGetRegistryRequest) Since() int
type DisplaySyncRequest ¶
func (*DisplaySyncRequest) Opcode ¶
func (r *DisplaySyncRequest) Opcode() uint16
func (*DisplaySyncRequest) Since ¶
func (r *DisplaySyncRequest) Since() int
type FixesDestroyRegistryRequest ¶
func (*FixesDestroyRegistryRequest) Marshal ¶
func (r *FixesDestroyRegistryRequest) Marshal(w *wire.Writer) error
func (*FixesDestroyRegistryRequest) Opcode ¶
func (r *FixesDestroyRegistryRequest) Opcode() uint16
func (*FixesDestroyRegistryRequest) Since ¶
func (r *FixesDestroyRegistryRequest) Since() int
type FixesDestroyRequest ¶
type FixesDestroyRequest struct {
}
func (*FixesDestroyRequest) Opcode ¶
func (r *FixesDestroyRequest) Opcode() uint16
func (*FixesDestroyRequest) Since ¶
func (r *FixesDestroyRequest) Since() int
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func NewKeyboard ¶
func (*Keyboard) OnEnter ¶
func (o *Keyboard) OnEnter(fn KeyboardEnterFunc)
func (*Keyboard) OnKey ¶
func (o *Keyboard) OnKey(fn KeyboardKeyFunc)
func (*Keyboard) OnKeymap ¶
func (o *Keyboard) OnKeymap(fn KeyboardKeymapFunc)
func (*Keyboard) OnLeave ¶
func (o *Keyboard) OnLeave(fn KeyboardLeaveFunc)
func (*Keyboard) OnModifiers ¶
func (o *Keyboard) OnModifiers(fn KeyboardModifiersFunc)
func (*Keyboard) OnRepeatInfo ¶
func (o *Keyboard) OnRepeatInfo(fn KeyboardRepeatInfoFunc)
type KeyboardEnterEvent ¶
func (*KeyboardEnterEvent) Opcode ¶
func (e *KeyboardEnterEvent) Opcode() uint16
func (*KeyboardEnterEvent) Since ¶
func (e *KeyboardEnterEvent) Since() int
type KeyboardEnterFunc ¶
type KeyboardEnterFunc func(ev KeyboardEnterEvent)
type KeyboardKeyEvent ¶
func (*KeyboardKeyEvent) Opcode ¶
func (e *KeyboardKeyEvent) Opcode() uint16
func (*KeyboardKeyEvent) Since ¶
func (e *KeyboardKeyEvent) Since() int
type KeyboardKeyFunc ¶
type KeyboardKeyFunc func(ev KeyboardKeyEvent)
type KeyboardKeyState ¶
type KeyboardKeyState uint32
const ( KeyboardKeyStateReleased KeyboardKeyState = 0 KeyboardKeyStatePressed KeyboardKeyState = 1 KeyboardKeyStateRepeated KeyboardKeyState = 2 )
type KeyboardKeymapEvent ¶
func (*KeyboardKeymapEvent) Opcode ¶
func (e *KeyboardKeymapEvent) Opcode() uint16
func (*KeyboardKeymapEvent) Since ¶
func (e *KeyboardKeymapEvent) Since() int
type KeyboardKeymapFormat ¶
type KeyboardKeymapFormat uint32
const ( KeyboardKeymapFormatNoKeymap KeyboardKeymapFormat = 0 KeyboardKeymapFormatXkbV1 KeyboardKeymapFormat = 1 )
type KeyboardKeymapFunc ¶
type KeyboardKeymapFunc func(ev KeyboardKeymapEvent)
type KeyboardLeaveEvent ¶
func (*KeyboardLeaveEvent) Opcode ¶
func (e *KeyboardLeaveEvent) Opcode() uint16
func (*KeyboardLeaveEvent) Since ¶
func (e *KeyboardLeaveEvent) Since() int
type KeyboardLeaveFunc ¶
type KeyboardLeaveFunc func(ev KeyboardLeaveEvent)
type KeyboardModifiersEvent ¶
type KeyboardModifiersEvent struct {
Serial uint32
ModsDepressed uint32
ModsLatched uint32
ModsLocked uint32
Group uint32
}
func (*KeyboardModifiersEvent) Opcode ¶
func (e *KeyboardModifiersEvent) Opcode() uint16
func (*KeyboardModifiersEvent) Since ¶
func (e *KeyboardModifiersEvent) Since() int
type KeyboardModifiersFunc ¶
type KeyboardModifiersFunc func(ev KeyboardModifiersEvent)
type KeyboardReleaseRequest ¶
type KeyboardReleaseRequest struct {
}
func (*KeyboardReleaseRequest) Marshal ¶
func (r *KeyboardReleaseRequest) Marshal(w *wire.Writer) error
func (*KeyboardReleaseRequest) Opcode ¶
func (r *KeyboardReleaseRequest) Opcode() uint16
func (*KeyboardReleaseRequest) Since ¶
func (r *KeyboardReleaseRequest) Since() int
type KeyboardRepeatInfoEvent ¶
func (*KeyboardRepeatInfoEvent) Opcode ¶
func (e *KeyboardRepeatInfoEvent) Opcode() uint16
func (*KeyboardRepeatInfoEvent) Since ¶
func (e *KeyboardRepeatInfoEvent) Since() int
type KeyboardRepeatInfoFunc ¶
type KeyboardRepeatInfoFunc func(ev KeyboardRepeatInfoEvent)
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func (*Output) OnDescription ¶
func (o *Output) OnDescription(fn OutputDescriptionFunc)
func (*Output) OnDone ¶
func (o *Output) OnDone(fn OutputDoneFunc)
func (*Output) OnGeometry ¶
func (o *Output) OnGeometry(fn OutputGeometryFunc)
func (*Output) OnMode ¶
func (o *Output) OnMode(fn OutputModeFunc)
func (*Output) OnName ¶
func (o *Output) OnName(fn OutputNameFunc)
func (*Output) OnScale ¶
func (o *Output) OnScale(fn OutputScaleFunc)
type OutputDescriptionEvent ¶
type OutputDescriptionEvent struct {
Description string
}
func (*OutputDescriptionEvent) Opcode ¶
func (e *OutputDescriptionEvent) Opcode() uint16
func (*OutputDescriptionEvent) Since ¶
func (e *OutputDescriptionEvent) Since() int
type OutputDescriptionFunc ¶
type OutputDescriptionFunc func(ev OutputDescriptionEvent)
type OutputDoneEvent ¶
type OutputDoneEvent struct {
}
func (*OutputDoneEvent) Opcode ¶
func (e *OutputDoneEvent) Opcode() uint16
func (*OutputDoneEvent) Since ¶
func (e *OutputDoneEvent) Since() int
type OutputDoneFunc ¶
type OutputDoneFunc func(ev OutputDoneEvent)
type OutputGeometryEvent ¶
type OutputGeometryEvent struct {
X int32
Y int32
PhysicalWidth int32
PhysicalHeight int32
Subpixel int32
Make string
Model string
Transform int32
}
func (*OutputGeometryEvent) Opcode ¶
func (e *OutputGeometryEvent) Opcode() uint16
func (*OutputGeometryEvent) Since ¶
func (e *OutputGeometryEvent) Since() int
type OutputGeometryFunc ¶
type OutputGeometryFunc func(ev OutputGeometryEvent)
type OutputMode ¶
type OutputMode uint32
const ( OutputModeCurrent OutputMode = 1 OutputModePreferred OutputMode = 2 )
type OutputModeEvent ¶
func (*OutputModeEvent) Opcode ¶
func (e *OutputModeEvent) Opcode() uint16
func (*OutputModeEvent) Since ¶
func (e *OutputModeEvent) Since() int
type OutputModeFunc ¶
type OutputModeFunc func(ev OutputModeEvent)
type OutputNameEvent ¶
type OutputNameEvent struct {
Name string
}
func (*OutputNameEvent) Opcode ¶
func (e *OutputNameEvent) Opcode() uint16
func (*OutputNameEvent) Since ¶
func (e *OutputNameEvent) Since() int
type OutputNameFunc ¶
type OutputNameFunc func(ev OutputNameEvent)
type OutputReleaseRequest ¶
type OutputReleaseRequest struct {
}
func (*OutputReleaseRequest) Opcode ¶
func (r *OutputReleaseRequest) Opcode() uint16
func (*OutputReleaseRequest) Since ¶
func (r *OutputReleaseRequest) Since() int
type OutputScaleEvent ¶
type OutputScaleEvent struct {
Factor int32
}
func (*OutputScaleEvent) Opcode ¶
func (e *OutputScaleEvent) Opcode() uint16
func (*OutputScaleEvent) Since ¶
func (e *OutputScaleEvent) Since() int
type OutputScaleFunc ¶
type OutputScaleFunc func(ev OutputScaleEvent)
type OutputSubpixel ¶
type OutputSubpixel uint32
const ( OutputSubpixelUnknown OutputSubpixel = 0 OutputSubpixelNone OutputSubpixel = 1 OutputSubpixelHorizontalRgb OutputSubpixel = 2 OutputSubpixelHorizontalBgr OutputSubpixel = 3 OutputSubpixelVerticalRgb OutputSubpixel = 4 OutputSubpixelVerticalBgr OutputSubpixel = 5 )
type OutputTransform ¶
type OutputTransform uint32
const ( OutputTransformNormal OutputTransform = 0 OutputTransform90 OutputTransform = 1 OutputTransform180 OutputTransform = 2 OutputTransform270 OutputTransform = 3 OutputTransformFlipped OutputTransform = 4 OutputTransformFlipped90 OutputTransform = 5 OutputTransformFlipped180 OutputTransform = 6 OutputTransformFlipped270 OutputTransform = 7 )
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
func NewPointer ¶
func (*Pointer) OnAxis ¶
func (o *Pointer) OnAxis(fn PointerAxisFunc)
func (*Pointer) OnAxisDiscrete ¶
func (o *Pointer) OnAxisDiscrete(fn PointerAxisDiscreteFunc)
func (*Pointer) OnAxisRelativeDirection ¶
func (o *Pointer) OnAxisRelativeDirection(fn PointerAxisRelativeDirectionFunc)
func (*Pointer) OnAxisSource ¶
func (o *Pointer) OnAxisSource(fn PointerAxisSourceFunc)
func (*Pointer) OnAxisStop ¶
func (o *Pointer) OnAxisStop(fn PointerAxisStopFunc)
func (*Pointer) OnAxisValue120 ¶
func (o *Pointer) OnAxisValue120(fn PointerAxisValue120Func)
func (*Pointer) OnButton ¶
func (o *Pointer) OnButton(fn PointerButtonFunc)
func (*Pointer) OnEnter ¶
func (o *Pointer) OnEnter(fn PointerEnterFunc)
func (*Pointer) OnFrame ¶
func (o *Pointer) OnFrame(fn PointerFrameFunc)
func (*Pointer) OnLeave ¶
func (o *Pointer) OnLeave(fn PointerLeaveFunc)
func (*Pointer) OnMotion ¶
func (o *Pointer) OnMotion(fn PointerMotionFunc)
type PointerAxis ¶
type PointerAxis uint32
const ( PointerAxisVerticalScroll PointerAxis = 0 PointerAxisHorizontalScroll PointerAxis = 1 )
type PointerAxisDiscreteEvent ¶
func (*PointerAxisDiscreteEvent) Opcode ¶
func (e *PointerAxisDiscreteEvent) Opcode() uint16
func (*PointerAxisDiscreteEvent) Since ¶
func (e *PointerAxisDiscreteEvent) Since() int
type PointerAxisDiscreteFunc ¶
type PointerAxisDiscreteFunc func(ev PointerAxisDiscreteEvent)
type PointerAxisEvent ¶
func (*PointerAxisEvent) Opcode ¶
func (e *PointerAxisEvent) Opcode() uint16
func (*PointerAxisEvent) Since ¶
func (e *PointerAxisEvent) Since() int
type PointerAxisFunc ¶
type PointerAxisFunc func(ev PointerAxisEvent)
type PointerAxisRelativeDirection ¶
type PointerAxisRelativeDirection uint32
const ( PointerAxisRelativeDirectionIDentical PointerAxisRelativeDirection = 0 PointerAxisRelativeDirectionInverted PointerAxisRelativeDirection = 1 )
type PointerAxisRelativeDirectionEvent ¶
func (*PointerAxisRelativeDirectionEvent) Opcode ¶
func (e *PointerAxisRelativeDirectionEvent) Opcode() uint16
func (*PointerAxisRelativeDirectionEvent) Since ¶
func (e *PointerAxisRelativeDirectionEvent) Since() int
type PointerAxisRelativeDirectionFunc ¶
type PointerAxisRelativeDirectionFunc func(ev PointerAxisRelativeDirectionEvent)
type PointerAxisSource ¶
type PointerAxisSource uint32
const ( PointerAxisSourceWheel PointerAxisSource = 0 PointerAxisSourceFinger PointerAxisSource = 1 PointerAxisSourceContinuous PointerAxisSource = 2 PointerAxisSourceWheelTilt PointerAxisSource = 3 )
type PointerAxisSourceEvent ¶
type PointerAxisSourceEvent struct {
AxisSource uint32
}
func (*PointerAxisSourceEvent) Opcode ¶
func (e *PointerAxisSourceEvent) Opcode() uint16
func (*PointerAxisSourceEvent) Since ¶
func (e *PointerAxisSourceEvent) Since() int
type PointerAxisSourceFunc ¶
type PointerAxisSourceFunc func(ev PointerAxisSourceEvent)
type PointerAxisStopEvent ¶
func (*PointerAxisStopEvent) Opcode ¶
func (e *PointerAxisStopEvent) Opcode() uint16
func (*PointerAxisStopEvent) Since ¶
func (e *PointerAxisStopEvent) Since() int
type PointerAxisStopFunc ¶
type PointerAxisStopFunc func(ev PointerAxisStopEvent)
type PointerAxisValue120Event ¶
func (*PointerAxisValue120Event) Opcode ¶
func (e *PointerAxisValue120Event) Opcode() uint16
func (*PointerAxisValue120Event) Since ¶
func (e *PointerAxisValue120Event) Since() int
type PointerAxisValue120Func ¶
type PointerAxisValue120Func func(ev PointerAxisValue120Event)
type PointerButtonEvent ¶
func (*PointerButtonEvent) Opcode ¶
func (e *PointerButtonEvent) Opcode() uint16
func (*PointerButtonEvent) Since ¶
func (e *PointerButtonEvent) Since() int
type PointerButtonFunc ¶
type PointerButtonFunc func(ev PointerButtonEvent)
type PointerButtonState ¶
type PointerButtonState uint32
const ( PointerButtonStateReleased PointerButtonState = 0 PointerButtonStatePressed PointerButtonState = 1 )
type PointerEnterEvent ¶
type PointerEnterEvent struct {
Serial uint32
Surface wire.ObjectID
SurfaceX wire.Fixed
SurfaceY wire.Fixed
}
func (*PointerEnterEvent) Opcode ¶
func (e *PointerEnterEvent) Opcode() uint16
func (*PointerEnterEvent) Since ¶
func (e *PointerEnterEvent) Since() int
type PointerEnterFunc ¶
type PointerEnterFunc func(ev PointerEnterEvent)
type PointerFrameEvent ¶
type PointerFrameEvent struct {
}
func (*PointerFrameEvent) Opcode ¶
func (e *PointerFrameEvent) Opcode() uint16
func (*PointerFrameEvent) Since ¶
func (e *PointerFrameEvent) Since() int
type PointerFrameFunc ¶
type PointerFrameFunc func(ev PointerFrameEvent)
type PointerLeaveEvent ¶
func (*PointerLeaveEvent) Opcode ¶
func (e *PointerLeaveEvent) Opcode() uint16
func (*PointerLeaveEvent) Since ¶
func (e *PointerLeaveEvent) Since() int
type PointerLeaveFunc ¶
type PointerLeaveFunc func(ev PointerLeaveEvent)
type PointerMotionEvent ¶
func (*PointerMotionEvent) Opcode ¶
func (e *PointerMotionEvent) Opcode() uint16
func (*PointerMotionEvent) Since ¶
func (e *PointerMotionEvent) Since() int
type PointerMotionFunc ¶
type PointerMotionFunc func(ev PointerMotionEvent)
type PointerReleaseRequest ¶
type PointerReleaseRequest struct {
}
func (*PointerReleaseRequest) Marshal ¶
func (r *PointerReleaseRequest) Marshal(w *wire.Writer) error
func (*PointerReleaseRequest) Opcode ¶
func (r *PointerReleaseRequest) Opcode() uint16
func (*PointerReleaseRequest) Since ¶
func (r *PointerReleaseRequest) Since() int
type PointerSetCursorRequest ¶
type PointerSetCursorRequest struct {
Serial uint32
Surface wire.ObjectID
HotspotX int32
HotspotY int32
}
func (*PointerSetCursorRequest) Marshal ¶
func (r *PointerSetCursorRequest) Marshal(w *wire.Writer) error
func (*PointerSetCursorRequest) Opcode ¶
func (r *PointerSetCursorRequest) Opcode() uint16
func (*PointerSetCursorRequest) Since ¶
func (r *PointerSetCursorRequest) Since() int
type ProtocolError ¶
func (*ProtocolError) Error ¶
func (e *ProtocolError) Error() string
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func NewProxyWithID ¶
func (*Proxy) SetEventFDCounts ¶
SetEventFDCounts sets the per-opcode file descriptor counts for incoming events.
func (*Proxy) SetVersion ¶
type RegionAddRequest ¶
func (*RegionAddRequest) Opcode ¶
func (r *RegionAddRequest) Opcode() uint16
func (*RegionAddRequest) Since ¶
func (r *RegionAddRequest) Since() int
type RegionDestroyRequest ¶
type RegionDestroyRequest struct {
}
func (*RegionDestroyRequest) Opcode ¶
func (r *RegionDestroyRequest) Opcode() uint16
func (*RegionDestroyRequest) Since ¶
func (r *RegionDestroyRequest) Since() int
type RegionSubtractRequest ¶
func (*RegionSubtractRequest) Marshal ¶
func (r *RegionSubtractRequest) Marshal(w *wire.Writer) error
func (*RegionSubtractRequest) Opcode ¶
func (r *RegionSubtractRequest) Opcode() uint16
func (*RegionSubtractRequest) Since ¶
func (r *RegionSubtractRequest) Since() int
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) OnGlobal ¶
func (o *Registry) OnGlobal(fn RegistryGlobalFunc)
func (*Registry) OnGlobalRemove ¶
func (o *Registry) OnGlobalRemove(fn RegistryGlobalRemoveFunc)
type RegistryBindRequest ¶
func (*RegistryBindRequest) Opcode ¶
func (r *RegistryBindRequest) Opcode() uint16
func (*RegistryBindRequest) Since ¶
func (r *RegistryBindRequest) Since() int
type RegistryGlobalEvent ¶
func (*RegistryGlobalEvent) Opcode ¶
func (e *RegistryGlobalEvent) Opcode() uint16
func (*RegistryGlobalEvent) Since ¶
func (e *RegistryGlobalEvent) Since() int
type RegistryGlobalFunc ¶
type RegistryGlobalFunc func(ev RegistryGlobalEvent)
type RegistryGlobalRemoveEvent ¶
type RegistryGlobalRemoveEvent struct {
Name uint32
}
func (*RegistryGlobalRemoveEvent) Opcode ¶
func (e *RegistryGlobalRemoveEvent) Opcode() uint16
func (*RegistryGlobalRemoveEvent) Since ¶
func (e *RegistryGlobalRemoveEvent) Since() int
type RegistryGlobalRemoveFunc ¶
type RegistryGlobalRemoveFunc func(ev RegistryGlobalRemoveEvent)
type Seat ¶
type Seat struct {
// contains filtered or unexported fields
}
func (*Seat) GetKeyboard ¶
func (*Seat) GetPointer ¶
func (*Seat) OnCapabilities ¶
func (o *Seat) OnCapabilities(fn SeatCapabilitiesFunc)
func (*Seat) OnName ¶
func (o *Seat) OnName(fn SeatNameFunc)
type SeatCapabilitiesEvent ¶
type SeatCapabilitiesEvent struct {
Capabilities uint32
}
func (*SeatCapabilitiesEvent) Opcode ¶
func (e *SeatCapabilitiesEvent) Opcode() uint16
func (*SeatCapabilitiesEvent) Since ¶
func (e *SeatCapabilitiesEvent) Since() int
type SeatCapabilitiesFunc ¶
type SeatCapabilitiesFunc func(ev SeatCapabilitiesEvent)
type SeatCapability ¶
type SeatCapability uint32
const ( SeatCapabilityPointer SeatCapability = 1 SeatCapabilityKeyboard SeatCapability = 2 SeatCapabilityTouch SeatCapability = 4 )
type SeatGetKeyboardRequest ¶
func (*SeatGetKeyboardRequest) Marshal ¶
func (r *SeatGetKeyboardRequest) Marshal(w *wire.Writer) error
func (*SeatGetKeyboardRequest) Opcode ¶
func (r *SeatGetKeyboardRequest) Opcode() uint16
func (*SeatGetKeyboardRequest) Since ¶
func (r *SeatGetKeyboardRequest) Since() int
type SeatGetPointerRequest ¶
func (*SeatGetPointerRequest) Marshal ¶
func (r *SeatGetPointerRequest) Marshal(w *wire.Writer) error
func (*SeatGetPointerRequest) Opcode ¶
func (r *SeatGetPointerRequest) Opcode() uint16
func (*SeatGetPointerRequest) Since ¶
func (r *SeatGetPointerRequest) Since() int
type SeatGetTouchRequest ¶
func (*SeatGetTouchRequest) Opcode ¶
func (r *SeatGetTouchRequest) Opcode() uint16
func (*SeatGetTouchRequest) Since ¶
func (r *SeatGetTouchRequest) Since() int
type SeatNameEvent ¶
type SeatNameEvent struct {
Name string
}
func (*SeatNameEvent) Opcode ¶
func (e *SeatNameEvent) Opcode() uint16
func (*SeatNameEvent) Since ¶
func (e *SeatNameEvent) Since() int
type SeatNameFunc ¶
type SeatNameFunc func(ev SeatNameEvent)
type SeatReleaseRequest ¶
type SeatReleaseRequest struct {
}
func (*SeatReleaseRequest) Opcode ¶
func (r *SeatReleaseRequest) Opcode() uint16
func (*SeatReleaseRequest) Since ¶
func (r *SeatReleaseRequest) Since() int
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
func (*Shell) GetShellSurface ¶
func (o *Shell) GetShellSurface(surface wire.ObjectID) (*ShellSurface, error)
type ShellGetShellSurfaceRequest ¶
func (*ShellGetShellSurfaceRequest) Marshal ¶
func (r *ShellGetShellSurfaceRequest) Marshal(w *wire.Writer) error
func (*ShellGetShellSurfaceRequest) Opcode ¶
func (r *ShellGetShellSurfaceRequest) Opcode() uint16
func (*ShellGetShellSurfaceRequest) Since ¶
func (r *ShellGetShellSurfaceRequest) Since() int
type ShellSurface ¶
type ShellSurface struct {
// contains filtered or unexported fields
}
func BindShellSurface ¶
func BindShellSurface(b Binder, name uint32, version uint32) (*ShellSurface, error)
func NewShellSurface ¶
func NewShellSurface(p *Proxy) *ShellSurface
func (*ShellSurface) OnConfigure ¶
func (o *ShellSurface) OnConfigure(fn ShellSurfaceConfigureFunc)
func (*ShellSurface) OnPing ¶
func (o *ShellSurface) OnPing(fn ShellSurfacePingFunc)
func (*ShellSurface) OnPopupDone ¶
func (o *ShellSurface) OnPopupDone(fn ShellSurfacePopupDoneFunc)
func (*ShellSurface) Pong ¶
func (o *ShellSurface) Pong(serial uint32) error
func (*ShellSurface) Proxy ¶
func (o *ShellSurface) Proxy() *Proxy
func (*ShellSurface) SetClass ¶
func (o *ShellSurface) SetClass(class string) error
func (*ShellSurface) SetFullscreen ¶
func (*ShellSurface) SetMaximized ¶
func (o *ShellSurface) SetMaximized(output wire.ObjectID) error
func (*ShellSurface) SetTitle ¶
func (o *ShellSurface) SetTitle(title string) error
func (*ShellSurface) SetToplevel ¶
func (o *ShellSurface) SetToplevel() error
func (*ShellSurface) SetTransient ¶
type ShellSurfaceConfigureEvent ¶
func (*ShellSurfaceConfigureEvent) Opcode ¶
func (e *ShellSurfaceConfigureEvent) Opcode() uint16
func (*ShellSurfaceConfigureEvent) Since ¶
func (e *ShellSurfaceConfigureEvent) Since() int
type ShellSurfaceConfigureFunc ¶
type ShellSurfaceConfigureFunc func(ev ShellSurfaceConfigureEvent)
type ShellSurfaceFullscreenMethod ¶
type ShellSurfaceFullscreenMethod uint32
const ( ShellSurfaceFullscreenMethodDefault ShellSurfaceFullscreenMethod = 0 ShellSurfaceFullscreenMethodScale ShellSurfaceFullscreenMethod = 1 ShellSurfaceFullscreenMethodDriver ShellSurfaceFullscreenMethod = 2 ShellSurfaceFullscreenMethodFill ShellSurfaceFullscreenMethod = 3 )
type ShellSurfaceMoveRequest ¶
func (*ShellSurfaceMoveRequest) Marshal ¶
func (r *ShellSurfaceMoveRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceMoveRequest) Opcode ¶
func (r *ShellSurfaceMoveRequest) Opcode() uint16
func (*ShellSurfaceMoveRequest) Since ¶
func (r *ShellSurfaceMoveRequest) Since() int
type ShellSurfacePingEvent ¶
type ShellSurfacePingEvent struct {
Serial uint32
}
func (*ShellSurfacePingEvent) Opcode ¶
func (e *ShellSurfacePingEvent) Opcode() uint16
func (*ShellSurfacePingEvent) Since ¶
func (e *ShellSurfacePingEvent) Since() int
type ShellSurfacePingFunc ¶
type ShellSurfacePingFunc func(ev ShellSurfacePingEvent)
type ShellSurfacePongRequest ¶
type ShellSurfacePongRequest struct {
Serial uint32
}
func (*ShellSurfacePongRequest) Marshal ¶
func (r *ShellSurfacePongRequest) Marshal(w *wire.Writer) error
func (*ShellSurfacePongRequest) Opcode ¶
func (r *ShellSurfacePongRequest) Opcode() uint16
func (*ShellSurfacePongRequest) Since ¶
func (r *ShellSurfacePongRequest) Since() int
type ShellSurfacePopupDoneEvent ¶
type ShellSurfacePopupDoneEvent struct {
}
func (*ShellSurfacePopupDoneEvent) Opcode ¶
func (e *ShellSurfacePopupDoneEvent) Opcode() uint16
func (*ShellSurfacePopupDoneEvent) Since ¶
func (e *ShellSurfacePopupDoneEvent) Since() int
type ShellSurfacePopupDoneFunc ¶
type ShellSurfacePopupDoneFunc func(ev ShellSurfacePopupDoneEvent)
type ShellSurfaceResize ¶
type ShellSurfaceResize uint32
const ( ShellSurfaceResizeNone ShellSurfaceResize = 0 ShellSurfaceResizeTop ShellSurfaceResize = 1 ShellSurfaceResizeBottom ShellSurfaceResize = 2 ShellSurfaceResizeLeft ShellSurfaceResize = 4 ShellSurfaceResizeTopLeft ShellSurfaceResize = 5 ShellSurfaceResizeBottomLeft ShellSurfaceResize = 6 ShellSurfaceResizeRight ShellSurfaceResize = 8 ShellSurfaceResizeTopRight ShellSurfaceResize = 9 ShellSurfaceResizeBottomRight ShellSurfaceResize = 10 )
type ShellSurfaceResizeRequest ¶
func (*ShellSurfaceResizeRequest) Marshal ¶
func (r *ShellSurfaceResizeRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceResizeRequest) Opcode ¶
func (r *ShellSurfaceResizeRequest) Opcode() uint16
func (*ShellSurfaceResizeRequest) Since ¶
func (r *ShellSurfaceResizeRequest) Since() int
type ShellSurfaceSetClassRequest ¶
type ShellSurfaceSetClassRequest struct {
Class string
}
func (*ShellSurfaceSetClassRequest) Marshal ¶
func (r *ShellSurfaceSetClassRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetClassRequest) Opcode ¶
func (r *ShellSurfaceSetClassRequest) Opcode() uint16
func (*ShellSurfaceSetClassRequest) Since ¶
func (r *ShellSurfaceSetClassRequest) Since() int
type ShellSurfaceSetFullscreenRequest ¶
type ShellSurfaceSetFullscreenRequest struct {
Method uint32
Framerate uint32
Output wire.ObjectID
}
func (*ShellSurfaceSetFullscreenRequest) Marshal ¶
func (r *ShellSurfaceSetFullscreenRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetFullscreenRequest) Opcode ¶
func (r *ShellSurfaceSetFullscreenRequest) Opcode() uint16
func (*ShellSurfaceSetFullscreenRequest) Since ¶
func (r *ShellSurfaceSetFullscreenRequest) Since() int
type ShellSurfaceSetMaximizedRequest ¶
func (*ShellSurfaceSetMaximizedRequest) Marshal ¶
func (r *ShellSurfaceSetMaximizedRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetMaximizedRequest) Opcode ¶
func (r *ShellSurfaceSetMaximizedRequest) Opcode() uint16
func (*ShellSurfaceSetMaximizedRequest) Since ¶
func (r *ShellSurfaceSetMaximizedRequest) Since() int
type ShellSurfaceSetPopupRequest ¶
type ShellSurfaceSetPopupRequest struct {
Seat wire.ObjectID
Serial uint32
Parent wire.ObjectID
X int32
Y int32
Flags uint32
}
func (*ShellSurfaceSetPopupRequest) Marshal ¶
func (r *ShellSurfaceSetPopupRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetPopupRequest) Opcode ¶
func (r *ShellSurfaceSetPopupRequest) Opcode() uint16
func (*ShellSurfaceSetPopupRequest) Since ¶
func (r *ShellSurfaceSetPopupRequest) Since() int
type ShellSurfaceSetTitleRequest ¶
type ShellSurfaceSetTitleRequest struct {
Title string
}
func (*ShellSurfaceSetTitleRequest) Marshal ¶
func (r *ShellSurfaceSetTitleRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetTitleRequest) Opcode ¶
func (r *ShellSurfaceSetTitleRequest) Opcode() uint16
func (*ShellSurfaceSetTitleRequest) Since ¶
func (r *ShellSurfaceSetTitleRequest) Since() int
type ShellSurfaceSetToplevelRequest ¶
type ShellSurfaceSetToplevelRequest struct {
}
func (*ShellSurfaceSetToplevelRequest) Marshal ¶
func (r *ShellSurfaceSetToplevelRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetToplevelRequest) Opcode ¶
func (r *ShellSurfaceSetToplevelRequest) Opcode() uint16
func (*ShellSurfaceSetToplevelRequest) Since ¶
func (r *ShellSurfaceSetToplevelRequest) Since() int
type ShellSurfaceSetTransientRequest ¶
func (*ShellSurfaceSetTransientRequest) Marshal ¶
func (r *ShellSurfaceSetTransientRequest) Marshal(w *wire.Writer) error
func (*ShellSurfaceSetTransientRequest) Opcode ¶
func (r *ShellSurfaceSetTransientRequest) Opcode() uint16
func (*ShellSurfaceSetTransientRequest) Since ¶
func (r *ShellSurfaceSetTransientRequest) Since() int
type ShellSurfaceTransient ¶
type ShellSurfaceTransient uint32
const (
ShellSurfaceTransientInactive ShellSurfaceTransient = 1
)
type Shm ¶
type Shm struct {
// contains filtered or unexported fields
}
func (*Shm) OnFormat ¶
func (o *Shm) OnFormat(fn ShmFormatFunc)
type ShmCreatePoolRequest ¶
func (*ShmCreatePoolRequest) Opcode ¶
func (r *ShmCreatePoolRequest) Opcode() uint16
func (*ShmCreatePoolRequest) Since ¶
func (r *ShmCreatePoolRequest) Since() int
type ShmFormat ¶
type ShmFormat uint32
const ( ShmFormatArgb8888 ShmFormat = 0 ShmFormatXrgb8888 ShmFormat = 1 ShmFormatC8 ShmFormat = 538982467 ShmFormatRgb332 ShmFormat = 943867730 ShmFormatBgr233 ShmFormat = 944916290 ShmFormatXrgb4444 ShmFormat = 842093144 ShmFormatXbgr4444 ShmFormat = 842089048 ShmFormatRgbx4444 ShmFormat = 842094674 ShmFormatBgrx4444 ShmFormat = 842094658 ShmFormatArgb4444 ShmFormat = 842093121 ShmFormatAbgr4444 ShmFormat = 842089025 ShmFormatRgba4444 ShmFormat = 842088786 ShmFormatBgra4444 ShmFormat = 842088770 ShmFormatXrgb1555 ShmFormat = 892424792 ShmFormatXbgr1555 ShmFormat = 892420696 ShmFormatRgbx5551 ShmFormat = 892426322 ShmFormatBgrx5551 ShmFormat = 892426306 ShmFormatArgb1555 ShmFormat = 892424769 ShmFormatAbgr1555 ShmFormat = 892420673 ShmFormatRgba5551 ShmFormat = 892420434 ShmFormatBgra5551 ShmFormat = 892420418 ShmFormatRgb565 ShmFormat = 909199186 ShmFormatBgr565 ShmFormat = 909199170 ShmFormatRgb888 ShmFormat = 875710290 ShmFormatBgr888 ShmFormat = 875710274 ShmFormatXbgr8888 ShmFormat = 875709016 ShmFormatRgbx8888 ShmFormat = 875714642 ShmFormatBgrx8888 ShmFormat = 875714626 ShmFormatAbgr8888 ShmFormat = 875708993 ShmFormatRgba8888 ShmFormat = 875708754 ShmFormatBgra8888 ShmFormat = 875708738 ShmFormatXrgb2101010 ShmFormat = 808669784 ShmFormatXbgr2101010 ShmFormat = 808665688 ShmFormatRgbx1010102 ShmFormat = 808671314 ShmFormatBgrx1010102 ShmFormat = 808671298 ShmFormatArgb2101010 ShmFormat = 808669761 ShmFormatAbgr2101010 ShmFormat = 808665665 ShmFormatRgba1010102 ShmFormat = 808665426 ShmFormatBgra1010102 ShmFormat = 808665410 ShmFormatYuyv ShmFormat = 1448695129 ShmFormatYvyu ShmFormat = 1431918169 ShmFormatUyvy ShmFormat = 1498831189 ShmFormatVyuy ShmFormat = 1498765654 ShmFormatAyuv ShmFormat = 1448433985 ShmFormatNv12 ShmFormat = 842094158 ShmFormatNv21 ShmFormat = 825382478 ShmFormatNv16 ShmFormat = 909203022 ShmFormatNv61 ShmFormat = 825644622 ShmFormatYuv410 ShmFormat = 961959257 ShmFormatYvu410 ShmFormat = 961893977 ShmFormatYuv411 ShmFormat = 825316697 ShmFormatYvu411 ShmFormat = 825316953 ShmFormatYuv420 ShmFormat = 842093913 ShmFormatYvu420 ShmFormat = 842094169 ShmFormatYuv422 ShmFormat = 909202777 ShmFormatYvu422 ShmFormat = 909203033 ShmFormatYuv444 ShmFormat = 875713881 ShmFormatYvu444 ShmFormat = 875714137 ShmFormatR8 ShmFormat = 538982482 ShmFormatR16 ShmFormat = 540422482 ShmFormatRg88 ShmFormat = 943212370 ShmFormatGr88 ShmFormat = 943215175 ShmFormatRg1616 ShmFormat = 842221394 ShmFormatGr1616 ShmFormat = 842224199 ShmFormatXrgb16161616f ShmFormat = 1211388504 ShmFormatXbgr16161616f ShmFormat = 1211384408 ShmFormatArgb16161616f ShmFormat = 1211388481 ShmFormatAbgr16161616f ShmFormat = 1211384385 ShmFormatXyuv8888 ShmFormat = 1448434008 ShmFormatVuy888 ShmFormat = 875713878 ShmFormatVuy101010 ShmFormat = 808670550 ShmFormatY210 ShmFormat = 808530521 ShmFormatY212 ShmFormat = 842084953 ShmFormatY216 ShmFormat = 909193817 ShmFormatY410 ShmFormat = 808531033 ShmFormatY412 ShmFormat = 842085465 ShmFormatY416 ShmFormat = 909194329 ShmFormatXvyu2101010 ShmFormat = 808670808 ShmFormatXvyu1216161616 ShmFormat = 909334104 ShmFormatXvyu16161616 ShmFormat = 942954072 ShmFormatY0l0 ShmFormat = 810299481 ShmFormatX0l0 ShmFormat = 810299480 ShmFormatY0l2 ShmFormat = 843853913 ShmFormatX0l2 ShmFormat = 843853912 ShmFormatYuv4208bit ShmFormat = 942691673 ShmFormatYuv42010bit ShmFormat = 808539481 ShmFormatXrgb8888A8 ShmFormat = 943805016 ShmFormatXbgr8888A8 ShmFormat = 943800920 ShmFormatRgbx8888A8 ShmFormat = 943806546 ShmFormatBgrx8888A8 ShmFormat = 943806530 ShmFormatRgb888A8 ShmFormat = 943798354 ShmFormatBgr888A8 ShmFormat = 943798338 ShmFormatRgb565A8 ShmFormat = 943797586 ShmFormatBgr565A8 ShmFormat = 943797570 ShmFormatNv24 ShmFormat = 875714126 ShmFormatNv42 ShmFormat = 842290766 ShmFormatP210 ShmFormat = 808530512 ShmFormatP010 ShmFormat = 808530000 ShmFormatP012 ShmFormat = 842084432 ShmFormatP016 ShmFormat = 909193296 ShmFormatAxbxgxrx106106106106 ShmFormat = 808534593 ShmFormatNv15 ShmFormat = 892425806 ShmFormatQ410 ShmFormat = 808531025 ShmFormatQ401 ShmFormat = 825242705 ShmFormatXrgb16161616 ShmFormat = 942953048 ShmFormatXbgr16161616 ShmFormat = 942948952 ShmFormatArgb16161616 ShmFormat = 942953025 ShmFormatAbgr16161616 ShmFormat = 942948929 ShmFormatC1 ShmFormat = 538980675 ShmFormatC2 ShmFormat = 538980931 ShmFormatC4 ShmFormat = 538981443 ShmFormatD1 ShmFormat = 538980676 ShmFormatD2 ShmFormat = 538980932 ShmFormatD4 ShmFormat = 538981444 ShmFormatD8 ShmFormat = 538982468 ShmFormatR1 ShmFormat = 538980690 ShmFormatR2 ShmFormat = 538980946 ShmFormatR4 ShmFormat = 538981458 ShmFormatR10 ShmFormat = 540029266 ShmFormatR12 ShmFormat = 540160338 ShmFormatAvuy8888 ShmFormat = 1498764865 ShmFormatXvuy8888 ShmFormat = 1498764888 ShmFormatP030 ShmFormat = 808661072 ShmFormatRgb161616 ShmFormat = 942950226 ShmFormatBgr161616 ShmFormat = 942950210 ShmFormatR16f ShmFormat = 1210064978 ShmFormatGr1616f ShmFormat = 1210077767 ShmFormatBgr161616f ShmFormat = 1213351746 ShmFormatR32f ShmFormat = 1176510546 ShmFormatGr3232f ShmFormat = 1176523335 ShmFormatBgr323232f ShmFormat = 1179797314 ShmFormatAbgr32323232f ShmFormat = 1178092097 ShmFormatNv20 ShmFormat = 808605262 ShmFormatNv30 ShmFormat = 808670798 ShmFormatS010 ShmFormat = 808530003 ShmFormatS210 ShmFormat = 808530515 ShmFormatS410 ShmFormat = 808531027 ShmFormatS012 ShmFormat = 842084435 ShmFormatS212 ShmFormat = 842084947 ShmFormatS412 ShmFormat = 842085459 ShmFormatS016 ShmFormat = 909193299 ShmFormatS216 ShmFormat = 909193811 ShmFormatS416 ShmFormat = 909194323 )
type ShmFormatEvent ¶
type ShmFormatEvent struct {
Format uint32
}
func (*ShmFormatEvent) Opcode ¶
func (e *ShmFormatEvent) Opcode() uint16
func (*ShmFormatEvent) Since ¶
func (e *ShmFormatEvent) Since() int
type ShmFormatFunc ¶
type ShmFormatFunc func(ev ShmFormatEvent)
type ShmPool ¶
type ShmPool struct {
// contains filtered or unexported fields
}
func NewShmPool ¶
func (*ShmPool) CreateBuffer ¶
type ShmPoolCreateBufferRequest ¶
type ShmPoolCreateBufferRequest struct {
ID wire.NewID
Offset int32
Width int32
Height int32
Stride int32
Format uint32
}
func (*ShmPoolCreateBufferRequest) Marshal ¶
func (r *ShmPoolCreateBufferRequest) Marshal(w *wire.Writer) error
func (*ShmPoolCreateBufferRequest) Opcode ¶
func (r *ShmPoolCreateBufferRequest) Opcode() uint16
func (*ShmPoolCreateBufferRequest) Since ¶
func (r *ShmPoolCreateBufferRequest) Since() int
type ShmPoolDestroyRequest ¶
type ShmPoolDestroyRequest struct {
}
func (*ShmPoolDestroyRequest) Marshal ¶
func (r *ShmPoolDestroyRequest) Marshal(w *wire.Writer) error
func (*ShmPoolDestroyRequest) Opcode ¶
func (r *ShmPoolDestroyRequest) Opcode() uint16
func (*ShmPoolDestroyRequest) Since ¶
func (r *ShmPoolDestroyRequest) Since() int
type ShmPoolResizeRequest ¶
type ShmPoolResizeRequest struct {
Size int32
}
func (*ShmPoolResizeRequest) Opcode ¶
func (r *ShmPoolResizeRequest) Opcode() uint16
func (*ShmPoolResizeRequest) Since ¶
func (r *ShmPoolResizeRequest) Since() int
type ShmReleaseRequest ¶
type ShmReleaseRequest struct {
}
func (*ShmReleaseRequest) Opcode ¶
func (r *ShmReleaseRequest) Opcode() uint16
func (*ShmReleaseRequest) Since ¶
func (r *ShmReleaseRequest) Since() int
type Subcompositor ¶
type Subcompositor struct {
// contains filtered or unexported fields
}
func BindSubcompositor ¶
func BindSubcompositor(b Binder, name uint32, version uint32) (*Subcompositor, error)
func NewSubcompositor ¶
func NewSubcompositor(p *Proxy) *Subcompositor
func (*Subcompositor) Destroy ¶
func (o *Subcompositor) Destroy() error
func (*Subcompositor) GetSubsurface ¶
func (o *Subcompositor) GetSubsurface(surface wire.ObjectID, parent wire.ObjectID) (*Subsurface, error)
func (*Subcompositor) Proxy ¶
func (o *Subcompositor) Proxy() *Proxy
type SubcompositorDestroyRequest ¶
type SubcompositorDestroyRequest struct {
}
func (*SubcompositorDestroyRequest) Marshal ¶
func (r *SubcompositorDestroyRequest) Marshal(w *wire.Writer) error
func (*SubcompositorDestroyRequest) Opcode ¶
func (r *SubcompositorDestroyRequest) Opcode() uint16
func (*SubcompositorDestroyRequest) Since ¶
func (r *SubcompositorDestroyRequest) Since() int
type SubcompositorError ¶
type SubcompositorError uint32
const ( SubcompositorErrorBadSurface SubcompositorError = 0 SubcompositorErrorBadParent SubcompositorError = 1 )
type SubcompositorGetSubsurfaceRequest ¶
type SubcompositorGetSubsurfaceRequest struct {
ID wire.NewID
Surface wire.ObjectID
Parent wire.ObjectID
}
func (*SubcompositorGetSubsurfaceRequest) Marshal ¶
func (r *SubcompositorGetSubsurfaceRequest) Marshal(w *wire.Writer) error
func (*SubcompositorGetSubsurfaceRequest) Opcode ¶
func (r *SubcompositorGetSubsurfaceRequest) Opcode() uint16
func (*SubcompositorGetSubsurfaceRequest) Since ¶
func (r *SubcompositorGetSubsurfaceRequest) Since() int
type Subsurface ¶
type Subsurface struct {
// contains filtered or unexported fields
}
func BindSubsurface ¶
func BindSubsurface(b Binder, name uint32, version uint32) (*Subsurface, error)
func NewSubsurface ¶
func NewSubsurface(p *Proxy) *Subsurface
func (*Subsurface) Destroy ¶
func (o *Subsurface) Destroy() error
func (*Subsurface) PlaceAbove ¶
func (o *Subsurface) PlaceAbove(sibling wire.ObjectID) error
func (*Subsurface) PlaceBelow ¶
func (o *Subsurface) PlaceBelow(sibling wire.ObjectID) error
func (*Subsurface) Proxy ¶
func (o *Subsurface) Proxy() *Proxy
func (*Subsurface) SetDesync ¶
func (o *Subsurface) SetDesync() error
func (*Subsurface) SetPosition ¶
func (o *Subsurface) SetPosition(x int32, y int32) error
func (*Subsurface) SetSync ¶
func (o *Subsurface) SetSync() error
type SubsurfaceDestroyRequest ¶
type SubsurfaceDestroyRequest struct {
}
func (*SubsurfaceDestroyRequest) Marshal ¶
func (r *SubsurfaceDestroyRequest) Marshal(w *wire.Writer) error
func (*SubsurfaceDestroyRequest) Opcode ¶
func (r *SubsurfaceDestroyRequest) Opcode() uint16
func (*SubsurfaceDestroyRequest) Since ¶
func (r *SubsurfaceDestroyRequest) Since() int
type SubsurfaceError ¶
type SubsurfaceError uint32
const (
SubsurfaceErrorBadSurface SubsurfaceError = 0
)
type SubsurfacePlaceAboveRequest ¶
func (*SubsurfacePlaceAboveRequest) Marshal ¶
func (r *SubsurfacePlaceAboveRequest) Marshal(w *wire.Writer) error
func (*SubsurfacePlaceAboveRequest) Opcode ¶
func (r *SubsurfacePlaceAboveRequest) Opcode() uint16
func (*SubsurfacePlaceAboveRequest) Since ¶
func (r *SubsurfacePlaceAboveRequest) Since() int
type SubsurfacePlaceBelowRequest ¶
func (*SubsurfacePlaceBelowRequest) Marshal ¶
func (r *SubsurfacePlaceBelowRequest) Marshal(w *wire.Writer) error
func (*SubsurfacePlaceBelowRequest) Opcode ¶
func (r *SubsurfacePlaceBelowRequest) Opcode() uint16
func (*SubsurfacePlaceBelowRequest) Since ¶
func (r *SubsurfacePlaceBelowRequest) Since() int
type SubsurfaceSetDesyncRequest ¶
type SubsurfaceSetDesyncRequest struct {
}
func (*SubsurfaceSetDesyncRequest) Marshal ¶
func (r *SubsurfaceSetDesyncRequest) Marshal(w *wire.Writer) error
func (*SubsurfaceSetDesyncRequest) Opcode ¶
func (r *SubsurfaceSetDesyncRequest) Opcode() uint16
func (*SubsurfaceSetDesyncRequest) Since ¶
func (r *SubsurfaceSetDesyncRequest) Since() int
type SubsurfaceSetPositionRequest ¶
func (*SubsurfaceSetPositionRequest) Marshal ¶
func (r *SubsurfaceSetPositionRequest) Marshal(w *wire.Writer) error
func (*SubsurfaceSetPositionRequest) Opcode ¶
func (r *SubsurfaceSetPositionRequest) Opcode() uint16
func (*SubsurfaceSetPositionRequest) Since ¶
func (r *SubsurfaceSetPositionRequest) Since() int
type SubsurfaceSetSyncRequest ¶
type SubsurfaceSetSyncRequest struct {
}
func (*SubsurfaceSetSyncRequest) Marshal ¶
func (r *SubsurfaceSetSyncRequest) Marshal(w *wire.Writer) error
func (*SubsurfaceSetSyncRequest) Opcode ¶
func (r *SubsurfaceSetSyncRequest) Opcode() uint16
func (*SubsurfaceSetSyncRequest) Since ¶
func (r *SubsurfaceSetSyncRequest) Since() int
type Surface ¶
type Surface struct {
// contains filtered or unexported fields
}
func NewSurface ¶
func (*Surface) DamageBuffer ¶
func (*Surface) GetRelease ¶
func (*Surface) OnEnter ¶
func (o *Surface) OnEnter(fn SurfaceEnterFunc)
func (*Surface) OnLeave ¶
func (o *Surface) OnLeave(fn SurfaceLeaveFunc)
func (*Surface) OnPreferredBufferScale ¶
func (o *Surface) OnPreferredBufferScale(fn SurfacePreferredBufferScaleFunc)
func (*Surface) OnPreferredBufferTransform ¶
func (o *Surface) OnPreferredBufferTransform(fn SurfacePreferredBufferTransformFunc)
func (*Surface) SetBufferScale ¶
func (*Surface) SetBufferTransform ¶
type SurfaceAttachRequest ¶
func (*SurfaceAttachRequest) Opcode ¶
func (r *SurfaceAttachRequest) Opcode() uint16
func (*SurfaceAttachRequest) Since ¶
func (r *SurfaceAttachRequest) Since() int
type SurfaceCommitRequest ¶
type SurfaceCommitRequest struct {
}
func (*SurfaceCommitRequest) Opcode ¶
func (r *SurfaceCommitRequest) Opcode() uint16
func (*SurfaceCommitRequest) Since ¶
func (r *SurfaceCommitRequest) Since() int
type SurfaceDamageBufferRequest ¶
func (*SurfaceDamageBufferRequest) Marshal ¶
func (r *SurfaceDamageBufferRequest) Marshal(w *wire.Writer) error
func (*SurfaceDamageBufferRequest) Opcode ¶
func (r *SurfaceDamageBufferRequest) Opcode() uint16
func (*SurfaceDamageBufferRequest) Since ¶
func (r *SurfaceDamageBufferRequest) Since() int
type SurfaceDamageRequest ¶
func (*SurfaceDamageRequest) Opcode ¶
func (r *SurfaceDamageRequest) Opcode() uint16
func (*SurfaceDamageRequest) Since ¶
func (r *SurfaceDamageRequest) Since() int
type SurfaceDestroyRequest ¶
type SurfaceDestroyRequest struct {
}
func (*SurfaceDestroyRequest) Marshal ¶
func (r *SurfaceDestroyRequest) Marshal(w *wire.Writer) error
func (*SurfaceDestroyRequest) Opcode ¶
func (r *SurfaceDestroyRequest) Opcode() uint16
func (*SurfaceDestroyRequest) Since ¶
func (r *SurfaceDestroyRequest) Since() int
type SurfaceEnterEvent ¶
func (*SurfaceEnterEvent) Opcode ¶
func (e *SurfaceEnterEvent) Opcode() uint16
func (*SurfaceEnterEvent) Since ¶
func (e *SurfaceEnterEvent) Since() int
type SurfaceEnterFunc ¶
type SurfaceEnterFunc func(ev SurfaceEnterEvent)
type SurfaceError ¶
type SurfaceError uint32
const ( SurfaceErrorInvalidScale SurfaceError = 0 SurfaceErrorInvalidTransform SurfaceError = 1 SurfaceErrorInvalidSize SurfaceError = 2 SurfaceErrorInvalidOffset SurfaceError = 3 SurfaceErrorDefunctRoleObject SurfaceError = 4 SurfaceErrorNoBuffer SurfaceError = 5 )
type SurfaceFrameRequest ¶
func (*SurfaceFrameRequest) Opcode ¶
func (r *SurfaceFrameRequest) Opcode() uint16
func (*SurfaceFrameRequest) Since ¶
func (r *SurfaceFrameRequest) Since() int
type SurfaceGetReleaseRequest ¶
func (*SurfaceGetReleaseRequest) Marshal ¶
func (r *SurfaceGetReleaseRequest) Marshal(w *wire.Writer) error
func (*SurfaceGetReleaseRequest) Opcode ¶
func (r *SurfaceGetReleaseRequest) Opcode() uint16
func (*SurfaceGetReleaseRequest) Since ¶
func (r *SurfaceGetReleaseRequest) Since() int
type SurfaceLeaveEvent ¶
func (*SurfaceLeaveEvent) Opcode ¶
func (e *SurfaceLeaveEvent) Opcode() uint16
func (*SurfaceLeaveEvent) Since ¶
func (e *SurfaceLeaveEvent) Since() int
type SurfaceLeaveFunc ¶
type SurfaceLeaveFunc func(ev SurfaceLeaveEvent)
type SurfaceOffsetRequest ¶
func (*SurfaceOffsetRequest) Opcode ¶
func (r *SurfaceOffsetRequest) Opcode() uint16
func (*SurfaceOffsetRequest) Since ¶
func (r *SurfaceOffsetRequest) Since() int
type SurfacePreferredBufferScaleEvent ¶
type SurfacePreferredBufferScaleEvent struct {
Factor int32
}
func (*SurfacePreferredBufferScaleEvent) Opcode ¶
func (e *SurfacePreferredBufferScaleEvent) Opcode() uint16
func (*SurfacePreferredBufferScaleEvent) Since ¶
func (e *SurfacePreferredBufferScaleEvent) Since() int
type SurfacePreferredBufferScaleFunc ¶
type SurfacePreferredBufferScaleFunc func(ev SurfacePreferredBufferScaleEvent)
type SurfacePreferredBufferTransformEvent ¶
type SurfacePreferredBufferTransformEvent struct {
Transform uint32
}
func (*SurfacePreferredBufferTransformEvent) Opcode ¶
func (e *SurfacePreferredBufferTransformEvent) Opcode() uint16
func (*SurfacePreferredBufferTransformEvent) Since ¶
func (e *SurfacePreferredBufferTransformEvent) Since() int
type SurfacePreferredBufferTransformFunc ¶
type SurfacePreferredBufferTransformFunc func(ev SurfacePreferredBufferTransformEvent)
type SurfaceSetBufferScaleRequest ¶
type SurfaceSetBufferScaleRequest struct {
Scale int32
}
func (*SurfaceSetBufferScaleRequest) Marshal ¶
func (r *SurfaceSetBufferScaleRequest) Marshal(w *wire.Writer) error
func (*SurfaceSetBufferScaleRequest) Opcode ¶
func (r *SurfaceSetBufferScaleRequest) Opcode() uint16
func (*SurfaceSetBufferScaleRequest) Since ¶
func (r *SurfaceSetBufferScaleRequest) Since() int
type SurfaceSetBufferTransformRequest ¶
type SurfaceSetBufferTransformRequest struct {
Transform int32
}
func (*SurfaceSetBufferTransformRequest) Marshal ¶
func (r *SurfaceSetBufferTransformRequest) Marshal(w *wire.Writer) error
func (*SurfaceSetBufferTransformRequest) Opcode ¶
func (r *SurfaceSetBufferTransformRequest) Opcode() uint16
func (*SurfaceSetBufferTransformRequest) Since ¶
func (r *SurfaceSetBufferTransformRequest) Since() int
type SurfaceSetInputRegionRequest ¶
func (*SurfaceSetInputRegionRequest) Marshal ¶
func (r *SurfaceSetInputRegionRequest) Marshal(w *wire.Writer) error
func (*SurfaceSetInputRegionRequest) Opcode ¶
func (r *SurfaceSetInputRegionRequest) Opcode() uint16
func (*SurfaceSetInputRegionRequest) Since ¶
func (r *SurfaceSetInputRegionRequest) Since() int
type SurfaceSetOpaqueRegionRequest ¶
func (*SurfaceSetOpaqueRegionRequest) Marshal ¶
func (r *SurfaceSetOpaqueRegionRequest) Marshal(w *wire.Writer) error
func (*SurfaceSetOpaqueRegionRequest) Opcode ¶
func (r *SurfaceSetOpaqueRegionRequest) Opcode() uint16
func (*SurfaceSetOpaqueRegionRequest) Since ¶
func (r *SurfaceSetOpaqueRegionRequest) Since() int
type Touch ¶
type Touch struct {
// contains filtered or unexported fields
}
func (*Touch) OnCancel ¶
func (o *Touch) OnCancel(fn TouchCancelFunc)
func (*Touch) OnDown ¶
func (o *Touch) OnDown(fn TouchDownFunc)
func (*Touch) OnFrame ¶
func (o *Touch) OnFrame(fn TouchFrameFunc)
func (*Touch) OnMotion ¶
func (o *Touch) OnMotion(fn TouchMotionFunc)
func (*Touch) OnOrientation ¶
func (o *Touch) OnOrientation(fn TouchOrientationFunc)
func (*Touch) OnShape ¶
func (o *Touch) OnShape(fn TouchShapeFunc)
func (*Touch) OnUp ¶
func (o *Touch) OnUp(fn TouchUpFunc)
type TouchCancelEvent ¶
type TouchCancelEvent struct {
}
func (*TouchCancelEvent) Opcode ¶
func (e *TouchCancelEvent) Opcode() uint16
func (*TouchCancelEvent) Since ¶
func (e *TouchCancelEvent) Since() int
type TouchCancelFunc ¶
type TouchCancelFunc func(ev TouchCancelEvent)
type TouchDownEvent ¶
type TouchDownEvent struct {
Serial uint32
Time uint32
Surface wire.ObjectID
ID int32
X wire.Fixed
Y wire.Fixed
}
func (*TouchDownEvent) Opcode ¶
func (e *TouchDownEvent) Opcode() uint16
func (*TouchDownEvent) Since ¶
func (e *TouchDownEvent) Since() int
type TouchDownFunc ¶
type TouchDownFunc func(ev TouchDownEvent)
type TouchFrameEvent ¶
type TouchFrameEvent struct {
}
func (*TouchFrameEvent) Opcode ¶
func (e *TouchFrameEvent) Opcode() uint16
func (*TouchFrameEvent) Since ¶
func (e *TouchFrameEvent) Since() int
type TouchFrameFunc ¶
type TouchFrameFunc func(ev TouchFrameEvent)
type TouchMotionEvent ¶
func (*TouchMotionEvent) Opcode ¶
func (e *TouchMotionEvent) Opcode() uint16
func (*TouchMotionEvent) Since ¶
func (e *TouchMotionEvent) Since() int
type TouchMotionFunc ¶
type TouchMotionFunc func(ev TouchMotionEvent)
type TouchOrientationEvent ¶
func (*TouchOrientationEvent) Opcode ¶
func (e *TouchOrientationEvent) Opcode() uint16
func (*TouchOrientationEvent) Since ¶
func (e *TouchOrientationEvent) Since() int
type TouchOrientationFunc ¶
type TouchOrientationFunc func(ev TouchOrientationEvent)
type TouchReleaseRequest ¶
type TouchReleaseRequest struct {
}
func (*TouchReleaseRequest) Opcode ¶
func (r *TouchReleaseRequest) Opcode() uint16
func (*TouchReleaseRequest) Since ¶
func (r *TouchReleaseRequest) Since() int
type TouchShapeEvent ¶
func (*TouchShapeEvent) Opcode ¶
func (e *TouchShapeEvent) Opcode() uint16
func (*TouchShapeEvent) Since ¶
func (e *TouchShapeEvent) Since() int
type TouchShapeFunc ¶
type TouchShapeFunc func(ev TouchShapeEvent)
type TouchUpEvent ¶
func (*TouchUpEvent) Opcode ¶
func (e *TouchUpEvent) Opcode() uint16
func (*TouchUpEvent) Since ¶
func (e *TouchUpEvent) Since() int
type TouchUpFunc ¶
type TouchUpFunc func(ev TouchUpEvent)
Source Files
¶
- buffer_gen.go
- callback_gen.go
- compositor_gen.go
- conn.go
- data_device_gen.go
- data_device_manager_gen.go
- data_offer_gen.go
- data_source_gen.go
- display.go
- display_gen.go
- errors.go
- eventloop.go
- fixes_gen.go
- keyboard_gen.go
- output_gen.go
- pointer_gen.go
- proxy.go
- region_gen.go
- registry_gen.go
- seat_gen.go
- shell_gen.go
- shell_surface_gen.go
- shm_gen.go
- shm_pool_gen.go
- subcompositor_gen.go
- subsurface_gen.go
- surface_gen.go
- touch_gen.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
wayland-info
command
|
|
|
wayland-scanner
command
|
|
|
example
|
|
|
activation
command
A two-window xdg-activation focus transfer demo.
|
A two-window xdg-activation focus transfer demo. |
|
cube
command
Software-rendered rotating 3D cube via frame-callback-driven animation with double-buffered shm.
|
Software-rendered rotating 3D cube via frame-callback-driven animation with double-buffered shm. |
|
cursor
command
Cursor demo: self-drawn cursor surface vs cursor-shape-v1 protocol.
|
Cursor demo: self-drawn cursor surface vs cursor-shape-v1 protocol. |
|
damage
command
Incremental damage demonstration with a small square moving along a circular path.
|
Incremental damage demonstration with a small square moving along a circular path. |
|
dnd
command
Clipboard and drag-and-drop demo: 4 draggable color boxes, keyboard copy/paste.
|
Clipboard and drag-and-drop demo: 4 draggable color boxes, keyboard copy/paste. |
|
eventdemo
command
eventdemo: unified input event viewer for wl_keyboard, wl_pointer and wl_touch.
|
eventdemo: unified input event viewer for wl_keyboard, wl_pointer and wl_touch. |
|
globals
command
Minimal Wayland client: connects, discovers all globals, prints them, exits.
|
Minimal Wayland client: connects, discovers all globals, prints them, exits. |
|
helloworld
command
A minimal xdg-shell window rendering "Hello, Wayland!" with an embedded 5x7 bitmap font.
|
A minimal xdg-shell window rendering "Hello, Wayland!" with an embedded 5x7 bitmap font. |
|
imageviewer
command
Package main implements a simple Wayland image viewer.
|
Package main implements a simple Wayland image viewer. |
|
outputs
command
Connects to the Wayland compositor, binds all wl_output globals, prints display information (name, resolution, refresh rate, scale), then demonstrates dynamic global monitoring for 5 seconds.
|
Connects to the Wayland compositor, binds all wl_output globals, prints display information (name, resolution, refresh rate, scale), then demonstrates dynamic global monitoring for 5 seconds. |
|
popup
command
An xdg_popup + xdg_positioner right-click context menu demonstration.
|
An xdg_popup + xdg_positioner right-click context menu demonstration. |
|
presentation
command
Moving block animation with presentation-time feedback statistics.
|
Moving block animation with presentation-time feedback statistics. |
|
resizor
command
Interactive window management demo: pointer move/resize, keyboard state toggles, configure-driven buffer resizing.
|
Interactive window management demo: pointer move/resize, keyboard state toggles, configure-driven buffer resizing. |
|
simpleshm
command
weston-simple-shm style animation with concentric ring patterns, double buffering and frame-driven rendering.
|
weston-simple-shm style animation with concentric ring patterns, double buffering and frame-driven rendering. |
|
smoke
command
A Jos Stam fluid smoke simulation in a Wayland window, inspired by weston smoke.
|
A Jos Stam fluid smoke simulation in a Wayland window, inspired by weston smoke. |
|
subsurfaces
command
Subsurface demo: animated child surface moving on a circular path with sync/desync toggle and z-order control.
|
Subsurface demo: animated child surface moving on a circular path with sync/desync toggle and z-order control. |
|
viewport
command
Viewport crop-and-scale demo: a 512x512 buffer with a moving 256x256 source rectangle rotating around the buffer center, scaled to a configurable destination size (default 384x384).
|
Viewport crop-and-scale demo: a 512x512 buffer with a moving 256x256 source rectangle rotating around the buffer center, scaled to a configurable destination size (default 384x384). |
|
protocol
|
|
Click to show internal directories.
Click to hide internal directories.