uLib  User mode C/C++ extended API library for Win32 programmers.
UtilFunc.cpp File Reference
#include <uLib/Common.h>
#include <uLib/UtilFunc.h>
#include <uLib/Debug.h>
#include <uLib/StrFunc.h>

Go to the source code of this file.

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)
 
bool operator== (POINT P1, POINT P2)
 
bool operator != (POINT P1, POINT P2)
 
bool operator== (POINTS P1, POINTS P2)
 
bool operator != (POINTS P1, POINTS P2)
 
LPRECT AbsToDimRect (LPRECT r)
 
LPRECT DimToAbsRect (LPRECT r)
 
LPRECT AbsToRelRect (LPRECT R)
 
LPRECT NegateRect (LPRECT R)
 
void FitRect (PRECT pRc, PRECT pBounds, OUT PRECT pOut)
 
void DiffRect (PRECT Borders, LPCRECT Outer, LPCRECT Inner)
 
void AbsDiffRect (PRECT Borders, LPCRECT Outer, LPCRECT Inner)
 
void InflateBorders (PRECT Target, LPCRECT Borders)
 
void AbsInflateBorders (PRECT Target, LPCRECT Borders)
 
long double EngUnits (long double Value, int *pExpo)
 

Function Documentation

◆ operator==() [1/2]

bool operator== ( POINT  P1,
POINT  P2 
)

Definition at line 71 of file UtilFunc.cpp.

◆ operator !=() [1/2]

bool operator != ( POINT  P1,
POINT  P2 
)

Definition at line 74 of file UtilFunc.cpp.

◆ operator==() [2/2]

bool operator== ( POINTS  P1,
POINTS  P2 
)

Definition at line 77 of file UtilFunc.cpp.

◆ operator !=() [2/2]

bool operator != ( POINTS  P1,
POINTS  P2 
)

Definition at line 80 of file UtilFunc.cpp.

◆ FitRect()

void FitRect ( PRECT  pRc,
PRECT  pBounds,
OUT PRECT  pOut 
)

Definition at line 114 of file UtilFunc.cpp.