#include <CGBuffer.h>
Public Member Functions | |
| CGFrame (const CGPoint &pos, const CGSize &size) | |
| CGFrame (float x, float y, const CGSize &size) | |
| CGFrame (const CGSize &size) | |
| CGFrame (const CGRect ©) | |
| CGFrame (const Rect &rect) | |
| CGFrame (float w=0, float h=0) | |
| CGFrame (float x0, float y0, float w, float h) | |
| void | Inset (float dx, float dy) |
| void | Offset (float dx, float dy) |
|
||||||||||||||||||||
|
Definition at line 54 of file CGBuffer.h. 00055 {
00056 *this = CGRectMake(x0,y0,w,h);
00057 }
|
|
||||||||||||
|
Definition at line 59 of file CGBuffer.h. 00060 {
00061 *this = CGRectMake(0,0,w,h);
00062 }
|
|
|
Definition at line 64 of file CGBuffer.h. 00065 {
00066 origin.x = rect.left, size.width = rect.right - rect.left;
00067 origin.y = rect.top, size.height = rect.bottom - rect.top;
00068 }
|
|
|
Definition at line 70 of file CGBuffer.h. 00071 {
00072 origin = copy.origin;
00073 size = copy.size;
00074 }
|
|
|
Definition at line 76 of file CGBuffer.h.
|
|
||||||||||||||||
|
Definition at line 82 of file CGBuffer.h.
|
|
||||||||||||
|
Definition at line 87 of file CGBuffer.h.
|
|
||||||||||||
|
Definition at line 97 of file CGBuffer.h. 00098 {
00099 origin.x += dx, origin.y += dy;
00100 size.width -= dx*2, size.height -= dy*2;
00101 }
|
|
||||||||||||
|
Definition at line 92 of file CGBuffer.h. 00093 {
00094 origin.x += dx, origin.y += dy;
00095 }
|
1.4.1