win32

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BiRGB        = 0
	BiBitfields  = 3
	DibRGBColors = 0
	AcSrcOver    = 0x00
	AcSrcAlpha   = 0x01
	SrcCopy      = 0x00cc0020
)
View Source
const (
	GmCompatible = 1
	GmAdvanced   = 2
	MWTIdentity  = 1
)

Variables

View Source
var ZP = Point{}

Functions

This section is empty.

Types

type BitmapInfo

type BitmapInfo struct {
	Header BitmapInfoV4
	Colors [1]RGBQuad
}

type BitmapInfoHeader

type BitmapInfoHeader struct {
	Size          uint32
	Width         int32
	Height        int32
	Planes        uint16
	BitCount      uint16
	Compression   uint32
	SizeImage     uint32
	XPelsPerMeter int32
	YPelsPerMeter int32
	ClrUsed       uint32
	ClrImportant  uint32
}

type BitmapInfoV4

type BitmapInfoV4 struct {
	Size                    uint32
	Width                   int32
	Height                  int32
	Planes                  uint16
	BitCount                uint16
	Compression             uint32
	SizeImage               uint32
	XPelsPerMeter           int32
	YPelsPerMeter           int32
	ClrUsed                 uint32
	ClrImportant            uint32
	Red, Green, Blue, Alpha uint32
	Endpoints               [3]uint32
	Gamma                   [3]uint32
}

type BlendFunc

type BlendFunc struct {
	Op            byte
	Flags         byte
	SrcConstAlpha byte
	AlphaFormat   byte
}

func (BlendFunc) Uintptr

func (b BlendFunc) Uintptr() uintptr

Uintptr helps to pass bf to syscall.Syscall.

type ColorRef

type ColorRef uint32

func NewColorRef

func NewColorRef(c interface {
	RGBA() (r, g, b, a uint32)
}) ColorRef

func RGB

func RGB(r, g, b byte) ColorRef

type Point

type Point struct {
	X int32
	Y int32
}

func Pt

func Pt(x, y int) Point

type RGBQuad

type RGBQuad struct {
	Blue     byte
	Green    byte
	Red      byte
	Reserved byte
}

type Rectangle

type Rectangle struct {
	Min, Max Point
}

func Rect

func Rect(x, y, xx, yy int) Rectangle

func (Rectangle) Dx

func (r Rectangle) Dx() int32

func (Rectangle) Dy

func (r Rectangle) Dy() int32

type Xform

type Xform struct {
	M11 float32
	M12 float32
	M21 float32
	M22 float32
	Dx  float32
	Dy  float32
}

Jump to

Keyboard shortcuts

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