xgb: github.com/BurntSushi/xgb/xprint Index | Files

package xprint

import "github.com/BurntSushi/xgb/xprint"

Package xprint is the X client API for the XpExtension extension.

Index

Package Files

xprint.go

Constants

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.

func AttributNotifyEventNew Uses

func AttributNotifyEventNew(buf []byte) xgb.Event

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

func BadContextErrorNew Uses

func BadContextErrorNew(buf []byte) xgb.Error

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

func BadSequenceErrorNew Uses

func BadSequenceErrorNew(buf []byte) xgb.Error

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

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XpExtension extension.

func NotifyEventNew Uses

func NotifyEventNew(buf []byte) xgb.Event

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

func PrinterListBytes Uses

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

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

func PrinterListSize Uses

func PrinterListSize(list []Printer) int

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

func PrinterRead Uses

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

PrinterRead reads a byte slice into a Printer value.

func PrinterReadList Uses

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

PrinterReadList reads a byte slice into a list of Printer values.

type AttributNotifyEvent Uses

type AttributNotifyEvent struct {
    Sequence uint16
    Detail   byte
    Context  Pcontext
}

func (AttributNotifyEvent) Bytes Uses

func (v AttributNotifyEvent) Bytes() []byte

Bytes writes a AttributNotifyEvent value to a byte slice.

func (AttributNotifyEvent) SequenceId Uses

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 (AttributNotifyEvent) String Uses

func (v AttributNotifyEvent) String() string

String is a rudimentary string representation of AttributNotifyEvent.

type BadContextError Uses

type BadContextError struct {
    Sequence uint16
    NiceName string
}

func (BadContextError) BadId Uses

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 Uses

func (err BadContextError) Error() string

func (BadContextError) SequenceId Uses

func (err BadContextError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadContext error. This is mostly used internally.

type BadSequenceError Uses

type BadSequenceError struct {
    Sequence uint16
    NiceName string
}

func (BadSequenceError) BadId Uses

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 Uses

func (err BadSequenceError) Error() string

func (BadSequenceError) SequenceId Uses

func (err BadSequenceError) SequenceId() uint16

SequenceId returns the sequence id attached to the BadBadSequence error. This is mostly used internally.

type CreateContextCookie Uses

type CreateContextCookie struct {
    *xgb.Cookie
}

CreateContextCookie is a cookie used only for CreateContext requests.

func CreateContext Uses

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 Uses

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 (CreateContextCookie) Check Uses

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 Uses

type NotifyEvent struct {
    Sequence uint16
    Detail   byte
    Context  Pcontext
    Cancel   bool
}

func (NotifyEvent) Bytes Uses

func (v NotifyEvent) Bytes() []byte

Bytes writes a NotifyEvent value to a byte slice.

func (NotifyEvent) SequenceId Uses

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 (NotifyEvent) String Uses

func (v NotifyEvent) String() string

String is a rudimentary string representation of NotifyEvent.

type Pcontext Uses

type Pcontext uint32

func NewPcontextId Uses

func NewPcontextId(c *xgb.Conn) (Pcontext, error)

type PrintDestroyContextCookie Uses

type PrintDestroyContextCookie struct {
    *xgb.Cookie
}

PrintDestroyContextCookie is a cookie used only for PrintDestroyContext requests.

func PrintDestroyContext Uses

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 Uses

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 (PrintDestroyContextCookie) Check Uses

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.

type PrintEndDocCookie Uses

type PrintEndDocCookie struct {
    *xgb.Cookie
}

PrintEndDocCookie is a cookie used only for PrintEndDoc requests.

func PrintEndDoc Uses

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 Uses

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 (PrintEndDocCookie) Check Uses

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.

type PrintEndJobCookie Uses

type PrintEndJobCookie struct {
    *xgb.Cookie
}

PrintEndJobCookie is a cookie used only for PrintEndJob requests.

func PrintEndJob Uses

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 Uses

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 (PrintEndJobCookie) Check Uses

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.

type PrintEndPageCookie Uses

type PrintEndPageCookie struct {
    *xgb.Cookie
}

PrintEndPageCookie is a cookie used only for PrintEndPage requests.

func PrintEndPage Uses

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 Uses

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 (PrintEndPageCookie) Check Uses

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.

type PrintGetAttributesCookie Uses

type PrintGetAttributesCookie struct {
    *xgb.Cookie
}

PrintGetAttributesCookie is a cookie used only for PrintGetAttributes requests.

func PrintGetAttributes Uses

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 Uses

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 (PrintGetAttributesCookie) Reply Uses

func (cook PrintGetAttributesCookie) Reply() (*PrintGetAttributesReply, error)

Reply blocks and returns the reply data for a PrintGetAttributes request.

type PrintGetAttributesReply Uses

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))
}

PrintGetAttributesReply represents the data returned from a PrintGetAttributes request.

type PrintGetContextCookie Uses

type PrintGetContextCookie struct {
    *xgb.Cookie
}

PrintGetContextCookie is a cookie used only for PrintGetContext requests.

func PrintGetContext Uses

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 Uses

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 (PrintGetContextCookie) Reply Uses

func (cook PrintGetContextCookie) Reply() (*PrintGetContextReply, error)

Reply blocks and returns the reply data for a PrintGetContext request.

type PrintGetContextReply Uses

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.

type PrintGetDocumentDataCookie Uses

type PrintGetDocumentDataCookie struct {
    *xgb.Cookie
}

PrintGetDocumentDataCookie is a cookie used only for PrintGetDocumentData requests.

func PrintGetDocumentData Uses

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 Uses

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 (PrintGetDocumentDataCookie) Reply Uses

func (cook PrintGetDocumentDataCookie) Reply() (*PrintGetDocumentDataReply, error)

Reply blocks and returns the reply data for a PrintGetDocumentData request.

type PrintGetDocumentDataReply Uses

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))
}

PrintGetDocumentDataReply represents the data returned from a PrintGetDocumentData request.

type PrintGetImageResolutionCookie Uses

type PrintGetImageResolutionCookie struct {
    *xgb.Cookie
}

PrintGetImageResolutionCookie is a cookie used only for PrintGetImageResolution requests.

func PrintGetImageResolution Uses

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 Uses

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 (PrintGetImageResolutionCookie) Reply Uses

func (cook PrintGetImageResolutionCookie) Reply() (*PrintGetImageResolutionReply, error)

Reply blocks and returns the reply data for a PrintGetImageResolution request.

type PrintGetImageResolutionReply Uses

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.

type PrintGetOneAttributesCookie Uses

type PrintGetOneAttributesCookie struct {
    *xgb.Cookie
}

PrintGetOneAttributesCookie is a cookie used only for PrintGetOneAttributes requests.

func PrintGetOneAttributes Uses

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 Uses

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 (PrintGetOneAttributesCookie) Reply Uses

func (cook PrintGetOneAttributesCookie) Reply() (*PrintGetOneAttributesReply, error)

Reply blocks and returns the reply data for a PrintGetOneAttributes request.

type PrintGetOneAttributesReply Uses

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))
}

PrintGetOneAttributesReply represents the data returned from a PrintGetOneAttributes request.

type PrintGetPageDimensionsCookie Uses

type PrintGetPageDimensionsCookie struct {
    *xgb.Cookie
}

PrintGetPageDimensionsCookie is a cookie used only for PrintGetPageDimensions requests.

func PrintGetPageDimensions Uses

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 Uses

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 (PrintGetPageDimensionsCookie) Reply Uses

func (cook PrintGetPageDimensionsCookie) Reply() (*PrintGetPageDimensionsReply, error)

Reply blocks and returns the reply data for a PrintGetPageDimensions request.

type PrintGetPageDimensionsReply Uses

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.

type PrintGetPrinterListCookie Uses

type PrintGetPrinterListCookie struct {
    *xgb.Cookie
}

PrintGetPrinterListCookie is a cookie used only for PrintGetPrinterList requests.

func PrintGetPrinterList Uses

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 Uses

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 (PrintGetPrinterListCookie) Reply Uses

func (cook PrintGetPrinterListCookie) Reply() (*PrintGetPrinterListReply, error)

Reply blocks and returns the reply data for a PrintGetPrinterList request.

type PrintGetPrinterListReply Uses

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.

type PrintGetScreenOfContextCookie Uses

type PrintGetScreenOfContextCookie struct {
    *xgb.Cookie
}

PrintGetScreenOfContextCookie is a cookie used only for PrintGetScreenOfContext requests.

func PrintGetScreenOfContext Uses

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 Uses

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 (PrintGetScreenOfContextCookie) Reply Uses

func (cook PrintGetScreenOfContextCookie) Reply() (*PrintGetScreenOfContextReply, error)

Reply blocks and returns the reply data for a PrintGetScreenOfContext request.

type PrintGetScreenOfContextReply Uses

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.

type PrintInputSelectedCookie Uses

type PrintInputSelectedCookie struct {
    *xgb.Cookie
}

PrintInputSelectedCookie is a cookie used only for PrintInputSelected requests.

func PrintInputSelected Uses

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 Uses

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 (PrintInputSelectedCookie) Reply Uses

func (cook PrintInputSelectedCookie) Reply() (*PrintInputSelectedReply, error)

Reply blocks and returns the reply data for a PrintInputSelected request.

type PrintInputSelectedReply Uses

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
}

PrintInputSelectedReply represents the data returned from a PrintInputSelected request.

type PrintPutDocumentDataCookie Uses

