From 01e10f7f71a380e2c6aa192d4da6bf8204cbfe2f Mon Sep 17 00:00:00 2001 From: Peter TB Brett Date: Fri, 24 Jun 2011 19:49:59 +0100 Subject: [PATCH] scheme-api: gschem API documentation (windows and views). --- docs/scheme-api/geda-scheme.texi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/scheme-api/geda-scheme.texi b/docs/scheme-api/geda-scheme.texi index 49165eb79..d0b8d13ed 100644 --- a/docs/scheme-api/geda-scheme.texi +++ b/docs/scheme-api/geda-scheme.texi @@ -1409,6 +1409,23 @@ focused on enabling and responding to user editing operations. @node Windows and views @section Windows and views +To use the functions described in this section, you will need to load +the @code{(gschem window)} module. + +@defun active-page +Returns the @code{page} currently being displayed for editing. +@end defun + +@defun set-active-page! page +Sets the current @code{page} to @var{page}. +@end defun + +@defun pointer-position +Returns the current mouse pointer position in world coordinates in the +form @samp{(x . y)}. If the pointer is outside the display area, +returns @samp{#f}. +@end defun + @node Selections @section Selections -- 2.11.4.GIT