Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cWinSize Class Reference

#include <WinTypes.h>

Inheritance diagram for GrayLib::cWinSize:

Public Member Functions

 cWinSize (LONG _cx=0, LONG _cy=0) noexcept
 
 cWinSize (const SIZE &rsize) noexcept
 
bool operator== (const SIZE &rsize) const noexcept
 
bool PtInRect (int x, int y) const noexcept
 
bool isZero () const noexcept
 
void SetZero () noexcept
 
float get_AspectRatio () const noexcept
 
void SetMaxAspect (int maxx, int maxy)
 

Detailed Description

a 2d size. Like MFC CSize assume PIXELS_t

Constructor & Destructor Documentation

◆ cWinSize() [1/2]

GrayLib::cWinSize::cWinSize ( LONG  _cx = 0,
LONG  _cy = 0 
)
inlinenoexcept

◆ cWinSize() [2/2]

GrayLib::cWinSize::cWinSize ( const SIZE &  rsize)
inlinenoexcept

Member Function Documentation

◆ get_AspectRatio()

float GrayLib::cWinSize::get_AspectRatio ( ) const
noexcept

◆ isZero()

bool GrayLib::cWinSize::isZero ( ) const
inlinenoexcept

◆ operator==()

bool GrayLib::cWinSize::operator== ( const SIZE &  rsize) const
inlinenoexcept

◆ PtInRect()

bool GrayLib::cWinSize::PtInRect ( int  x,
int  y 
) const
inlinenoexcept

◆ SetMaxAspect()

void GrayLib::cWinSize::SetMaxAspect ( int  maxx,
int  maxy 
)

Set the max size. but keep the current aspect ratio.

◆ SetZero()

void GrayLib::cWinSize::SetZero ( )
inlinenoexcept

The documentation for this class was generated from the following files: