ggiSetOrigin man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

ggiSetOrigin(3)			      GGI		       ggiSetOrigin(3)

NAME
       ggiSetOrigin, ggiGetOrigin : Set and get origin of virtual screen

SYNOPSIS
       #include <ggi/ggi.h>

       int ggiSetOrigin(ggi_visual_t vis, int x, int y);

       int ggiGetOrigin(ggi_visual_t vis, int *x, int *y);

DESCRIPTION
       ggiSetOrigin sets the top-left corner of the displayed area to (x, y).

       When using a larger virtual area, you can pan the visible area over the
       virtual one to do scrolling.  Some  targets  have  extremely  efficient
       means to do this (i.e. they do it in hardware).

       Large  virtual  areas  are also commonly used for buffering the display
       contents, but that is usually more easily accomplished by requesting  a
       specific number of frames when setting a mode.

       This  call  takes  dot coordinates (see ggi_mode(3)), not pixel coordi‐
       nates as all other drawing primitives do. There	is  no	difference  in
       graphic	modes  because by definition dpp is 1x1, but in text modes the
       application can do smooth scrolling.

       When ggiSetOrigin returns, the screen reflects the new origin.	It  is
       not necessary to call ggiFlush.

       ggiGetOrigin  gets  the	current	 top-left corner of the displayed area
       into (x, y).

       Due to rounding to the hardware's capabilities, the values retrieved by
       a  subsequent  ggiGetOrigin  may	 not necessarily match those passed to
       ggiSetOrigin previously.

RETURN VALUE
       0 for OK, otherwise a ggi-error(3) code.

EXAMPLES
       Pan from the top to the bottom of the virtual screen:

       for(i = 0; i < virt_y-visible_y; i++) {
	     ggiSetOrigin(vis, 0, i);
       }

libggi-2.2.x			  2006-12-30		       ggiSetOrigin(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net