Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "xprint.xml"
Index ¶
- Constants
- func CreateContext(c *xgb.XConn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, ...) error
- func CreateContextUnchecked(c *xgb.XConn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, ...) error
- func PrintDestroyContext(c *xgb.XConn, Context uint32) error
- func PrintDestroyContextUnchecked(c *xgb.XConn, Context uint32) error
- func PrintEndDoc(c *xgb.XConn, Cancel bool) error
- func PrintEndDocUnchecked(c *xgb.XConn, Cancel bool) error
- func PrintEndJob(c *xgb.XConn, Cancel bool) error
- func PrintEndJobUnchecked(c *xgb.XConn, Cancel bool) error
- func PrintEndPage(c *xgb.XConn, Cancel bool) error
- func PrintEndPageUnchecked(c *xgb.XConn, Cancel bool) error
- func PrintGetAttributesUnchecked(c *xgb.XConn, Context Pcontext, Pool byte) error
- func PrintGetContextUnchecked(c *xgb.XConn) error
- func PrintGetDocumentDataUnchecked(c *xgb.XConn, Context Pcontext, MaxBytes uint32) error
- func PrintGetImageResolutionUnchecked(c *xgb.XConn, Context Pcontext) error
- func PrintGetOneAttributesUnchecked(c *xgb.XConn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) error
- func PrintGetPageDimensionsUnchecked(c *xgb.XConn, Context Pcontext) error
- func PrintGetPrinterListUnchecked(c *xgb.XConn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, ...) error
- func PrintGetScreenOfContextUnchecked(c *xgb.XConn) error
- func PrintInputSelectedUnchecked(c *xgb.XConn, Context Pcontext) error
- func PrintPutDocumentData(c *xgb.XConn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, ...) error
- func PrintPutDocumentDataUnchecked(c *xgb.XConn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, ...) error
- func PrintQueryScreensUnchecked(c *xgb.XConn) error
- func PrintQueryVersionUnchecked(c *xgb.XConn) error
- func PrintRehashPrinterList(c *xgb.XConn) error
- func PrintRehashPrinterListUnchecked(c *xgb.XConn) error
- func PrintSelectInput(c *xgb.XConn, Context Pcontext, EventMask uint32) error
- func PrintSelectInputUnchecked(c *xgb.XConn, Context Pcontext, EventMask uint32) error
- func PrintSetAttributes(c *xgb.XConn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, ...) error
- func PrintSetAttributesUnchecked(c *xgb.XConn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, ...) error
- func PrintSetContext(c *xgb.XConn, Context uint32) error
- func PrintSetContextUnchecked(c *xgb.XConn, Context uint32) error
- func PrintSetImageResolutionUnchecked(c *xgb.XConn, Context Pcontext, ImageResolution uint16) error
- func PrintStartDoc(c *xgb.XConn, DriverMode byte) error
- func PrintStartDocUnchecked(c *xgb.XConn, DriverMode byte) error
- func PrintStartJob(c *xgb.XConn, OutputMode byte) error
- func PrintStartJobUnchecked(c *xgb.XConn, OutputMode byte) error
- func PrintStartPage(c *xgb.XConn, Window xproto.Window) error
- func PrintStartPageUnchecked(c *xgb.XConn, Window xproto.Window) error
- func PrinterListBytes(buf []byte, list []Printer) int
- func PrinterListSize(list []Printer) int
- func PrinterRead(buf []byte, v *Printer) int
- func PrinterReadList(buf []byte, dest []Printer) int
- func Register(xconn *xgb.XConn) error
- func UnmarshalAttributNotifyEvent(buf []byte) (xgb.XEvent, error)
- func UnmarshalBadContextError(buf []byte) (xgb.XError, error)
- func UnmarshalBadSequenceError(buf []byte) (xgb.XError, error)
- func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)
- type AttributNotifyEvent
- type BadContextError
- type BadSequenceError
- type NotifyEvent
- type Pcontext
- type PrintGetAttributesReply
- type PrintGetContextReply
- type PrintGetDocumentDataReply
- type PrintGetImageResolutionReply
- type PrintGetOneAttributesReply
- type PrintGetPageDimensionsReply
- type PrintGetPrinterListReply
- type PrintGetScreenOfContextReply
- type PrintInputSelectedReply
- type PrintQueryScreensReply
- type PrintQueryVersionReply
- type PrintSetImageResolutionReply
- type Printer
- type String8
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "XPrint" // ExtXName is the name string this extension is known by to the X server. ExtXName = "XpExtension" )
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 )
const AttributNotify = 1
AttributNotify is the event number for a AttributNotifyEvent.
const BadBadContext = 0
BadBadContext is the error number for a BadBadContext.
const BadBadSequence = 1
BadBadSequence is the error number for a BadBadSequence.
const Notify = 0
Notify is the event number for a NotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func CreateContext ¶
func CreateContext(c *xgb.XConn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) error
CreateContext sends a checked request.
func CreateContextUnchecked ¶ added in v1.1.0
func CreateContextUnchecked(c *xgb.XConn, ContextId uint32, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) error
CreateContextUnchecked sends an unchecked request.
func PrintDestroyContext ¶
PrintDestroyContext sends a checked request.
func PrintDestroyContextUnchecked ¶ added in v1.1.0
PrintDestroyContextUnchecked sends an unchecked request.
func PrintEndDoc ¶
PrintEndDoc sends a checked request.
func PrintEndDocUnchecked ¶ added in v1.1.0
PrintEndDocUnchecked sends an unchecked request.
func PrintEndJob ¶
PrintEndJob sends a checked request.
func PrintEndJobUnchecked ¶ added in v1.1.0
PrintEndJobUnchecked sends an unchecked request.
func PrintEndPage ¶
PrintEndPage sends a checked request.
func PrintEndPageUnchecked ¶ added in v1.1.0
PrintEndPageUnchecked sends an unchecked request.
func PrintGetAttributesUnchecked ¶
PrintGetAttributesUnchecked sends an unchecked request.
func PrintGetContextUnchecked ¶
func PrintGetContextUnchecked(c *xgb.XConn) error
PrintGetContextUnchecked sends an unchecked request.
func PrintGetDocumentDataUnchecked ¶
PrintGetDocumentDataUnchecked sends an unchecked request.
func PrintGetImageResolutionUnchecked ¶
PrintGetImageResolutionUnchecked sends an unchecked request.
func PrintGetOneAttributesUnchecked ¶
func PrintGetOneAttributesUnchecked(c *xgb.XConn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) error
PrintGetOneAttributesUnchecked sends an unchecked request.
func PrintGetPageDimensionsUnchecked ¶
PrintGetPageDimensionsUnchecked sends an unchecked request.
func PrintGetPrinterListUnchecked ¶
func PrintGetPrinterListUnchecked(c *xgb.XConn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) error
PrintGetPrinterListUnchecked sends an unchecked request.
func PrintGetScreenOfContextUnchecked ¶
func PrintGetScreenOfContextUnchecked(c *xgb.XConn) error
PrintGetScreenOfContextUnchecked sends an unchecked request.
func PrintInputSelectedUnchecked ¶
PrintInputSelectedUnchecked sends an unchecked request.
func PrintPutDocumentData ¶
func PrintPutDocumentData(c *xgb.XConn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) error
PrintPutDocumentData sends a checked request.
func PrintPutDocumentDataUnchecked ¶ added in v1.1.0
func PrintPutDocumentDataUnchecked(c *xgb.XConn, Drawable xproto.Drawable, LenData uint32, LenFmt uint16, LenOptions uint16, Data []byte, DocFormat []String8, Options []String8) error
PrintPutDocumentDataUnchecked sends an unchecked request.
func PrintQueryScreensUnchecked ¶
func PrintQueryScreensUnchecked(c *xgb.XConn) error
PrintQueryScreensUnchecked sends an unchecked request.
func PrintQueryVersionUnchecked ¶
func PrintQueryVersionUnchecked(c *xgb.XConn) error
PrintQueryVersionUnchecked sends an unchecked request.
func PrintRehashPrinterList ¶
func PrintRehashPrinterList(c *xgb.XConn) error
PrintRehashPrinterList sends a checked request.
func PrintRehashPrinterListUnchecked ¶ added in v1.1.0
func PrintRehashPrinterListUnchecked(c *xgb.XConn) error
PrintRehashPrinterListUnchecked sends an unchecked request.
func PrintSelectInput ¶
PrintSelectInput sends a checked request.
func PrintSelectInputUnchecked ¶ added in v1.1.0
PrintSelectInputUnchecked sends an unchecked request.
func PrintSetAttributes ¶
func PrintSetAttributes(c *xgb.XConn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) error
PrintSetAttributes sends a checked request.
func PrintSetAttributesUnchecked ¶ added in v1.1.0
func PrintSetAttributesUnchecked(c *xgb.XConn, Context Pcontext, StringLen uint32, Pool byte, Rule byte, Attributes []String8) error
PrintSetAttributesUnchecked sends an unchecked request.
func PrintSetContext ¶
PrintSetContext sends a checked request.
func PrintSetContextUnchecked ¶ added in v1.1.0
PrintSetContextUnchecked sends an unchecked request.
func PrintSetImageResolutionUnchecked ¶
PrintSetImageResolutionUnchecked sends an unchecked request.
func PrintStartDoc ¶
PrintStartDoc sends a checked request.
func PrintStartDocUnchecked ¶ added in v1.1.0
PrintStartDocUnchecked sends an unchecked request.
func PrintStartJob ¶
PrintStartJob sends a checked request.
func PrintStartJobUnchecked ¶ added in v1.1.0
PrintStartJobUnchecked sends an unchecked request.
func PrintStartPage ¶
PrintStartPage sends a checked request.
func PrintStartPageUnchecked ¶ added in v1.1.0
PrintStartPageUnchecked sends an unchecked request.
func PrinterListBytes ¶
PrinterListBytes writes a list of Printer values to a byte slice.
func PrinterListSize ¶
PrinterListSize computes the size (bytes) of a list of Printer values.
func PrinterRead ¶
PrinterRead reads a byte slice into a Printer value.
func PrinterReadList ¶
PrinterReadList reads a byte slice into a list of Printer values.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for XPrint extension support, and register relevant extension unmarshalers with the XConn.
func UnmarshalAttributNotifyEvent ¶ added in v1.1.0
UnmarshalAttributNotifyEvent constructs a AttributNotifyEvent value that implements xgb.Event from a byte slice.
func UnmarshalBadContextError ¶ added in v1.1.0
UnmarshalBadContextError constructs a BadContextError value that implements xgb.Error from a byte slice.
func UnmarshalBadSequenceError ¶ added in v1.1.0
UnmarshalBadSequenceError constructs a BadSequenceError value that implements xgb.Error from a byte slice.
func UnmarshalNotifyEvent ¶ added in v1.1.0
UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.
Types ¶
type AttributNotifyEvent ¶
func (*AttributNotifyEvent) Bytes ¶
func (v *AttributNotifyEvent) Bytes() []byte
Bytes writes a AttributNotifyEvent value to a byte slice.
func (*AttributNotifyEvent) SeqID ¶ added in v1.1.0
func (v *AttributNotifyEvent) SeqID() uint16
SeqID returns the sequence id attached to the AttributNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.
type BadContextError ¶
func (*BadContextError) BadID ¶ added in v1.1.0
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 (*BadContextError) Error ¶
func (err *BadContextError) Error() string
Error returns a rudimentary string representation of the BadBadContext error.
func (*BadContextError) SeqID ¶ added in v1.1.0
func (err *BadContextError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadContext error. This is mostly used internally.
type BadSequenceError ¶
func (*BadSequenceError) BadID ¶ added in v1.1.0
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 (*BadSequenceError) Error ¶
func (err *BadSequenceError) Error() string
Error returns a rudimentary string representation of the BadBadSequence error.
func (*BadSequenceError) SeqID ¶ added in v1.1.0
func (err *BadSequenceError) SeqID() uint16
SeqID returns the sequence id attached to the BadBadSequence error. This is mostly used internally.
type NotifyEvent ¶
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 Pcontext ¶
type Pcontext uint32
func NewPcontextID ¶ added in v1.1.0
func NewPcontextID(c *xgb.XConn) Pcontext
type PrintGetAttributesReply ¶
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: internal.Pad4((int(StringLen) * 1)) }
PrintGetAttributesReply represents the data returned from a PrintGetAttributes request.
func PrintGetAttributes ¶
func PrintGetAttributes(c *xgb.XConn, Context Pcontext, Pool byte) (PrintGetAttributesReply, error)
PrintGetAttributes sends a checked request.
func (*PrintGetAttributesReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetAttributesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetAttributesReply value.
type PrintGetContextReply ¶
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 }
PrintGetContextReply represents the data returned from a PrintGetContext request.
func PrintGetContext ¶
func PrintGetContext(c *xgb.XConn) (PrintGetContextReply, error)
PrintGetContext sends a checked request.
func (*PrintGetContextReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetContextReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetContextReply value.
type PrintGetDocumentDataReply ¶
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: internal.Pad4((int(DataLen) * 1)) }
PrintGetDocumentDataReply represents the data returned from a PrintGetDocumentData request.
func PrintGetDocumentData ¶
func PrintGetDocumentData(c *xgb.XConn, Context Pcontext, MaxBytes uint32) (PrintGetDocumentDataReply, error)
PrintGetDocumentData sends a checked request.
func (*PrintGetDocumentDataReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetDocumentDataReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetDocumentDataReply value.
type PrintGetImageResolutionReply ¶
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 }
PrintGetImageResolutionReply represents the data returned from a PrintGetImageResolution request.
func PrintGetImageResolution ¶
func PrintGetImageResolution(c *xgb.XConn, Context Pcontext) (PrintGetImageResolutionReply, error)
PrintGetImageResolution sends a checked request.
func (*PrintGetImageResolutionReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetImageResolutionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetImageResolutionReply value.
type PrintGetOneAttributesReply ¶
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: internal.Pad4((int(ValueLen) * 1)) }
PrintGetOneAttributesReply represents the data returned from a PrintGetOneAttributes request.
func PrintGetOneAttributes ¶
func PrintGetOneAttributes(c *xgb.XConn, Context Pcontext, NameLen uint32, Pool byte, Name []String8) (PrintGetOneAttributesReply, error)
PrintGetOneAttributes sends a checked request.
func (*PrintGetOneAttributesReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetOneAttributesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetOneAttributesReply value.
type PrintGetPageDimensionsReply ¶
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 }
PrintGetPageDimensionsReply represents the data returned from a PrintGetPageDimensions request.
func PrintGetPageDimensions ¶
func PrintGetPageDimensions(c *xgb.XConn, Context Pcontext) (PrintGetPageDimensionsReply, error)
PrintGetPageDimensions sends a checked request.
func (*PrintGetPageDimensionsReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetPageDimensionsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetPageDimensionsReply value.
type PrintGetPrinterListReply ¶
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) }
PrintGetPrinterListReply represents the data returned from a PrintGetPrinterList request.
func PrintGetPrinterList ¶
func PrintGetPrinterList(c *xgb.XConn, PrinterNameLen uint32, LocaleLen uint32, PrinterName []String8, Locale []String8) (PrintGetPrinterListReply, error)
PrintGetPrinterList sends a checked request.
func (*PrintGetPrinterListReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetPrinterListReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetPrinterListReply value.
type PrintGetScreenOfContextReply ¶
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 }
PrintGetScreenOfContextReply represents the data returned from a PrintGetScreenOfContext request.
func PrintGetScreenOfContext ¶
func PrintGetScreenOfContext(c *xgb.XConn) (PrintGetScreenOfContextReply, error)
PrintGetScreenOfContext sends a checked request.
func (*PrintGetScreenOfContextReply) Unmarshal ¶ added in v1.1.0
func (v *PrintGetScreenOfContextReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintGetScreenOfContextReply value.
type PrintInputSelectedReply ¶
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 AllEventsMask uint32 }
PrintInputSelectedReply represents the data returned from a PrintInputSelected request.
func PrintInputSelected ¶
func PrintInputSelected(c *xgb.XConn, Context Pcontext) (PrintInputSelectedReply, error)
PrintInputSelected sends a checked request.
func (*PrintInputSelectedReply) Unmarshal ¶ added in v1.1.0
func (v *PrintInputSelectedReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintInputSelectedReply value.
type PrintQueryScreensReply ¶
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: internal.Pad4((int(ListCount) * 4)) }
PrintQueryScreensReply represents the data returned from a PrintQueryScreens request.
func PrintQueryScreens ¶
func PrintQueryScreens(c *xgb.XConn) (PrintQueryScreensReply, error)
PrintQueryScreens sends a checked request.
func (*PrintQueryScreensReply) Unmarshal ¶ added in v1.1.0
func (v *PrintQueryScreensReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintQueryScreensReply value.
type PrintQueryVersionReply ¶
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 }
PrintQueryVersionReply represents the data returned from a PrintQueryVersion request.
func PrintQueryVersion ¶
func PrintQueryVersion(c *xgb.XConn) (PrintQueryVersionReply, error)
PrintQueryVersion sends a checked request.
func (*PrintQueryVersionReply) Unmarshal ¶ added in v1.1.0
func (v *PrintQueryVersionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintQueryVersionReply value.
type PrintSetImageResolutionReply ¶
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 }
PrintSetImageResolutionReply represents the data returned from a PrintSetImageResolution request.
func PrintSetImageResolution ¶
func PrintSetImageResolution(c *xgb.XConn, Context Pcontext, ImageResolution uint16) (PrintSetImageResolutionReply, error)
PrintSetImageResolution sends a checked request.
func (*PrintSetImageResolutionReply) Unmarshal ¶ added in v1.1.0
func (v *PrintSetImageResolutionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a PrintSetImageResolutionReply value.