gioui.org: gioui.org/app/internal/windows Index | Files

package windows

import "gioui.org/app/internal/windows"

Index

Package Files

windows.go

Constants

const (
    CS_HREDRAW = 0x0002
    CS_VREDRAW = 0x0001
    CS_OWNDC   = 0x0020

    CW_USEDEFAULT = -2147483648

    IDC_ARROW = 32512

    INFINITE = 0xFFFFFFFF

    LOGPIXELSX = 88

    MDT_EFFECTIVE_DPI = 0

    MONITOR_DEFAULTTOPRIMARY = 1

    SIZE_MAXIMIZED = 2
    SIZE_MINIMIZED = 1
    SIZE_RESTORED  = 0

    SW_SHOWDEFAULT = 10

    USER_TIMER_MINIMUM = 0x0000000A

    VK_CONTROL = 0x11
    VK_LWIN    = 0x5B
    VK_MENU    = 0x12
    VK_RWIN    = 0x5C
    VK_SHIFT   = 0x10

    VK_BACK   = 0x08
    VK_DELETE = 0x2e
    VK_DOWN   = 0x28
    VK_END    = 0x23
    VK_ESCAPE = 0x1b
    VK_HOME   = 0x24
    VK_LEFT   = 0x25
    VK_NEXT   = 0x22
    VK_PRIOR  = 0x21
    VK_RIGHT  = 0x27
    VK_RETURN = 0x0d
    VK_SPACE  = 0x20
    VK_TAB    = 0x09
    VK_UP     = 0x26

    VK_F1  = 0x70
    VK_F2  = 0x71
    VK_F3  = 0x72
    VK_F4  = 0x73
    VK_F5  = 0x74
    VK_F6  = 0x75
    VK_F7  = 0x76
    VK_F8  = 0x77
    VK_F9  = 0x78
    VK_F10 = 0x79
    VK_F11 = 0x7A
    VK_F12 = 0x7B

    VK_OEM_1      = 0xba
    VK_OEM_PLUS   = 0xbb
    VK_OEM_COMMA  = 0xbc
    VK_OEM_MINUS  = 0xbd
    VK_OEM_PERIOD = 0xbe
    VK_OEM_2      = 0xbf
    VK_OEM_3      = 0xc0
    VK_OEM_4      = 0xdb
    VK_OEM_5      = 0xdc
    VK_OEM_6      = 0xdd
    VK_OEM_7      = 0xde
    VK_OEM_102    = 0xe2

    UNICODE_NOCHAR = 65535

    WM_CANCELMODE  = 0x001F
    WM_CHAR        = 0x0102
    WM_CREATE      = 0x0001
    WM_DPICHANGED  = 0x02E0
    WM_DESTROY     = 0x0002
    WM_ERASEBKGND  = 0x0014
    WM_KEYDOWN     = 0x0100
    WM_KEYUP       = 0x0101
    WM_LBUTTONDOWN = 0x0201
    WM_LBUTTONUP   = 0x0202
    WM_MBUTTONDOWN = 0x0207
    WM_MBUTTONUP   = 0x0208
    WM_MOUSEMOVE   = 0x0200
    WM_MOUSEWHEEL  = 0x020A
    WM_PAINT       = 0x000F
    WM_QUIT        = 0x0012
    WM_SETFOCUS    = 0x0007
    WM_KILLFOCUS   = 0x0008
    WM_SHOWWINDOW  = 0x0018
    WM_SIZE        = 0x0005
    WM_SYSKEYDOWN  = 0x0104
    WM_RBUTTONDOWN = 0x0204
    WM_RBUTTONUP   = 0x0205
    WM_TIMER       = 0x0113
    WM_UNICHAR     = 0x0109
    WM_USER        = 0x0400

    WS_CLIPCHILDREN     = 0x00010000
    WS_CLIPSIBLINGS     = 0x04000000
    WS_VISIBLE          = 0x10000000
    WS_OVERLAPPED       = 0x00000000
    WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME |
        WS_MINIMIZEBOX | WS_MAXIMIZEBOX
    WS_CAPTION     = 0x00C00000
    WS_SYSMENU     = 0x00080000
    WS_THICKFRAME  = 0x00040000
    WS_MINIMIZEBOX = 0x00020000
    WS_MAXIMIZEBOX = 0x00010000

    WS_EX_APPWINDOW  = 0x00040000
    WS_EX_WINDOWEDGE = 0x00000100

    QS_ALLINPUT = 0x04FF

    MWMO_WAITALL        = 0x0001
    MWMO_INPUTAVAILABLE = 0x0004

    WAIT_OBJECT_0 = 0

    PM_REMOVE   = 0x0001
    PM_NOREMOVE = 0x0000
)

