FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version

on-line-segment-p

Arguments: position end1 end2 &key (margin 3)

Returns true if position is on the line segment that extends from end1 to end2, within a margin of error specified by the margin keyword argument, and otherwise returns nil. position, end1, and end2 must all be position objects (see make-position).

The margin keyword argument must be a non-negative integer, and is typically a small positive value to allow the user to click on a line that is drawn in a window without having to click precisely on the line. The default value of 3 allows the user to miss the line by up to 3 pixels on either side; then if a call to this function with the clicked position and the endpoints of the drawn line returns true, then an application can decide that the user clicked on the line and take appropriate action. When the line is more nearly horizontal than vertical, this margin is measured vertically from the line, and otherwise it is measured horizontally from the line. (In releases before 7.0, the default for margin was 2 rather than 3.)

An error is signaled if end1 and end2 are position= to each other.

GTK Note

On GTK, this function will attempt to start up a Firefox web browser with the URL or file to display. If this fails for some reason, such as Firefox not being installed or not being in your path, then it will simply place the URL or file name onto the system clipboard so that you can paste it into some other web browser.

When this function calls run-shell-command to run Firefox, Firefox will actually use an instance that is already running, if any. But it still may open a new window or a new tab to display the new page. To avoid accumulating lots of windows or tabs, you can set the Firefox preference to open links from other applications in the most recent tab.


Copyright (c) 1998-2008, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.1. This page was not revised from the 8.0 page.
Created 2008.7.22.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version