nanogui: GrNexPixmap( ) and GrCopyArea( )


Previous by date: 2 Sep 2002 15:49:32 -0000 Re: Java? (again), jonathan.foster.philips.com
Next by date: 2 Sep 2002 15:49:32 -0000 Re: 286 as xterm?, Darran D. Rimron-Molloy
Previous in thread: 2 Sep 2002 15:49:32 -0000 GrNexPixmap( ) and GrCopyArea( ), 00917764d
Next in thread: 2 Sep 2002 15:49:32 -0000 Re: GrNexPixmap( ) and GrCopyArea( ), wang

Subject: Re: [nanogui] GrNexPixmap( ) and GrCopyArea( )
From: Alex Holden ####@####.####
Date: 2 Sep 2002 15:49:32 -0000
Message-Id: <3D73885C.4010200@linuxhacker.org>

00917764d wrote:

>I would like to know how to use the functions CrNewPixmap() and GrCopyArea(). 
>Any body can help me? Thanks!! I hope you can give me an example!!
>
Below is the documentation of those functions from the source. There is 
lots of example code in src/demos/nanox/

If you're still confused, please ask more specific questions.

/**
 * GrNewPixmap:
 * @width: the width of the pixmap
 * @height: the height of the pixmap
 * @addr: currently unused in client/server mode
 * @Returns: the ID of the newly created pixmap
 *
 * Create a new server side pixmap (an offscreen drawing area which can be
 * copied into a window using a GrCopyArea call) of the specified width and
 * height.
 */
GR_WINDOW_ID
GrNewPixmap(GR_SIZE width, GR_SIZE height, void *addr)

/**
 * GrCopyArea:
 * @id: the ID of the drawable to copy the area to
 * @gc: the ID of the graphics context to use when copying the area
 * @x: the X coordinate to copy the area to within the destination drawable
 * @y: the Y coordinate to copy the area to within the destination drawable
 * @width: the width of the area to copy
 * @height: the height of the area to copy
 * @srcid: the ID of the drawable to copy the area from
 * @srcx: the X coordinate to copy the area from within the source drawable
 * @srcy: the Y coordinate to copy the area from within the source drawable
 * @op: the ROP codes to pass to the blitter when performing the copy
 *
 * Copies the specified area of the specified size between the specified
 * drawables at the specified positions using the specified graphics context
 * and ROP codes. 0 is a sensible default ROP code in most cases.
 */
void
GrCopyArea(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
        GR_SIZE width, GR_SIZE height, GR_DRAW_ID srcid,
        GR_COORD srcx, GR_COORD srcy, long op)



Previous by date: 2 Sep 2002 15:49:32 -0000 Re: Java? (again), jonathan.foster.philips.com
Next by date: 2 Sep 2002 15:49:32 -0000 Re: 286 as xterm?, Darran D. Rimron-Molloy
Previous in thread: 2 Sep 2002 15:49:32 -0000 GrNexPixmap( ) and GrCopyArea( ), 00917764d
Next in thread: 2 Sep 2002 15:49:32 -0000 Re: GrNexPixmap( ) and GrCopyArea( ), wang


Powered by ezmlm-browse 0.20.