Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func CreateWindow(className string, parent *Window, exStyle, style uint, width, height int) (w32.HWND, error)
- func RegClassOnlyOnce(className string) error
- func RegMsgHandler(window *Window)
- func RegisterClass(className string, wndproc uintptr) error
- func UnRegMsgHandler(hwnd w32.HWND)
- func WndProc(hwnd w32.HWND, msg uint32, wparam, lparam uintptr) uintptr
- type DIB
- func (p *DIB) At(x, y int) color.Color
- func (p *DIB) Bounds() image.Rectangle
- func (p *DIB) ColorModel() color.Model
- func (p *DIB) CopyRGBA(src *image.RGBA, r image.Rectangle)
- func (p *DIB) Opaque() bool
- func (p *DIB) PixOffset(x, y int) int
- func (p *DIB) Set(x, y int, c color.Color)
- func (p *DIB) SetDIB(x, y int, c color.RGBA)
- func (p *DIB) SubImage(r image.Rectangle) image.Image
- type EventData
- type Window
- func (this *Window) Center()
- func (this *Window) Close() error
- func (this *Window) EventChan() <-chan interface{}
- func (this *Window) FlushImage(bounds ...image.Rectangle)
- func (this *Window) HandleWndMessages()
- func (w *Window) LockSize(lock bool)
- func (this *Window) Pos() (x, y int)
- func (this *Window) Repaint()
- func (this *Window) Screen() wde.Image
- func (w *Window) SetCursor(cursor wde.Cursor)
- func (this *Window) SetPos(x, y int)
- func (this *Window) SetSize(width, height int)
- func (this *Window) SetTitle(title string)
- func (this *Window) Show()
- func (this *Window) Size() (width, height int)
Constants ¶
View Source
const WDEM_UI_THREAD = w32.WM_APP
View Source
const (
WIN_CLASSNAME = "wde_win"
)
Variables ¶
This section is empty.
Functions ¶
func CreateWindow ¶
func RegClassOnlyOnce ¶
func RegMsgHandler ¶
func RegMsgHandler(window *Window)
func RegisterClass ¶
func UnRegMsgHandler ¶
Types ¶
type DIB ¶
type DIB struct { // Pix holds the image's pixels, in B, G, R order. The pixel at // (x, y) starts at Pix[(p.Rect.Max.Y-y-p.Rect.Min.Y-1)*p.Stride + (x-p.Rect.Min.X)*3]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
func (*DIB) ColorModel ¶
type EventData ¶
type EventData struct {
// contains filtered or unexported fields
}
func (*EventData) InitEventData ¶
func (this *EventData) InitEventData()
type Window ¶
type Window struct { EventData // contains filtered or unexported fields }
func GetMsgHandler ¶
func (*Window) FlushImage ¶
func (*Window) HandleWndMessages ¶
func (this *Window) HandleWndMessages()
Click to show internal directories.
Click to hide internal directories.