xprint

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 8 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xprint.xml"

Index

Constants

View Source
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"
)
View Source
const (
	AttrJobAttr     = 1
	AttrDocAttr     = 2
	AttrPageAttr    = 3
	AttrPrinterAttr = 4
	AttrServerAttr  = 5
	AttrMediumAttr  = 6
	AttrSpoolerAttr = 7
)
View Source
const (
	DetailStartJobNotify  = 1
	DetailEndJobNotify    = 2
	DetailStartDocNotify  = 3
	DetailEndDocNotify    = 4
	DetailStartPageNotify = 5
	DetailEndPageNotify   = 6
)
View Source
const (
	EvMaskNoEventMask   = 0
	EvMaskPrintMask     = 1
	EvMaskAttributeMask = 2
)
View Source
const (
	GetDocFinished       = 0
	GetDocSecondConsumer = 1
)
View Source
const AttributNotify = 1

AttributNotify is the event number for a AttributNotifyEvent.

View Source
const BadBadContext = 0

BadBadContext is the error number for a BadBadContext.

View Source
const BadBadSequence = 1

BadBadSequence is the error number for a BadBadSequence.

View Source
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

func PrintDestroyContext(c *xgb.XConn, Context uint32) error

PrintDestroyContext sends a checked request.

func PrintDestroyContextUnchecked added in v1.1.0

func PrintDestroyContextUnchecked(c *xgb.XConn, Context uint32) error

PrintDestroyContextUnchecked sends an unchecked request.

func PrintEndDoc

func PrintEndDoc(c *xgb.XConn, Cancel bool) error

PrintEndDoc sends a checked request.

func PrintEndDocUnchecked added in v1.1.0

func PrintEndDocUnchecked(c *xgb.XConn, Cancel bool) error

PrintEndDocUnchecked sends an unchecked request.

func PrintEndJob

func PrintEndJob(c *xgb.XConn, Cancel bool) error

PrintEndJob sends a checked request.

func PrintEndJobUnchecked added in v1.1.0

func PrintEndJobUnchecked(c *xgb.XConn, Cancel bool) error

PrintEndJobUnchecked sends an unchecked request.

func PrintEndPage

func PrintEndPage(c *xgb.XConn, Cancel bool) error

PrintEndPage sends a checked request.

func PrintEndPageUnchecked added in v1.1.0

func PrintEndPageUnchecked(c *xgb.XConn, Cancel bool) error

PrintEndPageUnchecked sends an unchecked request.

func PrintGetAttributesUnchecked

func PrintGetAttributesUnchecked(c *xgb.XConn, Context Pcontext, Pool byte) error

PrintGetAttributesUnchecked sends an unchecked request.

func PrintGetContextUnchecked

func PrintGetContextUnchecked(c *xgb.XConn) error

PrintGetContextUnchecked sends an unchecked request.

func PrintGetDocumentDataUnchecked

func PrintGetDocumentDataUnchecked(c *xgb.XConn, Context Pcontext, MaxBytes uint32) error

PrintGetDocumentDataUnchecked sends an unchecked request.

func PrintGetImageResolutionUnchecked

func PrintGetImageResolutionUnchecked(c *xgb.XConn, Context Pcontext) error

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

func PrintGetPageDimensionsUnchecked(c *xgb.XConn, Context Pcontext) error

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

func PrintInputSelectedUnchecked(c *xgb.XConn, Context Pcontext) error

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

func PrintSelectInput(c *xgb.XConn, Context Pcontext, EventMask uint32) error

PrintSelectInput sends a checked request.

func PrintSelectInputUnchecked added in v1.1.0

func PrintSelectInputUnchecked(c *xgb.XConn, Context Pcontext, EventMask uint32) error

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

func PrintSetContext(c *xgb.XConn, Context uint32) error

PrintSetContext sends a checked request.

func PrintSetContextUnchecked added in v1.1.0

func PrintSetContextUnchecked(c *xgb.XConn, Context uint32) error

PrintSetContextUnchecked sends an unchecked request.

func PrintSetImageResolutionUnchecked

func PrintSetImageResolutionUnchecked(c *xgb.XConn, Context Pcontext, ImageResolution uint16) error

PrintSetImageResolutionUnchecked sends an unchecked request.

func PrintStartDoc

func PrintStartDoc(c *xgb.XConn, DriverMode byte) error

PrintStartDoc sends a checked request.

func PrintStartDocUnchecked added in v1.1.0

func PrintStartDocUnchecked(c *xgb.XConn, DriverMode byte) error

PrintStartDocUnchecked sends an unchecked request.

func PrintStartJob

func PrintStartJob(c *xgb.XConn, OutputMode byte) error

PrintStartJob sends a checked request.

func PrintStartJobUnchecked added in v1.1.0

func PrintStartJobUnchecked(c *xgb.XConn, OutputMode byte) error

PrintStartJobUnchecked sends an unchecked request.

func PrintStartPage

func PrintStartPage(c *xgb.XConn, Window xproto.Window) error

PrintStartPage sends a checked request.

func PrintStartPageUnchecked added in v1.1.0

func PrintStartPageUnchecked(c *xgb.XConn, Window xproto.Window) error

PrintStartPageUnchecked sends an unchecked request.

func PrinterListBytes

func PrinterListBytes(buf []byte, list []Printer) int

PrinterListBytes writes a list of Printer values to a byte slice.

func PrinterListSize

func PrinterListSize(list []Printer) int

PrinterListSize computes the size (bytes) of a list of Printer values.

func PrinterRead

func PrinterRead(buf []byte, v *Printer) int

PrinterRead reads a byte slice into a Printer value.

func PrinterReadList

func PrinterReadList(buf []byte, dest []Printer) int

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

func UnmarshalAttributNotifyEvent(buf []byte) (xgb.XEvent, error)

UnmarshalAttributNotifyEvent constructs a AttributNotifyEvent value that implements xgb.Event from a byte slice.

func UnmarshalBadContextError added in v1.1.0

func UnmarshalBadContextError(buf []byte) (xgb.XError, error)

UnmarshalBadContextError constructs a BadContextError value that implements xgb.Error from a byte slice.

func UnmarshalBadSequenceError added in v1.1.0

func UnmarshalBadSequenceError(buf []byte) (xgb.XError, error)

UnmarshalBadSequenceError constructs a BadSequenceError value that implements xgb.Error from a byte slice.

func UnmarshalNotifyEvent added in v1.1.0

func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)

UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.

Types

type AttributNotifyEvent

type AttributNotifyEvent struct {
	Sequence uint16
	Detail   byte
	Context  Pcontext
}

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

type BadContextError struct {
	Sequence uint16
	NiceName string
}

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

type BadSequenceError struct {
	Sequence uint16
	NiceName string
}

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

type NotifyEvent struct {
	Sequence uint16
	Detail   byte
	Context  Pcontext
	Cancel   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 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.

type Printer

type Printer struct {
	NameLen uint32
	Name    []String8 // size: internal.Pad4((int(NameLen) * 1))
	// padding: 0 bytes
	DescLen     uint32
	Description []String8 // size: internal.Pad4((int(DescLen) * 1))

}

func (Printer) Bytes

func (v Printer) Bytes() []byte

Bytes writes a Printer value to a byte slice.

type String8

type String8 byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL