sync

package
v0.0.0-...-7043a79 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2013 License: BSD-3-Clause, GooglePatentClause Imports: 2 Imported by: 0

Documentation

Overview

Package sync is the X client API for the SYNC extension.

Index

Constants

View Source
const (
	AlarmstateActive    = 0
	AlarmstateInactive  = 1
	AlarmstateDestroyed = 2
)
View Source
const (
	TesttypePositiveTransition = 0
	TesttypeNegativeTransition = 1
	TesttypePositiveComparison = 2
	TesttypeNegativeComparison = 3
)
View Source
const (
	ValuetypeAbsolute = 0
	ValuetypeRelative = 1
)
View Source
const (
	CaCounter   = 1
	CaValueType = 2
	CaValue     = 4
	CaTestType  = 8
	CaDelta     = 16
	CaEvents    = 32
)
View Source
const AlarmNotify = 1

AlarmNotify is the event number for a AlarmNotifyEvent.

View Source
const BadAlarm = 1

BadAlarm is the error number for a BadAlarm.

View Source
const BadCounter = 0

BadCounter is the error number for a BadCounter.

View Source
const CounterNotify = 0

CounterNotify is the event number for a CounterNotifyEvent.

Variables

This section is empty.

Functions

func AlarmErrorNew

func AlarmErrorNew(buf []byte) xgb.Error

AlarmErrorNew constructs a AlarmError value that implements xgb.Error from a byte slice.

func AlarmNotifyEventNew

func AlarmNotifyEventNew(buf []byte) xgb.Event

AlarmNotifyEventNew constructs a AlarmNotifyEvent value that implements xgb.Event from a byte slice.

func CounterErrorNew

func CounterErrorNew(buf []byte) xgb.Error

CounterErrorNew constructs a CounterError value that implements xgb.Error from a byte slice.

func CounterNotifyEventNew

func CounterNotifyEventNew(buf []byte) xgb.Event

CounterNotifyEventNew constructs a CounterNotifyEvent value that implements xgb.Event from a byte slice.

func Init

func Init(c *xgb.Conn) error

Init must be called before using the SYNC extension.

func Int64ListBytes

func Int64ListBytes(buf []byte, list []Int64) int

Int64ListBytes writes a list of Int64 values to a byte slice.

func Int64Read

func Int64Read(buf []byte, v *Int64) int

Int64Read reads a byte slice into a Int64 value.

func Int64ReadList

func Int64ReadList(buf []byte, dest []Int64) int

Int64ReadList reads a byte slice into a list of Int64 values.

func SystemcounterListBytes

func SystemcounterListBytes(buf []byte, list []Systemcounter) int

SystemcounterListBytes writes a list of Systemcounter values to a byte slice.

func SystemcounterListSize

func SystemcounterListSize(list []Systemcounter) int

SystemcounterListSize computes the size (bytes) of a list of Systemcounter values.

func SystemcounterRead

func SystemcounterRead(buf []byte, v *Systemcounter) int

SystemcounterRead reads a byte slice into a Systemcounter value.

func SystemcounterReadList

func SystemcounterReadList(buf []byte, dest []Systemcounter) int

SystemcounterReadList reads a byte slice into a list of Systemcounter values.

func TriggerListBytes

func TriggerListBytes(buf []byte, list []Trigger) int

TriggerListBytes writes a list of Trigger values to a byte slice.

func TriggerRead

func TriggerRead(buf []byte, v *Trigger) int

TriggerRead reads a byte slice into a Trigger value.

func TriggerReadList

func TriggerReadList(buf []byte, dest []Trigger) int

TriggerReadList reads a byte slice into a list of Trigger values.

func WaitconditionListBytes

func WaitconditionListBytes(buf []byte, list []Waitcondition) int

WaitconditionListBytes writes a list of Waitcondition values to a byte slice.

func WaitconditionRead

func WaitconditionRead(buf []byte, v *Waitcondition) int

