Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

crosshair(3tk) [debian man page]

crosshair(3tk)							    Crosshairs							    crosshair(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
crosshair - Crosshairs for Tk canvas SYNOPSIS
package require Tcl ?8.4? package require Tk ?8.4? package require crosshair ?1.0.2? crosshair::crosshair w ?arg...? crosshair::off w crosshair::configure w ?arg...? crosshair::track on w cmdprefix crosshair::track off w _________________________________________________________________ DESCRIPTION
The crosshair package provides commands to (de)activate and track crosshairs on canvas widgets. API
The following commands are exported to the public: crosshair::crosshair w ?arg...? This command activates the display of a pair of cross-hairs for the canvas widget w. The cross-hairs track the pointing device. The result of the command is the empty string. All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash. crosshair::off w This command removes the cross-hairs from the canvas widget w. Nothing is done if the widget had no cross-hairs. The result of the command is the empty string. crosshair::configure w ?arg...? This command changes the appearance of the cross-hairs in the canvas widget w. It is an error to call it for a canvas which has no cross-hairs. All arguments after the widget w are treated as options as for a canvas line item in w. Of particular interest are -fill and -dash. The result of the command are the current configuration settings. crosshair::track on w cmdprefix This command activates reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command for a canvas which has no cross-hairs. The result of the command is the empty string. After the invokation of this command the specified command prefix cmdprefix will be called whenever the mouse moves within the can- vas, with 7 arguments. These are, in order: [1] The widget w [2] The x-location of the cross-hairs, in pixels. [3] The y-location of the cross-hairs, in pixels. [4] The x-location of the top-left corner of the viewport, in pixels. [5] The y-location of the top-left corner of the viewport, in pixels. [6] The x-location of the bottom-right corner of the viewport, in pixels. [7] The y-location of the bottom-right corner of the viewport, in pixels. A previously existing callback for w will be disabled. I.e. per canvas widget with cross-hairs only one callback reporting their location is possible. crosshair::track off w This command disables the reporting of the location of the cross-hairs in the canvas widget w. It is an error to use this command for a canvas which has no cross-hairs. The result of the command is the empty string. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category tklib :: crosshair of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
canvas, cross-hairs, location, tracking, viewport COPYRIGHT
Copyright (c) 2003 Kevin Kenny Copyright (c) 2008 (docs) Andreas Kupries <andreas_kupries@users.sourceforge.net> crosshair 1.0.2 crosshair(3tk)

Check Out this Related Man Page

cursors(1T)						       Tk Built-In Commands						       cursors(1T)

__________________________________________________________________________________________________________________________________________________

NAME
cursors - mouse cursors available in Tk _________________________________________________________________ DESCRIPTION
The -cursor widget option allows a Tk programmer to change the mouse cursor for a particular widget. The cursor names recognized by Tk on all platforms are: X_cursor arrow based_arrow_down based_arrow_up boat bogosity bottom_left_corner bottom_right_corner bottom_side bottom_tee box_spiral center_ptr circle clock coffee_mug cross cross_reverse crosshair diamond_cross dot dotbox double_arrow draft_large draft_small draped_box exchange fleur gobbler gumby hand1 hand2 heart icon iron_cross left_ptr left_side left_tee leftbutton ll_angle lr_angle man middlebutton mouse pencil pirate plus question_arrow right_ptr right_side right_tee rightbutton rtl_logo sailboat sb_down_arrow sb_h_double_arrow sb_left_arrow sb_right_arrow sb_up_arrow sb_v_double_arrow shuttle sizing spider spraycan star target tcross top_left_arrow top_left_corner top_right_corner top_side top_tee trek ul_angle umbrella ur_angle watch xterm PORTABILITY ISSUES
Windows On Windows systems, the following cursors are mapped to native cursors: arrow center_ptr crosshair fleur ibeam icon sb_h_double_arrow sb_v_double_arrow watch xterm And the following additional cursors are available: no starting size size_ne_sw size_ns size_nw_se size_we uparrow wait The no cursor can be specified to eliminate the cursor. Mac OS X On Mac OS X systems, the following cursors are mapped to native cursors: arrow cross crosshair ibeam plus watch xterm And the following additional native cursors are available: copyarrow aliasarrow contextualmenuarrow text cross-hair closedhand openhand pointinghand resizeleft resizeright resizeleftright resizeup resizedown resizeupdown none notallowed poof countinguphand countingdownhand countingupanddownhand spinning KEYWORDS
cursor, option ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWTk | +--------------------+-----------------+ |Interface Stability | Uncommitted | +--------------------+-----------------+ NOTES
Source for Tk is available on http://opensolaris.org. Tk 8.3 cursors(1T)
Man Page