Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "screensaver.xml"
Index ¶
- Constants
- func QueryInfoUnchecked(c *xgb.XConn, Drawable xproto.Drawable) error
- func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion byte, ClientMinorVersion byte) error
- func Register(xconn *xgb.XConn) error
- func SelectInput(c *xgb.XConn, Drawable xproto.Drawable, EventMask uint32) error
- func SelectInputUnchecked(c *xgb.XConn, Drawable xproto.Drawable, EventMask uint32) error
- func SetAttributes(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, ...) error
- func SetAttributesUnchecked(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, ...) error
- func Suspend(c *xgb.XConn, Suspend uint32) error
- func SuspendUnchecked(c *xgb.XConn, Suspend uint32) error
- func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)
- func UnsetAttributes(c *xgb.XConn, Drawable xproto.Drawable) error
- func UnsetAttributesUnchecked(c *xgb.XConn, Drawable xproto.Drawable) error
- type NotifyEvent
- type QueryInfoReply
- type QueryVersionReply
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "ScreenSaver" // ExtXName is the name string this extension is known by to the X server. ExtXName = "MIT-SCREEN-SAVER" )
const ( EventNotifyMask = 1 EventCycleMask = 2 )
const ( KindBlanked = 0 KindInternal = 1 KindExternal = 2 )
const ( StateOff = 0 StateOn = 1 StateCycle = 2 StateDisabled = 3 )
const Notify = 0
Notify is the event number for a NotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func QueryInfoUnchecked ¶
QueryInfoUnchecked sends an unchecked request.
func QueryVersionUnchecked ¶
QueryVersionUnchecked sends an unchecked request.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for ScreenSaver extension support, and register relevant extension unmarshalers with the XConn.
func SelectInput ¶
SelectInput sends a checked request.
func SelectInputUnchecked ¶ added in v1.1.0
SelectInputUnchecked sends an unchecked request.
func SetAttributes ¶
func SetAttributes(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) error
SetAttributes sends a checked request.
func SetAttributesUnchecked ¶ added in v1.1.0
func SetAttributesUnchecked(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) error
SetAttributesUnchecked sends an unchecked request.
func SuspendUnchecked ¶ added in v1.1.0
SuspendUnchecked sends an unchecked request.
func UnmarshalNotifyEvent ¶ added in v1.1.0
UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.
func UnsetAttributes ¶
UnsetAttributes sends a checked request.
func UnsetAttributesUnchecked ¶ added in v1.1.0
UnsetAttributesUnchecked sends an unchecked request.
Types ¶
type NotifyEvent ¶
type NotifyEvent struct { Sequence uint16 State byte Time xproto.Timestamp Root xproto.Window Window xproto.Window Kind byte Forced bool }
func (*NotifyEvent) Bytes ¶
func (v *NotifyEvent) Bytes() []byte
Bytes writes a NotifyEvent value to a byte slice.
func (*NotifyEvent) SeqID ¶ added in v1.1.0
func (v *NotifyEvent) SeqID() uint16
SeqID returns the sequence id attached to the Notify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
type QueryInfoReply ¶
type QueryInfoReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply State byte SaverWindow xproto.Window MsUntilServer uint32 MsSinceUserInput uint32 EventMask uint32 Kind byte }
QueryInfoReply represents the data returned from a QueryInfo request.
func QueryInfo ¶
func QueryInfo(c *xgb.XConn, Drawable xproto.Drawable) (QueryInfoReply, error)
QueryInfo sends a checked request.
func (*QueryInfoReply) Unmarshal ¶ added in v1.1.0
func (v *QueryInfoReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryInfoReply value.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ServerMajorVersion uint16 ServerMinorVersion uint16 }
QueryVersionReply represents the data returned from a QueryVersion request.
func QueryVersion ¶
func QueryVersion(c *xgb.XConn, ClientMajorVersion byte, ClientMinorVersion byte) (QueryVersionReply, error)
QueryVersion sends a checked request.
func (*QueryVersionReply) Unmarshal ¶ added in v1.1.0
func (v *QueryVersionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryVersionReply value.