Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "shm.xml"
Index ¶
- Constants
- func Attach(c *xgb.XConn, Shmseg Seg, Shmid uint32, ReadOnly bool) error
- func AttachFd(c *xgb.XConn, Shmseg Seg, ReadOnly bool) error
- func AttachFdUnchecked(c *xgb.XConn, Shmseg Seg, ReadOnly bool) error
- func AttachUnchecked(c *xgb.XConn, Shmseg Seg, Shmid uint32, ReadOnly bool) error
- func CreatePixmap(c *xgb.XConn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, ...) error
- func CreatePixmapUnchecked(c *xgb.XConn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, ...) error
- func CreateSegmentUnchecked(c *xgb.XConn, Shmseg Seg, Size uint32, ReadOnly bool) error
- func Detach(c *xgb.XConn, Shmseg Seg) error
- func DetachUnchecked(c *xgb.XConn, Shmseg Seg) error
- func GetImageUnchecked(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, ...) error
- func PutImage(c *xgb.XConn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, ...) error
- func PutImageUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, ...) error
- func QueryVersionUnchecked(c *xgb.XConn) error
- func Register(xconn *xgb.XConn) error
- func UnmarshalBadSegError(buf []byte) (xgb.XError, error)
- func UnmarshalCompletionEvent(buf []byte) (xgb.XEvent, error)
- type BadSegError
- type CompletionEvent
- type CreateSegmentReply
- type GetImageReply
- type QueryVersionReply
- type Seg
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "Shm" // ExtXName is the name string this extension is known by to the X server. ExtXName = "MIT-SHM" )
const BadBadSeg = 0
BadBadSeg is the error number for a BadBadSeg.
const Completion = 0
Completion is the event number for a CompletionEvent.
Variables ¶
This section is empty.
Functions ¶
func AttachFdUnchecked ¶ added in v1.1.0
AttachFdUnchecked sends an unchecked request.
func AttachUnchecked ¶ added in v1.1.0
AttachUnchecked sends an unchecked request.
func CreatePixmap ¶
func CreatePixmap(c *xgb.XConn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) error
CreatePixmap sends a checked request.
func CreatePixmapUnchecked ¶ added in v1.1.0
func CreatePixmapUnchecked(c *xgb.XConn, Pid xproto.Pixmap, Drawable xproto.Drawable, Width uint16, Height uint16, Depth byte, Shmseg Seg, Offset uint32) error
CreatePixmapUnchecked sends an unchecked request.
func CreateSegmentUnchecked ¶
CreateSegmentUnchecked sends an unchecked request.
func DetachUnchecked ¶ added in v1.1.0
DetachUnchecked sends an unchecked request.
func GetImageUnchecked ¶
func GetImageUnchecked(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) error
GetImageUnchecked sends an unchecked request.
func PutImage ¶
func PutImage(c *xgb.XConn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent bool, Shmseg Seg, Offset uint32) error
PutImage sends a checked request.
func PutImageUnchecked ¶ added in v1.1.0
func PutImageUnchecked(c *xgb.XConn, Drawable xproto.Drawable, Gc xproto.Gcontext, TotalWidth uint16, TotalHeight uint16, SrcX uint16, SrcY uint16, SrcWidth uint16, SrcHeight uint16, DstX int16, DstY int16, Depth byte, Format byte, SendEvent bool, Shmseg Seg, Offset uint32) error
PutImageUnchecked sends an unchecked request.
func QueryVersionUnchecked ¶
func QueryVersionUnchecked(c *xgb.XConn) error
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 Shm extension support, and register relevant extension unmarshalers with the XConn.
func UnmarshalBadSegError ¶ added in v1.1.0
BadSegErrorNew constructs a BadSegError value that implements xgb.Error from a byte slice.
func UnmarshalCompletionEvent ¶ added in v1.1.0
UnmarshalCompletionEvent constructs a CompletionEvent value that implements xgb.Event from a byte slice.
Types ¶
type BadSegError ¶
type BadSegError xproto.ValueError
func (*BadSegError) BadID ¶ added in v1.1.0
func (err *BadSegError) BadID() uint32
BadId returns the 'BadValue' number if one exists for the BadBadSeg error. If no bad value exists, 0 is returned.
func (*BadSegError) Error ¶
func (err *BadSegError) Error() string
Error returns a rudimentary string representation of the BadBadSeg error.
func (*BadSegError) SeqID ¶ added in v1.1.0
func (err *BadSegError) SeqID() uint16
SequenceId returns the sequence id attached to the BadBadSeg error. This is mostly used internally.
type CompletionEvent ¶
type CompletionEvent struct { Sequence uint16 // padding: 1 bytes Drawable xproto.Drawable MinorEvent uint16 MajorEvent byte // padding: 1 bytes Shmseg Seg Offset uint32 }
func (*CompletionEvent) Bytes ¶
func (v *CompletionEvent) Bytes() []byte
Bytes writes a CompletionEvent value to a byte slice.
func (*CompletionEvent) SeqID ¶ added in v1.1.0
func (v *CompletionEvent) SeqID() uint16
SeqID returns the sequence id attached to the Completion event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
type CreateSegmentReply ¶
type CreateSegmentReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Nfd byte }
CreateSegmentReply represents the data returned from a CreateSegment request.
func CreateSegment ¶
func CreateSegment(c *xgb.XConn, Shmseg Seg, Size uint32, ReadOnly bool) (CreateSegmentReply, error)
CreateSegment sends a checked request.
func (*CreateSegmentReply) Unmarshal ¶ added in v1.1.0
func (v *CreateSegmentReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a CreateSegmentReply value.
type GetImageReply ¶
type GetImageReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Depth byte Visual xproto.Visualid Size uint32 }
GetImageReply represents the data returned from a GetImage request.
func GetImage ¶
func GetImage(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, PlaneMask uint32, Format byte, Shmseg Seg, Offset uint32) (GetImageReply, error)
GetImage sends a checked request.
func (*GetImageReply) Unmarshal ¶ added in v1.1.0
func (v *GetImageReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a GetImageReply value.
type QueryVersionReply ¶
type QueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply MajorVersion uint16 MinorVersion uint16 Uid uint16 Gid uint16 PixmapFormat byte }
QueryVersionReply represents the data returned from a QueryVersion request.
func QueryVersion ¶
func QueryVersion(c *xgb.XConn) (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.