Documentation
¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "shape.xml"
Index ¶
- Constants
- func Combine(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, ...) error
- func CombineUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, ...) error
- func GetRectanglesUnchecked(c *xgb.XConn, Window xproto.Window, SourceKind Kind) error
- func InputSelectedUnchecked(c *xgb.XConn, DestinationWindow xproto.Window) error
- func Mask(c *xgb.XConn, Operation Op, DestinationKind Kind, ...) error
- func MaskUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, ...) error
- func Offset(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, ...) error
- func OffsetUnchecked(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, ...) error
- func QueryExtentsUnchecked(c *xgb.XConn, DestinationWindow xproto.Window) error
- func QueryVersionUnchecked(c *xgb.XConn) error
- func Rectangles(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, ...) error
- func RectanglesUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, ...) error
- func Register(xconn *xgb.XConn) error
- func SelectInput(c *xgb.XConn, DestinationWindow xproto.Window, Enable bool) error
- func SelectInputUnchecked(c *xgb.XConn, DestinationWindow xproto.Window, Enable bool) error
- func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)
- type GetRectanglesReply
- type InputSelectedReply
- type Kind
- type NotifyEvent
- type Op
- type QueryExtentsReply
- type QueryVersionReply
Constants ¶
const ( // ExtName is the user-friendly name string of this X extension. ExtName = "Shape" // ExtXName is the name string this extension is known by to the X server. ExtXName = "SHAPE" )
const ( SkBounding = 0 SkClip = 1 SkInput = 2 )
const ( SoSet = 0 SoUnion = 1 SoIntersect = 2 SoSubtract = 3 SoInvert = 4 )
const Notify = 0
Notify is the event number for a NotifyEvent.
Variables ¶
This section is empty.
Functions ¶
func Combine ¶
func Combine(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) error
Combine sends a checked request.
func CombineUnchecked ¶ added in v1.1.0
func CombineUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, SourceKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceWindow xproto.Window) error
CombineUnchecked sends an unchecked request.
func GetRectanglesUnchecked ¶
GetRectanglesUnchecked sends an unchecked request.
func InputSelectedUnchecked ¶
InputSelectedUnchecked sends an unchecked request.
func Mask ¶
func Mask(c *xgb.XConn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) error
Mask sends a checked request.
func MaskUnchecked ¶ added in v1.1.0
func MaskUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16, SourceBitmap xproto.Pixmap) error
MaskUnchecked sends an unchecked request.
func Offset ¶
func Offset(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) error
Offset sends a checked request.
func OffsetUnchecked ¶ added in v1.1.0
func OffsetUnchecked(c *xgb.XConn, DestinationKind Kind, DestinationWindow xproto.Window, XOffset int16, YOffset int16) error
OffsetUnchecked sends an unchecked request.
func QueryExtentsUnchecked ¶
QueryExtentsUnchecked sends an unchecked request.
func QueryVersionUnchecked ¶
func QueryVersionUnchecked(c *xgb.XConn) error
QueryVersionUnchecked sends an unchecked request.
func Rectangles ¶
func Rectangles(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) error
Rectangles sends a checked request.
func RectanglesUnchecked ¶ added in v1.1.0
func RectanglesUnchecked(c *xgb.XConn, Operation Op, DestinationKind Kind, Ordering byte, DestinationWindow xproto.Window, XOffset int16, YOffset int16, Rectangles []xproto.Rectangle) error
RectanglesUnchecked sends an unchecked request.
func Register ¶ added in v1.1.0
func Register(xconn *xgb.XConn) error
Register will query the X server for Shape extension support, and register relevant extension unmarshalers with the XConn.
func SelectInput ¶
SelectInput sends a checked request.
func SelectInputUnchecked ¶ added in v1.1.0
SelectInputUnchecked sends an unchecked request.
func UnmarshalNotifyEvent ¶ added in v1.1.0
UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.
Types ¶
type GetRectanglesReply ¶
type GetRectanglesReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Ordering byte RectanglesLen uint32 // padding: 20 bytes Rectangles []xproto.Rectangle // size: internal.Pad4((int(RectanglesLen) * 8)) }
GetRectanglesReply represents the data returned from a GetRectangles request.
func GetRectangles ¶
func GetRectangles(c *xgb.XConn, Window xproto.Window, SourceKind Kind) (GetRectanglesReply, error)
GetRectangles sends a checked request.
func (*GetRectanglesReply) Unmarshal ¶ added in v1.1.0
func (v *GetRectanglesReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a GetRectanglesReply value.
type InputSelectedReply ¶
type InputSelectedReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply Enabled bool }
InputSelectedReply represents the data returned from a InputSelected request.
func InputSelected ¶
func InputSelected(c *xgb.XConn, DestinationWindow xproto.Window) (InputSelectedReply, error)
InputSelected sends a checked request.
func (*InputSelectedReply) Unmarshal ¶ added in v1.1.0
func (v *InputSelectedReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a InputSelectedReply value.
type NotifyEvent ¶
type NotifyEvent struct { Sequence uint16 ShapeKind Kind AffectedWindow xproto.Window ExtentsX int16 ExtentsY int16 ExtentsWidth uint16 ExtentsHeight uint16 ServerTime xproto.Timestamp Shaped 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 QueryExtentsReply ¶
type QueryExtentsReply struct { Sequence uint16 // sequence number of the request for this reply Length uint32 // number of bytes in this reply // padding: 1 bytes BoundingShaped bool ClipShaped bool // padding: 2 bytes BoundingShapeExtentsX int16 BoundingShapeExtentsY int16 BoundingShapeExtentsWidth uint16 BoundingShapeExtentsHeight uint16 ClipShapeExtentsX int16 ClipShapeExtentsY int16 ClipShapeExtentsWidth uint16 ClipShapeExtentsHeight uint16 }
QueryExtentsReply represents the data returned from a QueryExtents request.
func QueryExtents ¶
func QueryExtents(c *xgb.XConn, DestinationWindow xproto.Window) (QueryExtentsReply, error)
QueryExtents sends a checked request.
func (*QueryExtentsReply) Unmarshal ¶ added in v1.1.0
func (v *QueryExtentsReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryExtentsReply value.
type QueryVersionReply ¶
type QueryVersionReply 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 }
QueryVersionReply represents the data returned from a QueryVersion request.
func QueryVersion ¶
func QueryVersion(c *xgb.XConn) (QueryVersionReply, error)
QueryVersion sends a checked request.
func (*QueryVersionReply) Unmarshal ¶ added in v1.1.0
func (v *QueryVersionReply) Unmarshal(buf []byte) error
Unmarshal reads a byte slice into a QueryVersionReply value.