Table of Contents

wxPoint

include file: wxEuphoria


A wxPoint is actually just an 8-byte location in memory with two 4-byte integers stored there, corresponding to the x,y coordinates of the point. It is possible to specify the place in memory where you want to have the point created. A call to create() will simply poke the values for you, so it may be easier to do this yourself. To specify the place in memory, the pointer should be the third parameter passed.
ex:
  atom point1, point_array, void

--creates a point with x=3, y=4 point = create( wxPoint, {3,4})

-- allocates space for an array of 2 wxPoints point_array = allocate(8 * 2)

-- create the points in place void = create( wxPoint, {3,4,point_array}) void = create( wxPoint, {5,6,point_array + sizeof_wxPoint})

 
 
Parent Topics:
  • Classes