uLib  User mode C/C++ extended API library for Win32 programmers.
Fundamental Type Operations

Module Description

These return some small structured types on the fly. (UtilFunc.cpp)

Namespaces

 uLib
 

Functions

POINT MkPoint (LONG x, LONG y)
 
POINTS MkPointS (SHORT x, SHORT y)
 
SIZE MkSize (LONG cx, LONG cy)
 
SIZES MkSizeS (SHORT cx, SHORT cy)
 
RECT MkRect (LONG L, LONG T, LONG R, LONG B)
 
RECTS MkRectS (SHORT L, SHORT T, SHORT R, SHORT B)
 
POINT MkPoint (const POINTS &p)
 
POINTS MkPointS (const POINT &p)
 

Function Documentation

◆ MkPoint() [1/2]

POINT MkPoint ( LONG  x,
LONG  y 
)

Return a POINT struct.

Definition at line 26 of file UtilFunc.cpp.

◆ MkPointS() [1/2]

POINTS MkPointS ( SHORT  x,
SHORT  y 
)

Return a POINTS struct.

Definition at line 31 of file UtilFunc.cpp.

◆ MkSize()

SIZE MkSize ( LONG  cx,
LONG  cy 
)

Return a SIZE struct.

Definition at line 36 of file UtilFunc.cpp.

◆ MkSizeS()

SIZES MkSizeS ( SHORT  cx,
SHORT  cy 
)

Return a SIZES struct.

Definition at line 41 of file UtilFunc.cpp.

◆ MkRect()

RECT MkRect ( LONG  L,
LONG  T,
LONG  R,
LONG  B 
)

Return a RECT struct.

Definition at line 46 of file UtilFunc.cpp.

◆ MkRectS()

RECTS MkRectS ( SHORT  L,
SHORT  T,
SHORT  R,
SHORT  B 
)

Return a RECTS struct.

Definition at line 51 of file UtilFunc.cpp.

◆ MkPoint() [2/2]

POINT MkPoint ( const POINTS &  p)

Point conversion (for e.g mouse hit test). Usage example:

POINT pt = MkPoint( LITERAL( POINTS, lParam ));

Note: Only C++. In C You may use the POINTSTOPOINT() macro.

Definition at line 60 of file UtilFunc.cpp.

◆ MkPointS() [2/2]

POINTS MkPointS ( const POINT &  p)

Point conversion (large to small).
Note: Only C++. In C You may use the POINTTOPOINTS() macro.

Definition at line 64 of file UtilFunc.cpp.