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.canvas

A Canvas is a component that fires key and mouse events and has no other builtin capabilities.

class Canvas: minwin.component.WindowChild;
Generic heavyweight window child.

this(Component parent, char[] name = "");
Constructs a new Canvas with the given parent and name.

void backgroundColor(Color c);
Sets the background color.

MultiDelegate!(Component,KeyEvent *) keyDelegate;
Delegates to run for keyboard events.

MultiDelegate!(Component,MouseEvent *) mouseDelegate;
Delegates to run for mouse events.

MultiDelegate!(Component,GContext) paintDelegate;
Delegates to run for paint events.

GContext getGContext();
Return a graphics context GContext for this window.

Image getCompatibleImage(int width, int height);
Create an Image compatible with this window.

Image loadCompatibleImage(char[] imageKey, char[] fmt = "bmp");
Load a picture resource with the specified name and file format into an Image compatible with this window.