|
uLib
User mode C/C++ extended API library for Win32 programmers.
|
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) |
| POINT MkPoint | ( | LONG | x, |
| LONG | y | ||
| ) |
Return a POINT struct.
Definition at line 26 of file UtilFunc.cpp.
| POINTS MkPointS | ( | SHORT | x, |
| SHORT | y | ||
| ) |
Return a POINTS struct.
Definition at line 31 of file UtilFunc.cpp.
| SIZE MkSize | ( | LONG | cx, |
| LONG | cy | ||
| ) |
Return a SIZE struct.
Definition at line 36 of file UtilFunc.cpp.
| SIZES MkSizeS | ( | SHORT | cx, |
| SHORT | cy | ||
| ) |
Return a SIZES struct.
Definition at line 41 of file UtilFunc.cpp.
| RECT MkRect | ( | LONG | L, |
| LONG | T, | ||
| LONG | R, | ||
| LONG | B | ||
| ) |
Return a RECT struct.
Definition at line 46 of file UtilFunc.cpp.
| RECTS MkRectS | ( | SHORT | L, |
| SHORT | T, | ||
| SHORT | R, | ||
| SHORT | B | ||
| ) |
Return a RECTS struct.
Definition at line 51 of file UtilFunc.cpp.
| POINT MkPoint | ( | const POINTS & | p | ) |
Point conversion (for e.g mouse hit test). Usage example:
Note: Only C++. In C You may use the POINTSTOPOINT() macro.
Definition at line 60 of file UtilFunc.cpp.
| 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.