Documentation‎ > ‎Commands‎ > ‎

gnocl::pointer

Manipulate the Gnome mouse pointer.

Synopsis

gnocl::pointer subcommand [-option value...]

Description

Manipulate the mouse pointer display and positioning.

Subcommands

gnocl::pointer warp [-option value...]

Options

-x integer (default: 0)
Reposition the pointer to the specified x coordinate. 
-y integer (default: 0)
Reposition the pointer to the specified x coordinate. 
-offset string (default: "")
List of two integers containing the offset location (in pixels) of the cursor "hot-spot" relative to the top-left corner of the image.
gnocl::pointer set [-option value...]

Options

-widget string (default: "")
Widget id of the object to which the new cursor graphic is to be assigned.. 
-image percent-string (default: "")
Image to be shown, can be either a file (prefix "%/") or gnocl::pixBuf (prefix "%?). If the value of string is "" then the cursor will be reset to the display default, typically an arrow pointer. Use of a stock item (prefix "%#") will result in an error.
-offset string (default: "")
List of two integers containing the offset location (in pixels) of the cursor "hot-spot" relative to the top-left corner of the image.

Example

gnocl::pointer warp -x 100
gnocl::pointer warp -offset {-200 100}
gnocl::pointer warp -x 100 -y 400
gnocl::pointer set -widget $win1 -image "%/mypointer.png" -offset {25 25}

Comments