MinWin API Reference

minwin

app
button
canvas
combo
component
dialog
event
font
geometry
group
icon
image
label
layout
listbox
menu
multidg
paint
peer
peerimpl
scroll
text
window

minwin.event

Various event classes for key, mouse, focus events, etc.

enum Modifier;
Enumeration of modifier keys. Can be or'd together.

Shift
The shift key was held down during the event.

Alt
The alt key was held down during the event.

Ctrl
The control key was held down during the event.

Command
The command key was held down during the event (if supported).

Meta
The meta key was held down during the event (if supported).

alias EventNative;
Platform-specific generic event type.

Windows MSG
GTK GdkEvent

struct Event;
Struct wrapping the native generic event type.

EventNative_ native;
The native event.

int id;
Read-only property for the platform-specific event type.

int modifiers;
Read-only property for the keyboard modifiers held down during the event.

alias KeyEventNative;
Platform-specific generic key event type.

Windows MSG
GTK GdkKeyEvent

struct KeyEvent;
Struct wrapping the native key event type.

KeyEventNative_ native;
The native key event.

int id;
Read-only property for the platform-specific event type.

int modifiers;
Read-only property for the keyboard modifiers held down during the event.

dchar keyChar;
The character typed.

alias KeyPressedEvent;
Platform-specific id for key character press events.

alias KeyDownEvent;
Platform-specific id for key down events.

alias KeyUpEvent;
Platform-specific id for key up events.

alias MouseEventNative;
Platform-specific generic mouse event type.

Windows MSG
GTK GdkMouseEvent

struct MouseEvent;
Struct wrapping the native mouse event type.

EventNative_ native;
The native event

int id;
Read-only property for the platform-specific event type.

int modifiers;
Read-only property for the keyboard modifiers held down during the event.

Point point;
The location of the event in source component coordinates.

alias MouseMovedEvent;
Platform-specific id for mouse moved events.

alias MouseDownEvent;
Platform-specific id for 1st mouse button down events.

alias MouseUpEvent;
Platform-specific id for 1st mouse button up events.

alias MouseAlt1DownEvent;
Platform-specific id for 2nd mouse button down events.

alias MouseAlt1UpEvent;
Platform-specific id for 2nd mouse button up events.

alias MouseAlt2DownEvent;
Platform-specific id for 3rd mouse button down events.

alias MouseAlt2UpEvent;
Platform-specific id for 3rd mouse button up events.

alias WindowEventNative;
Platform-specific generic window event type.

Windows MSG
GTK GdkEventConfigure

struct WindowEvent;
Struct wrapping the native window event type.

WindowEventNative_ native;
The native event

int id;
Read-only property for the platform-specific event type.

int modifiers;
Read-only property for the keyboard modifiers held down during the event.

alias WindowSizeEvent;
Platform-specific id for window size events.

alias WindowSizingEvent;
Platform-specific id for window sizing events.

alias WindowMoveEvent;
Platform-specific id for window move events.

alias WindowMovingEvent;
Platform-specific id for window moving events.

bool nextEvent(Event * event);
Waits for the next event from the event queue. Blocks until event is available.

The event is removed from the queue.

Returns:
false on quit event, true on all others.

bool peekEvent(Event * event);
Retrieves the next event from the event queue (if possible). Returns immediately.

The event is removed from the queue.

Returns:
true is an event was available, false if not.

void dispatchEvent(Event * event);
Passes event on to the backend for processing in the event loop.