23 #ifndef BAGEL_BOFLIB_SIZE_H 24 #define BAGEL_BOFLIB_SIZE_H 26 #include "bagel/afxwin.h" 27 #include "bagel/boflib/stdinc.h" 28 #include "bagel/boflib/object.h" 44 void operator=(
const CBofSize &cSize);
45 bool operator==(
SIZE size);
46 bool operator!=(
SIZE size);
47 void operator+=(
SIZE size);
48 void operator-=(
SIZE size);
57 inline CBofSize::CBofSize() {
61 inline CBofSize::CBofSize(
int initCX,
int initCY) {
66 inline CBofSize::CBofSize(
const SIZE &stSize) {
71 inline CBofSize::CBofSize(
const CBofSize &cSize) {
76 inline CBofSize::CBofSize(
StPoint stPoint) {
81 inline void CBofSize::operator=(
const CBofSize &cSize) {
86 inline bool CBofSize::operator==(
SIZE size) {
88 assert(isValidObject(
this));
90 return (cx == size.cx && cy == size.cy);
93 inline bool CBofSize::operator!=(
SIZE size) {
95 assert(isValidObject(
this));
97 return (cx != size.cx || cy != size.cy);
100 inline void CBofSize::operator+=(
SIZE size) {
102 assert(isValidObject(
this));
108 inline void CBofSize::operator-=(
SIZE size) {
110 assert(isValidObject(
this));
118 assert(isValidObject(
this));
120 return CBofSize(cx + size.cx, cy + size.cy);
125 assert(isValidObject(
this));
127 return CBofSize(cx - size.cx, cy - size.cy);
130 inline CBofSize CBofSize::operator-() {
132 assert(isValidObject(
this));
Definition: minwindef.h:166