File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / UnderPressure / pressurerect.psw
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:40 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

#if 0

  pressure.psw -- wrap for setting special trackingrects for event gathering
		  attributes.

  by Peter Graffagnino, NeXT Computer Inc.

  You may freely copy, distribute, and reuse the code in this example.
  NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  fitness for any particular use.

#endif


/*
 * set_pressure_rect() -- configures a rectangle for pressure sensitivity
 * and/or event coalescing using the new form of settrackingrect. 
 */

defineps set_pressure_rect(float x, y, w, h; boolean coalesce, pressure;
  int trectNum)

	x y w h [ /Coalesce coalesce /Pressure pressure ] trectNum null
        settrackingrect

endps


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.