const ( AttrJobAttr = 1 AttrDocAttr = 2 AttrPageAttr = 3 AttrPrinterAttr = 4 AttrServerAttr = 5 AttrMediumAttr = 6 AttrSpoolerAttr = 7 )
const ( DetailStartJobNotify = 1 DetailEndJobNotify = 2 DetailStartDocNotify = 3 DetailEndDocNotify = 4 DetailStartPageNotify = 5 DetailEndPageNotify = 6 )
const ( EvMaskNoEventMask = 0 EvMaskPrintMask = 1 EvMaskAttributeMask = 2 )
const ( GetDocFinished = 0 GetDocSecondConsumer = 1 )
AttributNotify is the event number for a AttributNotifyEvent.
const AttributNotify = 1
BadBadContext is the error number for a BadBadContext.
const BadBadContext = 0
BadBadSequence is the error number for a BadBadSequence.
const BadBadSequence = 1
Notify is the event number for a NotifyEvent.
const Notify = 0
func AttributNotifyEventNew(buf []byte) xgb.Event
AttributNotifyEventNew constructs a AttributNotifyEvent value that implements xgb.Event from a byte slice.
func BadContextErrorNew(buf []byte) xgb.Error
BadContextErrorNew constructs a BadContextError value that implements xgb.Error from a byte slice.
func BadSequenceErrorNew(buf []byte) xgb.Error
BadSequenceErrorNew constructs a BadSequenceError value that implements xgb.Error from a byte slice.
func Init(c *xgb.Conn) error
Init must be called before using the XpExtension extension.
func NotifyEventNew(buf []byte) xgb.Event
NotifyEventNew constructs a NotifyEvent value that implements xgb.Event from a byte slice.
func PrinterListBytes(buf []byte, list []Printer) int
PrinterListBytes writes a list of Printer values to a byte slice.
func PrinterListSize(list []Printer) int
PrinterListSize computes the size (bytes) of a list of Printer values.
func PrinterRead(buf []byte, v *Printer) int
PrinterRead reads a byte slice into a Printer value.
func PrinterReadList(buf []byte, dest []Printer) int
PrinterReadList reads a byte slice into a list of Printer values.
type AttributNotifyEvent struct { Sequence uint16 Detail byte Context Pcontext }
func (v AttributNotifyEvent) Bytes() []byte
Bytes writes a AttributNotifyEvent value to a byte slice.
func (v AttributNotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the AttributNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v AttributNotifyEvent) String() string
String is a rudimentary string representation of AttributNotifyEvent.
type BadContextError struct { Sequence uint16 NiceName string }
func (err BadContextError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadBadContext error. If no bad value exists, 0 is returned.
func (err BadContextError) Error() string
func (err BadContextError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadContext error. This is mostly used internally.
type BadSequenceError struct { Sequence uint16 NiceName string }
func (err BadSequenceError) BadId() uint32
BadId returns the 'BadValue' number if one exists for the BadBadSequence error. If no bad value exists, 0 is returned.
func (err BadSequenceError) Error() string
func (err BadSequenceError) SequenceId() uint16
SequenceId returns the sequence id attached to the BadBadSequence error. This is mostly used internally.
CreateContextCookie is a cookie used only for CreateContext requests.
type CreateContextCookie struct { *xgb.Cookie }
func CreateContext(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie
CreateContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateContextChecked(c *xgb.Conn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) CreateContextCookie
CreateContextChecked sends a checked request. If an error occurs, it can be retrieved using CreateContextCookie.Check()
func (cook CreateContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type NotifyEvent struct { Sequence uint16 Detail byte Context Pcontext Cancel bool }
func (v NotifyEvent) Bytes() []byte
Bytes writes a NotifyEvent value to a byte slice.
func (v NotifyEvent) SequenceId() uint16
SequenceId returns the sequence id attached to the Notify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
func (v NotifyEvent) String() string
String is a rudimentary string representation of NotifyEvent.
type Pcontext uint32
func NewPcontextId(c *xgb.Conn) (Pcontext, error)
PrintDestroyContextCookie is a cookie used only for PrintDestroyContext requests.
type PrintDestroyContextCookie struct { *xgb.Cookie }
func PrintDestroyContext(c *xgb.Conn, Context uint32) PrintDestroyContextCookie
PrintDestroyContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintDestroyContextChecked(c *xgb.Conn, Context uint32) PrintDestroyContextCookie
PrintDestroyContextChecked sends a checked request. If an error occurs, it can be retrieved using PrintDestroyContextCookie.Check()
func (cook PrintDestroyContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintEndDocCookie is a cookie used only for PrintEndDoc requests.
type PrintEndDocCookie struct { *xgb.Cookie }
func PrintEndDoc(c *xgb.Conn, Cancel bool) PrintEndDocCookie
PrintEndDoc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndDocChecked(c *xgb.Conn, Cancel bool) PrintEndDocCookie
PrintEndDocChecked sends a checked request. If an error occurs, it can be retrieved using PrintEndDocCookie.Check()
func (cook PrintEndDocCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintEndJobCookie is a cookie used only for PrintEndJob requests.
type PrintEndJobCookie struct { *xgb.Cookie }
func PrintEndJob(c *xgb.Conn, Cancel bool) PrintEndJobCookie
PrintEndJob sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndJobChecked(c *xgb.Conn, Cancel bool) PrintEndJobCookie
PrintEndJobChecked sends a checked request. If an error occurs, it can be retrieved using PrintEndJobCookie.Check()
func (cook PrintEndJobCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintEndPageCookie is a cookie used only for PrintEndPage requests.
type PrintEndPageCookie struct { *xgb.Cookie }
func PrintEndPage(c *xgb.Conn, Cancel bool) PrintEndPageCookie
PrintEndPage sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintEndPageChecked(c *xgb.Conn, Cancel bool) PrintEndPageCookie
PrintEndPageChecked sends a checked request. If an error occurs, it can be retrieved using PrintEndPageCookie.Check()
func (cook PrintEndPageCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintGetAttributesCookie is a cookie used only for PrintGetAttributes requests.
type PrintGetAttributesCookie struct { *xgb.Cookie }
func PrintGetAttributes(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttributesCookie
PrintGetAttributes sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetAttributesCookie.Reply()
func PrintGetAttributesUnchecked(c *xgb.Conn, Context Pcontext, Pool byte) PrintGetAttributesCookie
PrintGetAttributesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetAttributesCookie) Reply() (*PrintGetAttributesReply, error)
Reply blocks and returns the reply data for a PrintGetAttributes request.
PrintGetAttributesReply represents the data returned from a PrintGetAttributes request.
type PrintGetAttributesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes StringLen uint32 // padding: 20 bytes Attributes []String8 // size: xgb.Pad((int(StringLen) * 1)) }
PrintGetContextCookie is a cookie used only for PrintGetContext requests.
type PrintGetContextCookie struct { *xgb.Cookie }
func PrintGetContext(c *xgb.Conn) PrintGetContextCookie
PrintGetContext sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetContextCookie.Reply()
func PrintGetContextUnchecked(c *xgb.Conn) PrintGetContextCookie
PrintGetContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetContextCookie) Reply() (*PrintGetContextReply, error)
Reply blocks and returns the reply data for a PrintGetContext request.
PrintGetContextReply represents the data returned from a PrintGetContext request.
type PrintGetContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Context uint32 }
PrintGetDocumentDataCookie is a cookie used only for PrintGetDocumentData requests.
type PrintGetDocumentDataCookie struct { *xgb.Cookie }
func PrintGetDocumentData(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintGetDocumentDataCookie
PrintGetDocumentData sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetDocumentDataCookie.Reply()
func PrintGetDocumentDataUnchecked(c *xgb.Conn, Context Pcontext, MaxBytes uint32) PrintGetDocumentDataCookie
PrintGetDocumentDataUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetDocumentDataCookie) Reply() (*PrintGetDocumentDataReply, error)
Reply blocks and returns the reply data for a PrintGetDocumentData request.
PrintGetDocumentDataReply represents the data returned from a PrintGetDocumentData request.
type PrintGetDocumentDataReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes StatusCode uint32 FinishedFlag uint32 DataLen uint32 // padding: 12 bytes Data []byte // size: xgb.Pad((int(DataLen) * 1)) }
PrintGetImageResolutionCookie is a cookie used only for PrintGetImageResolution requests.
type PrintGetImageResolutionCookie struct { *xgb.Cookie }
func PrintGetImageResolution(c *xgb.Conn, Context Pcontext) PrintGetImageResolutionCookie
PrintGetImageResolution sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetImageResolutionCookie.Reply()
func PrintGetImageResolutionUnchecked(c *xgb.Conn, Context Pcontext) PrintGetImageResolutionCookie
PrintGetImageResolutionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetImageResolutionCookie) Reply() (*PrintGetImageResolutionReply, error)
Reply blocks and returns the reply data for a PrintGetImageResolution request.
PrintGetImageResolutionReply represents the data returned from a PrintGetImageResolution request.
type PrintGetImageResolutionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ImageResolution uint16 }
PrintGetOneAttributesCookie is a cookie used only for PrintGetOneAttributes requests.
type PrintGetOneAttributesCookie struct { *xgb.Cookie }
func PrintGetOneAttributes(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) PrintGetOneAttributesCookie
PrintGetOneAttributes sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetOneAttributesCookie.Reply()
func PrintGetOneAttributesUnchecked(c *xgb.Conn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) PrintGetOneAttributesCookie
PrintGetOneAttributesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetOneAttributesCookie) Reply() (*PrintGetOneAttributesReply, error)
Reply blocks and returns the reply data for a PrintGetOneAttributes request.
PrintGetOneAttributesReply represents the data returned from a PrintGetOneAttributes request.
type PrintGetOneAttributesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ValueLen uint32 // padding: 20 bytes Value []String8 // size: xgb.Pad((int(ValueLen) * 1)) }
PrintGetPageDimensionsCookie is a cookie used only for PrintGetPageDimensions requests.
type PrintGetPageDimensionsCookie struct { *xgb.Cookie }
func PrintGetPageDimensions(c *xgb.Conn, Context Pcontext) PrintGetPageDimensionsCookie
PrintGetPageDimensions sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetPageDimensionsCookie.Reply()
func PrintGetPageDimensionsUnchecked(c *xgb.Conn, Context Pcontext) PrintGetPageDimensionsCookie
PrintGetPageDimensionsUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetPageDimensionsCookie) Reply() (*PrintGetPageDimensionsReply, error)
Reply blocks and returns the reply data for a PrintGetPageDimensions request.
PrintGetPageDimensionsReply represents the data returned from a PrintGetPageDimensions request.
type PrintGetPageDimensionsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Width uint16 Height uint16 OffsetX uint16 OffsetY uint16 ReproducibleWidth uint16 ReproducibleHeight uint16 }
PrintGetPrinterListCookie is a cookie used only for PrintGetPrinterList requests.
type PrintGetPrinterListCookie struct { *xgb.Cookie }
func PrintGetPrinterList(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie
PrintGetPrinterList sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetPrinterListCookie.Reply()
func PrintGetPrinterListUnchecked(c *xgb.Conn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) PrintGetPrinterListCookie
PrintGetPrinterListUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetPrinterListCookie) Reply() (*PrintGetPrinterListReply, error)
Reply blocks and returns the reply data for a PrintGetPrinterList request.
PrintGetPrinterListReply represents the data returned from a PrintGetPrinterList request.
type PrintGetPrinterListReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ListCount uint32 // padding: 20 bytes Printers []Printer // size: PrinterListSize(Printers) }
PrintGetScreenOfContextCookie is a cookie used only for PrintGetScreenOfContext requests.
type PrintGetScreenOfContextCookie struct { *xgb.Cookie }
func PrintGetScreenOfContext(c *xgb.Conn) PrintGetScreenOfContextCookie
PrintGetScreenOfContext sends a checked request. If an error occurs, it will be returned with the reply by calling PrintGetScreenOfContextCookie.Reply()
func PrintGetScreenOfContextUnchecked(c *xgb.Conn) PrintGetScreenOfContextCookie
PrintGetScreenOfContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintGetScreenOfContextCookie) Reply() (*PrintGetScreenOfContextReply, error)
Reply blocks and returns the reply data for a PrintGetScreenOfContext request.
PrintGetScreenOfContextReply represents the data returned from a PrintGetScreenOfContext request.
type PrintGetScreenOfContextReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes Root xproto.Window }
PrintInputSelectedCookie is a cookie used only for PrintInputSelected requests.
type PrintInputSelectedCookie struct { *xgb.Cookie }
func PrintInputSelected(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie
PrintInputSelected sends a checked request. If an error occurs, it will be returned with the reply by calling PrintInputSelectedCookie.Reply()
func PrintInputSelectedUnchecked(c *xgb.Conn, Context Pcontext) PrintInputSelectedCookie
PrintInputSelectedUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintInputSelectedCookie) Reply() (*PrintInputSelectedReply, error)
Reply blocks and returns the reply data for a PrintInputSelected request.
PrintInputSelectedReply represents the data returned from a PrintInputSelected request.
type PrintInputSelectedReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes EventMask uint32 EventList []uint32 AllEventsMask uint32 AllEventsList []uint32 }
PrintPutDocumentDataCookie is a cookie used only for PrintPutDocumentData requests.
type PrintPutDocumentDataCookie struct { *xgb.Cookie }
func PrintPutDocumentData(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie
PrintPutDocumentData sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintPutDocumentDataChecked(c *xgb.Conn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) PrintPutDocumentDataCookie
PrintPutDocumentDataChecked sends a checked request. If an error occurs, it can be retrieved using PrintPutDocumentDataCookie.Check()
func (cook PrintPutDocumentDataCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintQueryScreensCookie is a cookie used only for PrintQueryScreens requests.
type PrintQueryScreensCookie struct { *xgb.Cookie }
func PrintQueryScreens(c *xgb.Conn) PrintQueryScreensCookie
PrintQueryScreens sends a checked request. If an error occurs, it will be returned with the reply by calling PrintQueryScreensCookie.Reply()
func PrintQueryScreensUnchecked(c *xgb.Conn) PrintQueryScreensCookie
PrintQueryScreensUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintQueryScreensCookie) Reply() (*PrintQueryScreensReply, error)
Reply blocks and returns the reply data for a PrintQueryScreens request.
PrintQueryScreensReply represents the data returned from a PrintQueryScreens request.
type PrintQueryScreensReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes ListCount uint32 // padding: 20 bytes Roots []xproto.Window // size: xgb.Pad((int(ListCount) * 4)) }
PrintQueryVersionCookie is a cookie used only for PrintQueryVersion requests.
type PrintQueryVersionCookie struct { *xgb.Cookie }
func PrintQueryVersion(c *xgb.Conn) PrintQueryVersionCookie
PrintQueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling PrintQueryVersionCookie.Reply()
func PrintQueryVersionUnchecked(c *xgb.Conn) PrintQueryVersionCookie
PrintQueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintQueryVersionCookie) Reply() (*PrintQueryVersionReply, error)
Reply blocks and returns the reply data for a PrintQueryVersion request.
PrintQueryVersionReply represents the data returned from a PrintQueryVersion request.
type PrintQueryVersionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes MajorVersion uint16 MinorVersion uint16 }
PrintRehashPrinterListCookie is a cookie used only for PrintRehashPrinterList requests.
type PrintRehashPrinterListCookie struct { *xgb.Cookie }
func PrintRehashPrinterList(c *xgb.Conn) PrintRehashPrinterListCookie
PrintRehashPrinterList sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintRehashPrinterListChecked(c *xgb.Conn) PrintRehashPrinterListCookie
PrintRehashPrinterListChecked sends a checked request. If an error occurs, it can be retrieved using PrintRehashPrinterListCookie.Check()
func (cook PrintRehashPrinterListCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintSelectInputCookie is a cookie used only for PrintSelectInput requests.
type PrintSelectInputCookie struct { *xgb.Cookie }
func PrintSelectInput(c *xgb.Conn, Context Pcontext, EventMask uint32, EventList []uint32) PrintSelectInputCookie
PrintSelectInput sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSelectInputChecked(c *xgb.Conn, Context Pcontext, EventMask uint32, EventList []uint32) PrintSelectInputCookie
PrintSelectInputChecked sends a checked request. If an error occurs, it can be retrieved using PrintSelectInputCookie.Check()
func (cook PrintSelectInputCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintSetAttributesCookie is a cookie used only for PrintSetAttributes requests.
type PrintSetAttributesCookie struct { *xgb.Cookie }
func PrintSetAttributes(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie
PrintSetAttributes sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetAttributesChecked(c *xgb.Conn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) PrintSetAttributesCookie
PrintSetAttributesChecked sends a checked request. If an error occurs, it can be retrieved using PrintSetAttributesCookie.Check()
func (cook PrintSetAttributesCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintSetContextCookie is a cookie used only for PrintSetContext requests.
type PrintSetContextCookie struct { *xgb.Cookie }
func PrintSetContext(c *xgb.Conn, Context uint32) PrintSetContextCookie
PrintSetContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintSetContextChecked(c *xgb.Conn, Context uint32) PrintSetContextCookie
PrintSetContextChecked sends a checked request. If an error occurs, it can be retrieved using PrintSetContextCookie.Check()
func (cook PrintSetContextCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintSetImageResolutionCookie is a cookie used only for PrintSetImageResolution requests.
type PrintSetImageResolutionCookie struct { *xgb.Cookie }
func PrintSetImageResolution(c *xgb.Conn, Context Pcontext, ImageResolution uint16) PrintSetImageResolutionCookie
PrintSetImageResolution sends a checked request. If an error occurs, it will be returned with the reply by calling PrintSetImageResolutionCookie.Reply()
func PrintSetImageResolutionUnchecked(c *xgb.Conn, Context Pcontext, ImageResolution uint16) PrintSetImageResolutionCookie
PrintSetImageResolutionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func (cook PrintSetImageResolutionCookie) Reply() (*PrintSetImageResolutionReply, error)
Reply blocks and returns the reply data for a PrintSetImageResolution request.
PrintSetImageResolutionReply represents the data returned from a PrintSetImageResolution request.
type PrintSetImageResolutionReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Status bool PreviousResolutions uint16 }
PrintStartDocCookie is a cookie used only for PrintStartDoc requests.
type PrintStartDocCookie struct { *xgb.Cookie }
func PrintStartDoc(c *xgb.Conn, DriverMode byte) PrintStartDocCookie
PrintStartDoc sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartDocChecked(c *xgb.Conn, DriverMode byte) PrintStartDocCookie
PrintStartDocChecked sends a checked request. If an error occurs, it can be retrieved using PrintStartDocCookie.Check()
func (cook PrintStartDocCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintStartJobCookie is a cookie used only for PrintStartJob requests.
type PrintStartJobCookie struct { *xgb.Cookie }
func PrintStartJob(c *xgb.Conn, OutputMode byte) PrintStartJobCookie
PrintStartJob sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartJobChecked(c *xgb.Conn, OutputMode byte) PrintStartJobCookie
PrintStartJobChecked sends a checked request. If an error occurs, it can be retrieved using PrintStartJobCookie.Check()
func (cook PrintStartJobCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
PrintStartPageCookie is a cookie used only for PrintStartPage requests.
type PrintStartPageCookie struct { *xgb.Cookie }
func PrintStartPage(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie
PrintStartPage sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func PrintStartPageChecked(c *xgb.Conn, Window xproto.Window) PrintStartPageCookie
PrintStartPageChecked sends a checked request. If an error occurs, it can be retrieved using PrintStartPageCookie.Check()
func (cook PrintStartPageCookie) Check() error
Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.
type Printer struct { NameLen uint32 Name []String8 // size: xgb.Pad((int(NameLen) * 1)) DescLen uint32 Description []String8 // size: xgb.Pad((int(DescLen) * 1)) }
func (v Printer) Bytes() []byte
Bytes writes a Printer value to a byte slice.
type String8 byte