Jump to content

POINTL: Difference between revisions

From EDM2
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== POINTL ==
Point structure (long integers).
 
Point structure (long integers).  


=== Type ===
=== Type ===
 
  [[LONG]]  x;
  [[OS2 API:DataType:LONG|LONG]]  x;
  LONG  y;
  [[OS2 API:DataType:LONG|LONG]] y;


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
;x (LONG)
:X-coordinate
;y (LONG)
:Y-coordinate


  x X-coordinate.
=== Example Code ===
  y Y-coordinate.
<PRE>
 
typedef struct _POINTL {
 
  LONG    x; /* X-coordinate. */
 
  LONG    y; /* Y-coordinate. */
 
} POINTL;
 
[[OS2_API | Back to OS/2 API]]


typedef  POINTL  * PPOINTL ;
</PRE>


[[Category:The OS/2 API Project]]
[[Category:PM Data type]]

Latest revision as of 18:55, 25 May 2024

Point structure (long integers).

Type

LONG  x;
LONG  y;

C Declaration Method

typedef struct

Fields

x (LONG)
X-coordinate
y (LONG)
Y-coordinate

Example Code

typedef struct _POINTL {
  LONG     x;  /*  X-coordinate. */
  LONG     y;  /*  Y-coordinate. */
} POINTL;

typedef   POINTL   * PPOINTL ;