Documentation ¶
Index ¶
Constants ¶
View Source
const ( PixelFormatEncodingLength = 16 FramebufferUpdateRequestEncodingLength = 9 KeyEventEncodingLength = 7 PointerEventEncodingLength = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FramebufferUpdate ¶
type FramebufferUpdate struct {
Rectangles []*FramebufferUpdateRect
}
type FramebufferUpdateRect ¶
type FramebufferUpdateRect struct { X uint16 Y uint16 Width uint16 Height uint16 EncodingType uint32 // Unsigned per spec, but often interpreted signed PixelData []byte }
func (*FramebufferUpdateRect) Read ¶
func (rect *FramebufferUpdateRect) Read(r io.Reader, bo binary.ByteOrder, pixelFormat PixelFormat) error
type FramebufferUpdateRequest ¶
type FramebufferUpdateRequest struct { Incremental bool X uint16 Y uint16 Width uint16 Height uint16 }
type PixelFormat ¶
type PixelFormat struct { BitsPerPixel uint8 BitDepth uint8 BigEndian bool TrueColor bool RedMax uint16 GreenMax uint16 BlueMax uint16 RedShift uint8 GreenShift uint8 BlueShift uint8 }
type PixelFormatImage ¶
type PixelFormatImage struct { Pix []uint8 Rect image.Rectangle PixelFormat PixelFormat }
func NewPixelFormatImage ¶
func NewPixelFormatImage(pixelFormat PixelFormat, bounds image.Rectangle) *PixelFormatImage
func (*PixelFormatImage) Bounds ¶
func (img *PixelFormatImage) Bounds() image.Rectangle
func (*PixelFormatImage) ColorModel ¶
func (img *PixelFormatImage) ColorModel() color.Model
Click to show internal directories.
Click to hide internal directories.