Re: ERRATUM
[email protected] Fri, 4 May 2007 12:22:54 +0200 (CEST)
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Espen before all thanks for your help. I have tried to run your example but I have next problem (setf some-region (make-instance 'gdk:region :rectangle #(0 0 100 100))) (gdk:region-union some-region #(0 0 100 100)) The value #<GDK:REGION at 0x814EBB0> is not of type SYSTEM-AREA-POINTER. [Condition of type TYPE-ERROR] Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [ABORT] Exit debugger, returning to top level. What I note is that there are to ways to define a region as one instance or as a pointer (using (gdk::region-new)). Which is the best way ? thanks again Carlos > Carlos Agon <[email protected]> writes: > >> sorry I used in my last e-mail functions specifics to our software, >> anyway the problem is the same >> >> (setf var (gdk::region-new)) >> (gdk::region-union-with-rect var (make-gdk-rect 0 0 100 100)) > > These functions must also be part of your code as they are not in stock > clg. > > I am not certain of what you try to accomplish with this code, but the > preferred method to create a region from a rectangle¹ would be: > > (make-instance gdk:region :rectangle #(0 0 100 100)) > > and to make a union between a region and a rectangle: > > (gdk:region-union some-region #(0 0 100 100)) > > All region set operations can be given rectangles as the last argument > (and with the latest code in CVS also as the first argument) > >> (gdk::region-get-clipbox var) >> >> The value NIL is not of type SYSTEM-AREA-POINTER. >> [Condition of type TYPE-ERROR] > > Without a backtrace of the stack it is hard to tell what is wrong. > >> I have the same problem calling the function >> >> (gdk::region-get-rectangles var) > > I found a small bug in this function that would cause it to return wrong > output and possible seg fault, but not the error you got. > > Sorry I couldn't be of more help. > > > ¹Vectors can be used instead of real rectangle objects as arguments to > some functions > > -- > Espen > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/