WaitconditionRead reads a byte slice into a Waitcondition value.

func WaitconditionReadList

func WaitconditionReadList(buf []byte, dest []Waitcondition) int

WaitconditionReadList reads a byte slice into a list of Waitcondition values.

Types

type Alarm

type Alarm uint32

func NewAlarmId

func NewAlarmId(c *xgb.Conn) (Alarm, error)

type AlarmError

type AlarmError struct {
	Sequence    uint16
	NiceName    string
	BadAlarm    uint32
	MinorOpcode uint16
	MajorOpcode byte
}

func (AlarmError) BadId

func (err AlarmError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadAlarm error. If no bad value exists, 0 is returned.

func (AlarmError) Error

func (err AlarmError) Error() string

func (AlarmError) SequenceId

func (err AlarmError) SequenceId() uint16

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

type AlarmNotifyEvent

type AlarmNotifyEvent struct {
	Sequence     uint16
	Kind         byte
	Alarm        Alarm
	CounterValue Int64
	AlarmValue   Int64
	Timestamp    xproto.Timestamp
	State        byte
}

func (AlarmNotifyEvent) Bytes

func (v AlarmNotifyEvent) Bytes() []byte

Bytes writes a AlarmNotifyEvent value to a byte slice.

func (AlarmNotifyEvent) SequenceId

func (v AlarmNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the AlarmNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (AlarmNotifyEvent) String

func (v AlarmNotifyEvent) String() string

String is a rudimentary string representation of AlarmNotifyEvent.

type AwaitCookie

type AwaitCookie struct {
	*xgb.Cookie
}

AwaitCookie is a cookie used only for Await requests.

func Await

func Await(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie

Await sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func AwaitChecked

func AwaitChecked(c *xgb.Conn, WaitList []Waitcondition) AwaitCookie

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

func (AwaitCookie) Check

func (cook AwaitCookie) 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 AwaitFenceCookie

type AwaitFenceCookie struct {
	*xgb.Cookie
}

AwaitFenceCookie is a cookie used only for AwaitFence requests.

func AwaitFence

func AwaitFence(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie

AwaitFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func AwaitFenceChecked

func AwaitFenceChecked(c *xgb.Conn, FenceList []Fence) AwaitFenceCookie

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

func (AwaitFenceCookie) Check

func (cook AwaitFenceCookie) 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 ChangeAlarmCookie

type ChangeAlarmCookie struct {
	*xgb.Cookie
}

ChangeAlarmCookie is a cookie used only for ChangeAlarm requests.

func ChangeAlarm

func ChangeAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) ChangeAlarmCookie

ChangeAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeAlarmChecked

func ChangeAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) ChangeAlarmCookie

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

func (ChangeAlarmCookie) Check

func (cook ChangeAlarmCookie) 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 ChangeCounterCookie

type ChangeCounterCookie struct {
	*xgb.Cookie
}

ChangeCounterCookie is a cookie used only for ChangeCounter requests.

func ChangeCounter

func ChangeCounter(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie

ChangeCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ChangeCounterChecked

func ChangeCounterChecked(c *xgb.Conn, Counter Counter, Amount Int64) ChangeCounterCookie

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

func (ChangeCounterCookie) Check

func (cook ChangeCounterCookie) 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 Counter

type Counter uint32

func NewCounterId

func NewCounterId(c *xgb.Conn) (Counter, error)

type CounterError

type CounterError struct {
	Sequence    uint16
	NiceName    string
	BadCounter  uint32
	MinorOpcode uint16
	MajorOpcode byte
}

func (CounterError) BadId

func (err CounterError) BadId() uint32

BadId returns the 'BadValue' number if one exists for the BadCounter error. If no bad value exists, 0 is returned.

func (CounterError) Error

func (err CounterError) Error() string

func (CounterError) SequenceId

func (err CounterError) SequenceId() uint16

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

type CounterNotifyEvent

type CounterNotifyEvent struct {
	Sequence     uint16
	Kind         byte
	Counter      Counter
	WaitValue    Int64
	CounterValue Int64
	Timestamp    xproto.Timestamp
	Count        uint16
	Destroyed    bool
}

func (CounterNotifyEvent) Bytes

func (v CounterNotifyEvent) Bytes() []byte

Bytes writes a CounterNotifyEvent value to a byte slice.

func (CounterNotifyEvent) SequenceId

func (v CounterNotifyEvent) SequenceId() uint16

SequenceId returns the sequence id attached to the CounterNotify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

func (CounterNotifyEvent) String

func (v CounterNotifyEvent) String() string

String is a rudimentary string representation of CounterNotifyEvent.

type CreateAlarmCookie

type CreateAlarmCookie struct {
	*xgb.Cookie
}

CreateAlarmCookie is a cookie used only for CreateAlarm requests.

func CreateAlarm

func CreateAlarm(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) CreateAlarmCookie

CreateAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateAlarmChecked

func CreateAlarmChecked(c *xgb.Conn, Id Alarm, ValueMask uint32, ValueList []uint32) CreateAlarmCookie

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

func (CreateAlarmCookie) Check

func (cook CreateAlarmCookie) 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 CreateCounterCookie

type CreateCounterCookie struct {
	*xgb.Cookie
}

CreateCounterCookie is a cookie used only for CreateCounter requests.

func CreateCounter

func CreateCounter(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie

CreateCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateCounterChecked

func CreateCounterChecked(c *xgb.Conn, Id Counter, InitialValue Int64) CreateCounterCookie

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

func (CreateCounterCookie) Check

func (cook CreateCounterCookie) 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 CreateFenceCookie

type CreateFenceCookie struct {
	*xgb.Cookie
}

CreateFenceCookie is a cookie used only for CreateFence requests.

func CreateFence

func CreateFence(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie

CreateFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func CreateFenceChecked

func CreateFenceChecked(c *xgb.Conn, Drawable xproto.Drawable, Fence Fence, InitiallyTriggered bool) CreateFenceCookie

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

func (CreateFenceCookie) Check

func (cook CreateFenceCookie) 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 DestroyAlarmCookie

type DestroyAlarmCookie struct {
	*xgb.Cookie
}

DestroyAlarmCookie is a cookie used only for DestroyAlarm requests.

func DestroyAlarm

func DestroyAlarm(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie

DestroyAlarm sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroyAlarmChecked

func DestroyAlarmChecked(c *xgb.Conn, Alarm Alarm) DestroyAlarmCookie

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

func (DestroyAlarmCookie) Check

func (cook DestroyAlarmCookie) 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 DestroyCounterCookie

type DestroyCounterCookie struct {
	*xgb.Cookie
}

DestroyCounterCookie is a cookie used only for DestroyCounter requests.

func DestroyCounter

func DestroyCounter(c *xgb.Conn, Counter Counter) DestroyCounterCookie

DestroyCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroyCounterChecked

func DestroyCounterChecked(c *xgb.Conn, Counter Counter) DestroyCounterCookie

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

func (DestroyCounterCookie) Check

func (cook DestroyCounterCookie) 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 DestroyFenceCookie

type DestroyFenceCookie struct {
	*xgb.Cookie
}

DestroyFenceCookie is a cookie used only for DestroyFence requests.

func DestroyFence

func DestroyFence(c *xgb.Conn, Fence Fence) DestroyFenceCookie

DestroyFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroyFenceChecked

func DestroyFenceChecked(c *xgb.Conn, Fence Fence) DestroyFenceCookie

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

func (DestroyFenceCookie) Check

func (cook DestroyFenceCookie) 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 Fence

type Fence uint32

func NewFenceId

func NewFenceId(c *xgb.Conn) (Fence, error)

type GetPriorityCookie

type GetPriorityCookie struct {
	*xgb.Cookie
}

GetPriorityCookie is a cookie used only for GetPriority requests.

func GetPriority

func GetPriority(c *xgb.Conn, Id uint32) GetPriorityCookie

GetPriority sends a checked request. If an error occurs, it will be returned with the reply by calling GetPriorityCookie.Reply()

func GetPriorityUnchecked

func GetPriorityUnchecked(c *xgb.Conn, Id uint32) GetPriorityCookie

GetPriorityUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetPriorityCookie) Reply

func (cook GetPriorityCookie) Reply() (*GetPriorityReply, error)

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

type GetPriorityReply

type GetPriorityReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Priority int32
}

GetPriorityReply represents the data returned from a GetPriority request.

type InitializeCookie

type InitializeCookie struct {
	*xgb.Cookie
}

InitializeCookie is a cookie used only for Initialize requests.

func Initialize

func Initialize(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie

Initialize sends a checked request. If an error occurs, it will be returned with the reply by calling InitializeCookie.Reply()

func InitializeUnchecked

func InitializeUnchecked(c *xgb.Conn, DesiredMajorVersion byte, DesiredMinorVersion byte) InitializeCookie

InitializeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (InitializeCookie) Reply

func (cook InitializeCookie) Reply() (*InitializeReply, error)

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

type InitializeReply

type InitializeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	MajorVersion byte
	MinorVersion byte
}

InitializeReply represents the data returned from a Initialize request.

type Int64

type Int64 struct {
	Hi int32
	Lo uint32
}

func (Int64) Bytes

func (v Int64) Bytes() []byte

Bytes writes a Int64 value to a byte slice.

type ListSystemCountersCookie

type ListSystemCountersCookie struct {
	*xgb.Cookie
}

ListSystemCountersCookie is a cookie used only for ListSystemCounters requests.

func ListSystemCounters

func ListSystemCounters(c *xgb.Conn) ListSystemCountersCookie

ListSystemCounters sends a checked request. If an error occurs, it will be returned with the reply by calling ListSystemCountersCookie.Reply()

func ListSystemCountersUnchecked

func ListSystemCountersUnchecked(c *xgb.Conn) ListSystemCountersCookie

ListSystemCountersUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ListSystemCountersCookie) Reply

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

type ListSystemCountersReply

type ListSystemCountersReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	CountersLen uint32
	// padding: 20 bytes
	Counters []Systemcounter // size: SystemcounterListSize(Counters)
}

ListSystemCountersReply represents the data returned from a ListSystemCounters request.

type QueryAlarmCookie

type QueryAlarmCookie struct {
	*xgb.Cookie
}

QueryAlarmCookie is a cookie used only for QueryAlarm requests.

func QueryAlarm

func QueryAlarm(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie

QueryAlarm sends a checked request. If an error occurs, it will be returned with the reply by calling QueryAlarmCookie.Reply()

func QueryAlarmUnchecked

func QueryAlarmUnchecked(c *xgb.Conn, Alarm Alarm) QueryAlarmCookie

QueryAlarmUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryAlarmCookie) Reply

func (cook QueryAlarmCookie) Reply() (*QueryAlarmReply, error)

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

type QueryAlarmReply

type QueryAlarmReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Trigger Trigger
	Delta   Int64
	Events  bool
	State   byte
}

QueryAlarmReply represents the data returned from a QueryAlarm request.

type QueryCounterCookie

type QueryCounterCookie struct {
	*xgb.Cookie
}

QueryCounterCookie is a cookie used only for QueryCounter requests.

func QueryCounter

func QueryCounter(c *xgb.Conn, Counter Counter) QueryCounterCookie

QueryCounter sends a checked request. If an error occurs, it will be returned with the reply by calling QueryCounterCookie.Reply()

func QueryCounterUnchecked

func QueryCounterUnchecked(c *xgb.Conn, Counter Counter) QueryCounterCookie

QueryCounterUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryCounterCookie) Reply

