w32

package
v0.0.0-...-22b451c Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const WPUseDefault = 0x80000000

Variables

This section is empty.

Functions

func BoolToBOOL

func BoolToBOOL(value bool) int32

func UTF16PtrToString

func UTF16PtrToString(cstr *uint16) string

Types

type Atom

type Atom uint16

type Brush

type Brush struct {
	// contains filtered or unexported fields
}

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

type Icon

type Icon struct {
	// contains filtered or unexported fields
}
type Menu struct {
	// contains filtered or unexported fields
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

func GetModule

func GetModule(name string) (*Module, error)

type Window

type Window struct {
	// contains filtered or unexported fields
}

func (*Window) Close

func (w *Window) Close()

func (*Window) Run

func (w *Window) Run() error

type WindowClass

type WindowClass struct {
	Name       string
	MenuName   string
	Style      cs.ClassStyle
	Icon       *Icon
	IconSm     *Icon
	Cursor     *Cursor
	Background *Brush
	// contains filtered or unexported fields
}

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633574(v=vs.85).aspx NOTE: No support for extra bytes, use window properties instead

var WindowClassButton *WindowClass = &WindowClass{Name: "Button", system: true}

func (*WindowClass) New

func (wc *WindowClass) New(handler WindowHandler, props WindowProps) (*Window, error)

func (*WindowClass) Register

func (wc *WindowClass) Register() error

func (*WindowClass) UnRegister

func (wc *WindowClass) UnRegister() error

type WindowHandler

type WindowHandler interface {
	OnMessage(uint32, uintptr, uintptr) (bool, uintptr)
}

type WindowProps

type WindowProps struct {
	Name          string
	Style         ws.WindowStyle
	ExtendedStyle wsex.ExtendedWindowStyle
	X             int64
	Y             int64
	Width         int64
	Height        int64
	Parent        *Window
	Menu          *Menu
	// contains filtered or unexported fields
}

Directories

Path Synopsis
types
cs
wm
ws

Jump to

Keyboard shortcuts

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