func AdjustWindowRectEx Uses

func AdjustWindowRectEx(r *Rect, dwStyle uint32, bMenu int, dwExStyle uint32)

func CallMsgFilter Uses

func CallMsgFilter(m *Msg, nCode uintptr) bool

func CreateWindowEx Uses

func CreateWindowEx(dwExStyle uint32, lpClassName uint16, lpWindowName string, dwStyle uint32, x, y, w, h int32, hWndParent, hMenu, hInstance syscall.Handle, lpParam uintptr) (syscall.Handle, error)

func DefWindowProc Uses

func DefWindowProc(hwnd syscall.Handle, msg uint32, wparam, lparam uintptr) uintptr

func DestroyWindow Uses

func DestroyWindow(hwnd syscall.Handle)

func DispatchMessage Uses

func DispatchMessage(m *Msg)

func GetClientRect Uses

func GetClientRect(hwnd syscall.Handle, r *Rect)

func GetDC Uses

func GetDC(hwnd syscall.Handle) (syscall.Handle, error)

func GetKeyState Uses

func GetKeyState(nVirtKey int32) int16

func GetMessage Uses

func GetMessage(m *Msg, hwnd syscall.Handle, wMsgFilterMin, wMsgFilterMax uint32) int32

func GetMessageTime Uses

func GetMessageTime() time.Duration

func GetModuleHandle Uses

func GetModuleHandle() (syscall.Handle, error)

func GetSystemDPI Uses

func GetSystemDPI() int

GetSystemDPI returns the effective DPI of the system.

func KillTimer Uses

func KillTimer(hwnd syscall.Handle, nIDEvent uintptr) error

func LoadCursor Uses

func LoadCursor(curID uint16) (syscall.Handle, error)

func MsgWaitForMultipleObjectsEx Uses

func MsgWaitForMultipleObjectsEx(nCount uint32, pHandles uintptr, millis, mask, flags uint32) (uint32, error)

func PeekMessage Uses

func PeekMessage(m *Msg, hwnd syscall.Handle, wMsgFilterMin, wMsgFilterMax, wRemoveMsg uint32) bool

func PostMessage Uses

func PostMessage(hwnd syscall.Handle, msg uint32, wParam, lParam uintptr) error

func PostQuitMessage Uses

func PostQuitMessage(exitCode uintptr)

func RegisterClassEx Uses

func RegisterClassEx(cls *WndClassEx) (uint16, error)

func ReleaseCapture Uses

func ReleaseCapture() bool

func ReleaseDC Uses

func ReleaseDC(hdc syscall.Handle)

func ScreenToClient Uses

func ScreenToClient(hwnd syscall.Handle, p *Point)

func SetCapture Uses

func SetCapture(hwnd syscall.Handle) syscall.Handle

func SetFocus Uses

func SetFocus(hwnd syscall.Handle)

func SetForegroundWindow Uses

func SetForegroundWindow(hwnd syscall.Handle)

func SetProcessDPIAware Uses

func SetProcessDPIAware()

func SetTimer Uses

func SetTimer(hwnd syscall.Handle, nIDEvent uintptr, uElapse uint32, timerProc uintptr) error

func ShowWindow Uses

func ShowWindow(hwnd syscall.Handle, nCmdShow int32)

func TranslateMessage Uses

func TranslateMessage(m *Msg)

func UnregisterClass Uses

func UnregisterClass(cls uint16, hInst syscall.Handle)

func UpdateWindow Uses

func UpdateWindow(hwnd syscall.Handle)

type Msg Uses

type Msg struct {
    Hwnd     syscall.Handle
    Message  uint32
    WParam   uintptr
    LParam   uintptr
    Time     uint32
    Pt       Point
    LPrivate uint32
}

type Point Uses

type Point struct {
    X, Y int32
}

type Rect Uses

type Rect struct {
    Left, Top, Right, Bottom int32
}

type WndClassEx Uses

type WndClassEx struct {
    CbSize        uint32
    Style         uint32
    LpfnWndProc   uintptr
    CnClsExtra    int32
    CbWndExtra    int32
    HInstance     syscall.Handle
    HIcon         syscall.Handle
    HCursor       syscall.Handle
    HbrBackground syscall.Handle
    LpszMenuName  *uint16
    LpszClassName *uint16
    HIconSm       syscall.Handle
}

Package windows imports 5 packages (graph). Updated 2019-12-14 with GOOS=windows. Refresh now. Tools for package owners.