Documentation ¶
Index ¶
- Constants
- func OnLog(verbosity LogImportance, cb LogFunc)
- func OutputTransformInvert(transform uint32) uint32
- type AxisOrientation
- type AxisSource
- type Backend
- type Box
- type ButtonState
- type Color
- type Compositor
- type Cursor
- func (c Cursor) AttachInputDevice(dev InputDevice)
- func (c Cursor) AttachOutputLayout(layout OutputLayout)
- func (c Cursor) Destroy()
- func (c Cursor) Move(dev InputDevice, dx float64, dy float64)
- func (c Cursor) OnAxis(...)
- func (c Cursor) OnButton(cb func(dev InputDevice, time uint32, button uint32, state ButtonState))
- func (c Cursor) OnFrame(cb func())
- func (c Cursor) OnMotion(cb func(dev InputDevice, time uint32, dx float64, dy float64))
- func (c Cursor) OnMotionAbsolute(cb func(dev InputDevice, time uint32, x float64, y float64))
- func (c Cursor) SetSurface(surface Surface, hotspotX int32, hotspotY int32)
- func (c Cursor) WarpAbsolute(dev InputDevice, x float64, y float64)
- func (c Cursor) X() float64
- func (c Cursor) Y() float64
- type DMABuf
- type DataDeviceManager
- type Display
- type Edges
- type EventLoop
- type InputDevice
- func (d InputDevice) Height() float64
- func (d InputDevice) Keyboard() Keyboard
- func (d InputDevice) Name() string
- func (d InputDevice) OnDestroy(cb func(InputDevice))
- func (d InputDevice) OutputName() string
- func (d InputDevice) Product() int
- func (d InputDevice) Type() InputDeviceType
- func (d InputDevice) Vendor() int
- func (d InputDevice) Width() float64
- type InputDeviceType
- type KeyState
- type Keyboard
- func (k Keyboard) Modifiers() KeyboardModifier
- func (k Keyboard) OnKey(cb func(keyboard Keyboard, time uint32, keyCode uint32, updateState bool, ...))
- func (k Keyboard) OnModifiers(cb func(keyboard Keyboard))
- func (k Keyboard) RepeatInfo() (rate int32, delay int32)
- func (k Keyboard) SetKeymap(keymap xkb.Keymap)
- func (k Keyboard) SetRepeatInfo(rate int32, delay int32)
- func (k Keyboard) XKBState() xkb.State
- type KeyboardModifier
- type LogFunc
- type LogImportance
- type Matrix
- type Output
- func (o Output) AttachRender() (int, error)
- func (o Output) Commit()
- func (o Output) CreateGlobal()
- func (o Output) DestroyGlobal()
- func (o Output) EffectiveResolution() (int, int)
- func (o Output) Enable(enable bool)
- func (o Output) Modes() []OutputMode
- func (o Output) Name() string
- func (o Output) OnDestroy(cb func(Output))
- func (o Output) OnFrame(cb func(Output))
- func (o Output) RenderSoftwareCursors()
- func (o Output) Rollback()
- func (o Output) Scale() float32
- func (o Output) SetMode(mode OutputMode)
- func (o Output) SetTitle(title string) error
- func (o Output) TransformMatrix() Matrix
- func (o Output) TransformedResolution() (int, int)
- type OutputLayout
- type OutputMode
- type Renderer
- func (r Renderer) Begin(output Output, width int, height int)
- func (r Renderer) Clear(color *Color)
- func (r Renderer) Destroy()
- func (r Renderer) End()
- func (r Renderer) InitDisplay(display Display)
- func (r Renderer) OnDestroy(cb func(Renderer))
- func (r Renderer) RenderRect(box *Box, color *Color, projection *Matrix)
- func (r Renderer) RenderTextureWithMatrix(texture Texture, matrix *Matrix, alpha float32)
- type Seat
- func (s Seat) ClearPointerFocus()
- func (s Seat) Destroy()
- func (s Seat) Keyboard() Keyboard
- func (s Seat) KeyboardState() SeatKeyboardState
- func (s Seat) NotifyKeyboardEnter(surface Surface, k Keyboard)
- func (s Seat) NotifyKeyboardKey(time uint32, keyCode uint32, state KeyState)
- func (s Seat) NotifyKeyboardModifiers(k Keyboard)
- func (s Seat) NotifyPointerAxis(time uint32, orientation AxisOrientation, delta float64, deltaDiscrete int32, ...)
- func (s Seat) NotifyPointerButton(time uint32, button uint32, state ButtonState)
- func (s Seat) NotifyPointerEnter(surface Surface, sx float64, sy float64)
- func (s Seat) NotifyPointerFrame()
- func (s Seat) NotifyPointerMotion(time uint32, sx float64, sy float64)
- func (s Seat) OnDestroy(cb func(Seat))
- func (s Seat) OnSetCursorRequest(...)
- func (s Seat) PointerState() SeatPointerState
- func (s Seat) SetCapabilities(caps SeatCapability)
- func (s Seat) SetKeyboard(dev InputDevice)
- type SeatCapability
- type SeatClient
- type SeatKeyboardState
- type SeatPointerState
- type ServerDecoration
- type ServerDecorationManager
- type ServerDecorationManagerMode
- type Surface
- func (s Surface) CurrentState() SurfaceState
- func (s Surface) Nil() bool
- func (s Surface) OnDestroy(cb func(Surface))
- func (s Surface) SendFrameDone(when time.Time)
- func (s Surface) SurfaceAt(sx float64, sy float64) (surface Surface, subX float64, subY float64)
- func (s Surface) Texture() Texture
- func (s Surface) Type() SurfaceType
- func (s Surface) Walk(visit func())
- func (s Surface) XDGSurface() XDGSurface
- func (s Surface) XWaylandSurface() XWaylandSurface
- type SurfaceState
- type SurfaceType
- type Texture
- type XCursor
- type XCursorImage
- type XCursorManager
- type XDGPopup
- type XDGShell
- type XDGSurface
- func (s XDGSurface) Geometry() Box
- func (s XDGSurface) Nil() bool
- func (s XDGSurface) OnDestroy(cb func(XDGSurface))
- func (s XDGSurface) OnMap(cb func(XDGSurface))
- func (s XDGSurface) OnNewPopup(cb func(XDGSurface, XDGPopup))
- func (s XDGSurface) OnPingTimeout(cb func(XDGSurface))
- func (s XDGSurface) OnUnmap(cb func(XDGSurface))
- func (s XDGSurface) Ping()
- func (s XDGSurface) Role() XDGSurfaceRole
- func (s XDGSurface) SendClose()
- func (s XDGSurface) Surface() Surface
- func (s XDGSurface) SurfaceAt(sx float64, sy float64) (surface Surface, subX float64, subY float64)
- func (s XDGSurface) TopLevel() XDGTopLevel
- func (s XDGSurface) TopLevelSetActivated(activated bool)
- func (s XDGSurface) TopLevelSetSize(width uint32, height uint32)
- func (s XDGSurface) TopLevelSetTiled(edges Edges)
- func (s XDGSurface) Walk(visit XDGSurfaceWalkFunc)
- type XDGSurfaceRole
- type XDGSurfaceWalkFunc
- type XDGTopLevel
- type XWayland
- type XWaylandSurface
- func (s XWaylandSurface) Configure(x int16, y int16, width uint16, height uint16)
- func (s XWaylandSurface) Geometry() Box
- func (s XWaylandSurface) OnDestroy(cb func(XWaylandSurface))
- func (s XWaylandSurface) OnMap(cb func(XWaylandSurface))
- func (s XWaylandSurface) OnRequestConfigure(...)
- func (s XWaylandSurface) OnRequestMove(cb func(surface XWaylandSurface))
- func (s XWaylandSurface) OnRequestResize(cb func(surface XWaylandSurface, edges Edges))
- func (s XWaylandSurface) OnUnmap(cb func(XWaylandSurface))
- func (s XWaylandSurface) Surface() Surface
Constants ¶
View Source
const ( InputDeviceTypeKeyboard InputDeviceType = C.WLR_INPUT_DEVICE_KEYBOARD InputDeviceTypePointer InputDeviceType = C.WLR_INPUT_DEVICE_POINTER InputDeviceTypeTouch InputDeviceType = C.WLR_INPUT_DEVICE_TOUCH InputDeviceTypeTabletTool InputDeviceType = C.WLR_INPUT_DEVICE_TABLET_TOOL InputDeviceTypeTabletPad InputDeviceType = C.WLR_INPUT_DEVICE_TABLET_PAD ButtonStateReleased ButtonState = C.WLR_BUTTON_RELEASED ButtonStatePressed ButtonState = C.WLR_BUTTON_PRESSED AxisSourceWheel AxisSource = C.WLR_AXIS_SOURCE_WHEEL AxisSourceFinger AxisSource = C.WLR_AXIS_SOURCE_FINGER AxisSourceContinuous AxisSource = C.WLR_AXIS_SOURCE_CONTINUOUS AxisSourceWheelTilt AxisSource = C.WLR_AXIS_SOURCE_WHEEL_TILT AxisOrientationVertical AxisOrientation = C.WLR_AXIS_ORIENTATION_VERTICAL AxisOrientationHorizontal AxisOrientation = C.WLR_AXIS_ORIENTATION_HORIZONTAL )
Variables ¶
This section is empty.
Functions ¶
func OnLog ¶
func OnLog(verbosity LogImportance, cb LogFunc)
func OutputTransformInvert ¶
Types ¶
type AxisOrientation ¶
type AxisOrientation uint32
type AxisSource ¶
type AxisSource uint32
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func (Backend) OnNewInput ¶
func (b Backend) OnNewInput(cb func(InputDevice))
func (Backend) OnNewOutput ¶
type ButtonState ¶
type ButtonState uint32
type Compositor ¶
type Compositor struct {
// contains filtered or unexported fields
}
func NewCompositor ¶
func NewCompositor(display Display, renderer Renderer) Compositor
func (Compositor) OnDestroy ¶
func (c Compositor) OnDestroy(cb func(Compositor))
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
func (Cursor) AttachInputDevice ¶
func (c Cursor) AttachInputDevice(dev InputDevice)
func (Cursor) AttachOutputLayout ¶
func (c Cursor) AttachOutputLayout(layout OutputLayout)
func (Cursor) OnAxis ¶
func (c Cursor) OnAxis(cb func(dev InputDevice, time uint32, source AxisSource, orientation AxisOrientation, delta float64, deltaDiscrete int32))
func (Cursor) OnButton ¶
func (c Cursor) OnButton(cb func(dev InputDevice, time uint32, button uint32, state ButtonState))
func (Cursor) OnMotion ¶
func (c Cursor) OnMotion(cb func(dev InputDevice, time uint32, dx float64, dy float64))
func (Cursor) OnMotionAbsolute ¶
func (c Cursor) OnMotionAbsolute(cb func(dev InputDevice, time uint32, x float64, y float64))
func (Cursor) SetSurface ¶
func (Cursor) WarpAbsolute ¶
func (c Cursor) WarpAbsolute(dev InputDevice, x float64, y float64)
type DataDeviceManager ¶
type DataDeviceManager struct {
// contains filtered or unexported fields
}
func NewDataDeviceManager ¶
func NewDataDeviceManager(display Display) DataDeviceManager
func (DataDeviceManager) OnDestroy ¶
func (m DataDeviceManager) OnDestroy(cb func(DataDeviceManager))
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func NewDisplay ¶
func NewDisplay() Display
func (Display) AddSocketAuto ¶
func (Display) FlushClients ¶
func (d Display) FlushClients()
type Edges ¶
type Edges uint32
const ( EdgeNone Edges = C.WLR_EDGE_NONE EdgeTop Edges = C.WLR_EDGE_TOP EdgeBottom Edges = C.WLR_EDGE_BOTTOM EdgeLeft Edges = C.WLR_EDGE_LEFT EdgeRight Edges = C.WLR_EDGE_RIGHT )
type InputDevice ¶
type InputDevice struct {
// contains filtered or unexported fields
}
func (InputDevice) Height ¶
func (d InputDevice) Height() float64
func (InputDevice) Keyboard ¶
func (d InputDevice) Keyboard() Keyboard
func (InputDevice) Name ¶
func (d InputDevice) Name() string
func (InputDevice) OnDestroy ¶
func (d InputDevice) OnDestroy(cb func(InputDevice))
func (InputDevice) OutputName ¶
func (d InputDevice) OutputName() string
func (InputDevice) Product ¶
func (d InputDevice) Product() int
func (InputDevice) Type ¶
func (d InputDevice) Type() InputDeviceType
func (InputDevice) Vendor ¶
func (d InputDevice) Vendor() int
func (InputDevice) Width ¶
func (d InputDevice) Width() float64
type InputDeviceType ¶
type InputDeviceType uint32
type Keyboard ¶
type Keyboard struct {
// contains filtered or unexported fields
}
func (Keyboard) Modifiers ¶
func (k Keyboard) Modifiers() KeyboardModifier
func (Keyboard) OnModifiers ¶
func (Keyboard) RepeatInfo ¶
func (Keyboard) SetRepeatInfo ¶
type KeyboardModifier ¶
type KeyboardModifier uint32
const ( KeyboardModifierShift KeyboardModifier = C.WLR_MODIFIER_SHIFT KeyboardModifierCaps KeyboardModifier = C.WLR_MODIFIER_CAPS KeyboardModifierCtrl KeyboardModifier = C.WLR_MODIFIER_CTRL KeyboardModifierAlt KeyboardModifier = C.WLR_MODIFIER_ALT KeyboardModifierMod2 KeyboardModifier = C.WLR_MODIFIER_MOD2 KeyboardModifierMod3 KeyboardModifier = C.WLR_MODIFIER_MOD3 KeyboardModifierLogo KeyboardModifier = C.WLR_MODIFIER_LOGO KeyboardModifierMod5 KeyboardModifier = C.WLR_MODIFIER_MOD5 )
type LogFunc ¶
type LogFunc func(importance LogImportance, msg string)
type LogImportance ¶
type LogImportance uint32
const ( LogImportanceSilent LogImportance = C.WLR_SILENT LogImportanceError LogImportance = C.WLR_ERROR LogImportanceInfo LogImportance = C.WLR_INFO LogImportanceDebug LogImportance = C.WLR_DEBUG )
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func (Output) AttachRender ¶
func (Output) CreateGlobal ¶
func (o Output) CreateGlobal()
func (Output) DestroyGlobal ¶
func (o Output) DestroyGlobal()
func (Output) EffectiveResolution ¶
func (Output) Modes ¶
func (o Output) Modes() []OutputMode
func (Output) RenderSoftwareCursors ¶
func (o Output) RenderSoftwareCursors()
func (Output) SetMode ¶
func (o Output) SetMode(mode OutputMode)
func (Output) TransformMatrix ¶
func (Output) TransformedResolution ¶
type OutputLayout ¶
type OutputLayout struct {
// contains filtered or unexported fields
}
func NewOutputLayout ¶
func NewOutputLayout() OutputLayout
func (OutputLayout) AddOutputAuto ¶
func (l OutputLayout) AddOutputAuto(output Output)
func (OutputLayout) Destroy ¶
func (l OutputLayout) Destroy()
type OutputMode ¶
type OutputMode struct {
// contains filtered or unexported fields
}
func (OutputMode) Height ¶
func (m OutputMode) Height() int32
func (OutputMode) RefreshRate ¶
func (m OutputMode) RefreshRate() int32
func (OutputMode) Width ¶
func (m OutputMode) Width() int32
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func (Renderer) InitDisplay ¶
func (Renderer) RenderRect ¶
type Seat ¶
type Seat struct {
// contains filtered or unexported fields
}
func (Seat) ClearPointerFocus ¶
func (s Seat) ClearPointerFocus()
func (Seat) KeyboardState ¶
func (s Seat) KeyboardState() SeatKeyboardState
func (Seat) NotifyKeyboardEnter ¶
func (Seat) NotifyKeyboardKey ¶
func (Seat) NotifyKeyboardModifiers ¶
func (Seat) NotifyPointerAxis ¶
func (s Seat) NotifyPointerAxis(time uint32, orientation AxisOrientation, delta float64, deltaDiscrete int32, source AxisSource)
func (Seat) NotifyPointerButton ¶
func (s Seat) NotifyPointerButton(time uint32, button uint32, state ButtonState)
func (Seat) NotifyPointerEnter ¶
func (Seat) NotifyPointerFrame ¶
func (s Seat) NotifyPointerFrame()
func (Seat) NotifyPointerMotion ¶
func (Seat) OnSetCursorRequest ¶
func (Seat) PointerState ¶
func (s Seat) PointerState() SeatPointerState
func (Seat) SetCapabilities ¶
func (s Seat) SetCapabilities(caps SeatCapability)
func (Seat) SetKeyboard ¶
func (s Seat) SetKeyboard(dev InputDevice)
type SeatCapability ¶
type SeatCapability uint32
const ( SeatCapabilityPointer SeatCapability = C.WL_SEAT_CAPABILITY_POINTER SeatCapabilityKeyboard SeatCapability = C.WL_SEAT_CAPABILITY_KEYBOARD SeatCapabilityTouch SeatCapability = C.WL_SEAT_CAPABILITY_TOUCH )
type SeatClient ¶
type SeatClient struct {
// contains filtered or unexported fields
}
type SeatKeyboardState ¶
type SeatKeyboardState struct {
// contains filtered or unexported fields
}
func (SeatKeyboardState) FocusedSurface ¶
func (s SeatKeyboardState) FocusedSurface() Surface
type SeatPointerState ¶
type SeatPointerState struct {
// contains filtered or unexported fields
}
func (SeatPointerState) FocusedClient ¶
func (s SeatPointerState) FocusedClient() SeatClient
func (SeatPointerState) FocusedSurface ¶
func (s SeatPointerState) FocusedSurface() Surface
type ServerDecoration ¶
type ServerDecoration struct {
// contains filtered or unexported fields
}
func (ServerDecoration) Mode ¶
func (d ServerDecoration) Mode() ServerDecorationManagerMode
func (ServerDecoration) OnDestroy ¶
func (d ServerDecoration) OnDestroy(cb func(ServerDecoration))
func (ServerDecoration) OnMode ¶
func (d ServerDecoration) OnMode(cb func(ServerDecoration))
type ServerDecorationManager ¶
type ServerDecorationManager struct {
// contains filtered or unexported fields
}
func NewServerDecorationManager ¶
func NewServerDecorationManager(display Display) ServerDecorationManager
func (ServerDecorationManager) OnDestroy ¶
func (m ServerDecorationManager) OnDestroy(cb func(ServerDecorationManager))
func (ServerDecorationManager) OnNewMode ¶
func (m ServerDecorationManager) OnNewMode(cb func(ServerDecorationManager, ServerDecoration))
func (ServerDecorationManager) SetDefaultMode ¶
func (m ServerDecorationManager) SetDefaultMode(mode ServerDecorationManagerMode)
type ServerDecorationManagerMode ¶
type ServerDecorationManagerMode uint32
const ( ServerDecorationManagerModeNone ServerDecorationManagerMode = C.WLR_SERVER_DECORATION_MANAGER_MODE_NONE ServerDecorationManagerModeClient ServerDecorationManagerMode = C.WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT ServerDecorationManagerModeServer ServerDecorationManagerMode = C.WLR_SERVER_DECORATION_MANAGER_MODE_SERVER )
type Surface ¶
type Surface struct {
// contains filtered or unexported fields
}
func (Surface) CurrentState ¶
func (s Surface) CurrentState() SurfaceState
func (Surface) SendFrameDone ¶
func (Surface) Type ¶
func (s Surface) Type() SurfaceType
func (Surface) XDGSurface ¶
func (s Surface) XDGSurface() XDGSurface
func (Surface) XWaylandSurface ¶
func (s Surface) XWaylandSurface() XWaylandSurface
type SurfaceState ¶
type SurfaceState struct {
// contains filtered or unexported fields
}
func (SurfaceState) Height ¶
func (s SurfaceState) Height() int
func (SurfaceState) Transform ¶
func (s SurfaceState) Transform() uint32
func (SurfaceState) Width ¶
func (s SurfaceState) Width() int
type SurfaceType ¶
type SurfaceType uint32
const ( SurfaceTypeNone SurfaceType = iota SurfaceTypeXDG SurfaceTypeXWayland )
type XCursor ¶
type XCursor struct {
// contains filtered or unexported fields
}
func (XCursor) Image ¶
func (c XCursor) Image(i int) XCursorImage
func (XCursor) ImageCount ¶
func (XCursor) Images ¶
func (c XCursor) Images() []XCursorImage
type XCursorImage ¶
type XCursorImage struct {
// contains filtered or unexported fields
}
type XCursorManager ¶
type XCursorManager struct {
// contains filtered or unexported fields
}
func NewXCursorManager ¶
func NewXCursorManager() XCursorManager
func (XCursorManager) Destroy ¶
func (m XCursorManager) Destroy()
func (XCursorManager) Load ¶
func (m XCursorManager) Load()
func (XCursorManager) SetCursorImage ¶
func (m XCursorManager) SetCursorImage(cursor Cursor, name string)
type XDGShell ¶
type XDGShell struct {
// contains filtered or unexported fields
}
func NewXDGShell ¶
func (XDGShell) OnNewSurface ¶
func (s XDGShell) OnNewSurface(cb func(XDGSurface))
type XDGSurface ¶
type XDGSurface struct {
// contains filtered or unexported fields
}
func (XDGSurface) Geometry ¶
func (s XDGSurface) Geometry() Box
func (XDGSurface) Nil ¶
func (s XDGSurface) Nil() bool
func (XDGSurface) OnDestroy ¶
func (s XDGSurface) OnDestroy(cb func(XDGSurface))
func (XDGSurface) OnMap ¶
func (s XDGSurface) OnMap(cb func(XDGSurface))
func (XDGSurface) OnNewPopup ¶
func (s XDGSurface) OnNewPopup(cb func(XDGSurface, XDGPopup))
func (XDGSurface) OnPingTimeout ¶
func (s XDGSurface) OnPingTimeout(cb func(XDGSurface))
func (XDGSurface) OnUnmap ¶
func (s XDGSurface) OnUnmap(cb func(XDGSurface))
func (XDGSurface) Ping ¶
func (s XDGSurface) Ping()
func (XDGSurface) Role ¶
func (s XDGSurface) Role() XDGSurfaceRole
func (XDGSurface) SendClose ¶
func (s XDGSurface) SendClose()
func (XDGSurface) Surface ¶
func (s XDGSurface) Surface() Surface
func (XDGSurface) TopLevel ¶
func (s XDGSurface) TopLevel() XDGTopLevel
func (XDGSurface) TopLevelSetActivated ¶
func (s XDGSurface) TopLevelSetActivated(activated bool)
func (XDGSurface) TopLevelSetSize ¶
func (s XDGSurface) TopLevelSetSize(width uint32, height uint32)
func (XDGSurface) TopLevelSetTiled ¶
func (s XDGSurface) TopLevelSetTiled(edges Edges)
func (XDGSurface) Walk ¶
func (s XDGSurface) Walk(visit XDGSurfaceWalkFunc)
type XDGSurfaceRole ¶
type XDGSurfaceRole uint32
const ( XDGSurfaceRoleNone XDGSurfaceRole = C.WLR_XDG_SURFACE_ROLE_NONE XDGSurfaceRoleTopLevel XDGSurfaceRole = C.WLR_XDG_SURFACE_ROLE_TOPLEVEL XDGSurfaceRolePopup XDGSurfaceRole = C.WLR_XDG_SURFACE_ROLE_POPUP )
type XDGSurfaceWalkFunc ¶
type XDGTopLevel ¶
type XDGTopLevel struct {
// contains filtered or unexported fields
}
func (XDGTopLevel) Nil ¶
func (s XDGTopLevel) Nil() bool
func (XDGTopLevel) OnRequestMove ¶
func (t XDGTopLevel) OnRequestMove(cb func(client SeatClient, serial uint32))
func (XDGTopLevel) OnRequestResize ¶
func (t XDGTopLevel) OnRequestResize(cb func(client SeatClient, serial uint32, edges Edges))
func (XDGTopLevel) Title ¶
func (t XDGTopLevel) Title() string
type XWayland ¶
type XWayland struct {
// contains filtered or unexported fields
}
func NewXWayland ¶
func NewXWayland(display Display, compositor Compositor, lazy bool) XWayland
func (XWayland) OnNewSurface ¶
func (x XWayland) OnNewSurface(cb func(XWaylandSurface))
func (XWayland) SetCursor ¶
func (x XWayland) SetCursor(img XCursorImage)
type XWaylandSurface ¶
type XWaylandSurface struct {
// contains filtered or unexported fields
}
func (XWaylandSurface) Configure ¶
func (s XWaylandSurface) Configure(x int16, y int16, width uint16, height uint16)
func (XWaylandSurface) Geometry ¶
func (s XWaylandSurface) Geometry() Box
func (XWaylandSurface) OnDestroy ¶
func (s XWaylandSurface) OnDestroy(cb func(XWaylandSurface))
func (XWaylandSurface) OnMap ¶
func (s XWaylandSurface) OnMap(cb func(XWaylandSurface))
func (XWaylandSurface) OnRequestConfigure ¶
func (s XWaylandSurface) OnRequestConfigure(cb func(surface XWaylandSurface, x int16, y int16, width uint16, height uint16))
func (XWaylandSurface) OnRequestMove ¶
func (s XWaylandSurface) OnRequestMove(cb func(surface XWaylandSurface))
func (XWaylandSurface) OnRequestResize ¶
func (s XWaylandSurface) OnRequestResize(cb func(surface XWaylandSurface, edges Edges))
func (XWaylandSurface) OnUnmap ¶
func (s XWaylandSurface) OnUnmap(cb func(XWaylandSurface))
func (XWaylandSurface) Surface ¶
func (s XWaylandSurface) Surface() Surface
Click to show internal directories.
Click to hide internal directories.