func (cook QueryCounterCookie) Reply() (*QueryCounterReply, error)

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

type QueryCounterReply

type QueryCounterReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	CounterValue Int64
}

QueryCounterReply represents the data returned from a QueryCounter request.

type QueryFenceCookie

type QueryFenceCookie struct {
	*xgb.Cookie
}

QueryFenceCookie is a cookie used only for QueryFence requests.

func QueryFence

func QueryFence(c *xgb.Conn, Fence Fence) QueryFenceCookie

QueryFence sends a checked request. If an error occurs, it will be returned with the reply by calling QueryFenceCookie.Reply()

func QueryFenceUnchecked

func QueryFenceUnchecked(c *xgb.Conn, Fence Fence) QueryFenceCookie

QueryFenceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryFenceCookie) Reply

func (cook QueryFenceCookie) Reply() (*QueryFenceReply, error)

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

type QueryFenceReply

type QueryFenceReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Triggered bool
}

QueryFenceReply represents the data returned from a QueryFence request.

type ResetFenceCookie

type ResetFenceCookie struct {
	*xgb.Cookie
}

ResetFenceCookie is a cookie used only for ResetFence requests.

func ResetFence

func ResetFence(c *xgb.Conn, Fence Fence) ResetFenceCookie

ResetFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func ResetFenceChecked