type PrintPutDocumentDataCookie struct {
    *xgb.Cookie
}

PrintPutDocumentDataCookie is a cookie used only for PrintPutDocumentData requests.

func PrintPutDocumentData Uses

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 Uses

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 (PrintPutDocumentDataCookie) Check Uses

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.

type PrintQueryScreensCookie Uses

type PrintQueryScreensCookie struct {
    *xgb.Cookie
}

PrintQueryScreensCookie is a cookie used only for PrintQueryScreens requests.

func PrintQueryScreens Uses

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 Uses

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 (PrintQueryScreensCookie) Reply Uses

func (cook PrintQueryScreensCookie) Reply() (*PrintQueryScreensReply, error)

Reply blocks and returns the reply data for a PrintQueryScreens request.

type PrintQueryScreensReply Uses

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))
}

PrintQueryScreensReply represents the data returned from a PrintQueryScreens request.

type PrintQueryVersionCookie Uses

type PrintQueryVersionCookie struct {
    *xgb.Cookie
}

PrintQueryVersionCookie is a cookie used only for PrintQueryVersion requests.

func PrintQueryVersion Uses

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 Uses

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 (PrintQueryVersionCookie) Reply Uses

func (cook PrintQueryVersionCookie) Reply() (*PrintQueryVersionReply, error)

Reply blocks and returns the reply data for a PrintQueryVersion request.

type PrintQueryVersionReply Uses

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.

type PrintRehashPrinterListCookie Uses

type PrintRehashPrinterListCookie struct {
    *xgb.Cookie
}

PrintRehashPrinterListCookie is a cookie used only for PrintRehashPrinterList requests.

func PrintRehashPrinterList Uses

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 Uses

func PrintRehashPrinterListChecked(c *xgb.Conn) PrintRehashPrinterListCookie

PrintRehashPrinterListChecked sends a checked request. If an error occurs, it can be retrieved using PrintRehashPrinterListCookie.Check()

func (PrintRehashPrinterListCookie) Check Uses

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.

type PrintSelectInputCookie Uses

type PrintSelectInputCookie struct {
    *xgb.Cookie
}

PrintSelectInputCookie is a cookie used only for PrintSelectInput requests.

func PrintSelectInput Uses

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 Uses

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 (PrintSelectInputCookie) Check Uses

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.

type PrintSetAttributesCookie Uses

type PrintSetAttributesCookie struct {
    *xgb.Cookie
}

PrintSetAttributesCookie is a cookie used only for PrintSetAttributes requests.

func PrintSetAttributes Uses

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 Uses

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 (PrintSetAttributesCookie) Check Uses

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.

type PrintSetContextCookie Uses

type PrintSetContextCookie struct {
    *xgb.Cookie
}

PrintSetContextCookie is a cookie used only for PrintSetContext requests.

func PrintSetContext Uses

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 Uses

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 (PrintSetContextCookie) Check Uses

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.

type PrintSetImageResolutionCookie Uses

type PrintSetImageResolutionCookie struct {
    *xgb.Cookie
}

PrintSetImageResolutionCookie is a cookie used only for PrintSetImageResolution requests.

func PrintSetImageResolution Uses

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 Uses

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 (PrintSetImageResolutionCookie) Reply Uses

func (cook PrintSetImageResolutionCookie) Reply() (*PrintSetImageResolutionReply, error)

Reply blocks and returns the reply data for a PrintSetImageResolution request.

type PrintSetImageResolutionReply Uses

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.

type PrintStartDocCookie Uses

type PrintStartDocCookie struct {
    *xgb.Cookie
}

PrintStartDocCookie is a cookie used only for PrintStartDoc requests.

func PrintStartDoc Uses

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 Uses

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 (PrintStartDocCookie) Check Uses

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.

type PrintStartJobCookie Uses

type PrintStartJobCookie struct {
    *xgb.Cookie
}

PrintStartJobCookie is a cookie used only for PrintStartJob requests.

func PrintStartJob Uses

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 Uses

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 (PrintStartJobCookie) Check Uses

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.

type PrintStartPageCookie Uses

type PrintStartPageCookie struct {
    *xgb.Cookie
}

PrintStartPageCookie is a cookie used only for PrintStartPage requests.

func PrintStartPage Uses

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 Uses

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 (PrintStartPageCookie) Check Uses

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 Uses

type Printer struct {
    NameLen     uint32
    Name        []String8 // size: xgb.Pad((int(NameLen) * 1))
    DescLen     uint32
    Description []String8 // size: xgb.Pad((int(DescLen) * 1))
}

func (Printer) Bytes Uses

func (v Printer) Bytes() []byte

Bytes writes a Printer value to a byte slice.

type String8 Uses

type String8 byte

Package xprint imports 2 packages (graph). Updated 2016-11-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).