wingui

package
v0.0.0-...-a53a016 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WM_PAINT = 15

	BI_RGB       = 0
	BI_BITFIELDS = 3

	DIB_PAL_COLORS = 1
	DIB_RGB_COLORS = 0

	BLACKNESS   = 0x42
	DSTINVERT   = 0x550009
	MERGECOPY   = 0xC000CA
	MERGEPAINT  = 0xBB0226
	NOTSRCCOPY  = 0x330008
	NOTSRCERASE = 0x1100A6
	PATCOPY     = 0xF00021
	PATINVERT   = 0x5A0049
	PATPAINT    = 0xFB0A09
	SRCAND      = 0x8800C6
	SRCCOPY     = 0xCC0020
	SRCERASE    = 0x440328
	SRCINVERT   = 0x660046
	SRCPAINT    = 0xEE0086
	WHITENESS   = 0xFF0062
)

Variables

This section is empty.

Functions

func BeginPaint

func BeginPaint(hwnd syscall.Handle, ps *PAINTSTRUCT) (hdc syscall.Handle)

func BitBlt

func BitBlt(hdc syscall.Handle, nXDest, nYDest, nWidth, nHeight int, hdcSrc syscall.Handle, nXSrc, nYSrc int, dwRop uint32) bool

func CreateCompatibleBitmap

func CreateCompatibleBitmap(hdc syscall.Handle, width, height uintptr) (hbitmap syscall.Handle)

func CreateCompatibleDC

func CreateCompatibleDC(hwnd syscall.Handle) (hdc syscall.Handle)

func CreateDIBSection

func CreateDIBSection(hdc syscall.Handle, pbmi *BITMAPINFO, iUsage uint, ppvBits uintptr, hSection uint32, dwOffset uint32) (hbitmap syscall.Handle)

func EndPaint

func EndPaint(hwnd syscall.Handle, ps *PAINTSTRUCT) bool

func GetDC

func GetDC(hwnd syscall.Handle) (hdc syscall.Handle)

func GetObject

func GetObject(hgdiobj syscall.Handle, cbBuffer uintptr, object uintptr) (size uint32)

func SelectObject

func SelectObject(hdc syscall.Handle, hgdiobj syscall.Handle) syscall.Handle

Types

type BITMAP

type BITMAP struct {
	Type       int32
	Width      int32
	Height     int32
	WidthBytes int32
	Planes     uint16
	BitsPixel  uint16
	Bits       *byte
}

type BITMAPINFO

type BITMAPINFO struct {
	Header BITMAPINFOHEADER
	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 PAINTSTRUCT

type PAINTSTRUCT struct {
	HDC       syscall.Handle
	Erase     int32 // bool
	RcPaint   RECT
	Restore   int32 // bool
	IncUpdate int32 // bool
	// contains filtered or unexported fields
}

type RECT

type RECT struct {
	Left   int32
	Top    int32
	Right  int32
	Bottom int32
}

type RGBQUAD

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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