Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (2) — Plan9 3rd Edition (Vita Nuova)

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

devpointer(2)

tk(2)

DRAW-POINTER(2)

NAME

Pointer − state of a pointer device such as a mouse

SYNOPSIS

include"draw.m";
draw := load Draw Draw->PATH;
 Pointer: adt
{
    buttons:  int;
    xy:       Point;
};

DESCRIPTION

­buttons Each button on the device corresponds to a bit in buttons; zero bits indicate released (or non-existent), and one bits indicate pressed.  The bits, from least to most significant positions, represent the buttons from left to right. 

­xy The pointer’s screen coordinates. 

Mux(1) uses the ­cptr member of the ­Draw->Context adt to pass pointer events through to applications. 

SEE ALSO

devpointer(2), ­mouse in tk(2)

Plan 9  —  June 29, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026