func ResetFenceChecked(c *xgb.Conn, Fence Fence) ResetFenceCookie

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

func (ResetFenceCookie) Check

func (cook ResetFenceCookie) 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 SetCounterCookie

type SetCounterCookie struct {
	*xgb.Cookie
}

SetCounterCookie is a cookie used only for SetCounter requests.

func SetCounter

func SetCounter(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie

SetCounter sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetCounterChecked

func SetCounterChecked(c *xgb.Conn, Counter Counter, Value Int64) SetCounterCookie

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

func (SetCounterCookie) Check

func (cook SetCounterCookie) 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 SetPriorityCookie

type SetPriorityCookie struct {
	*xgb.Cookie
}

SetPriorityCookie is a cookie used only for SetPriority requests.

func SetPriority

func SetPriority(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie

SetPriority sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func SetPriorityChecked

func SetPriorityChecked(c *xgb.Conn, Id uint32, Priority int32) SetPriorityCookie

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

func (SetPriorityCookie) Check

func (cook SetPriorityCookie) 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 Systemcounter

type Systemcounter struct {
	Counter    Counter
	Resolution Int64
	NameLen    uint16
	Name       string // size: xgb.Pad((int(NameLen) * 1))
}

func (Systemcounter) Bytes

func (v Systemcounter) Bytes() []byte

Bytes writes a Systemcounter value to a byte slice.

type Trigger

type Trigger struct {
	Counter   Counter
	WaitType  uint32
	WaitValue Int64
	TestType  uint32
}

func (Trigger) Bytes

func (v Trigger) Bytes() []byte

Bytes writes a Trigger value to a byte slice.

type TriggerFenceCookie

type TriggerFenceCookie struct {
	*xgb.Cookie
}

TriggerFenceCookie is a cookie used only for TriggerFence requests.

func TriggerFence

func TriggerFence(c *xgb.Conn, Fence Fence) TriggerFenceCookie

TriggerFence sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func TriggerFenceChecked

func TriggerFenceChecked(c *xgb.Conn, Fence Fence) TriggerFenceCookie

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

func (TriggerFenceCookie) Check

func (cook TriggerFenceCookie) 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 Waitcondition

type Waitcondition struct {
	Trigger        Trigger
	EventThreshold Int64
}

func (Waitcondition) Bytes

func (v Waitcondition) Bytes() []byte

Bytes writes a Waitcondition value to a byte slice.

Jump to

Keyboard shortcuts

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