Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGFrame Class Reference

#include <CGBuffer.h>

List of all members.

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 &copy)
 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)


Constructor & Destructor Documentation

CGFrame::CGFrame float  x0,
float  y0,
float  w,
float  h
[inline]
 

Definition at line 54 of file CGBuffer.h.

00055         {
00056                 *this = CGRectMake(x0,y0,w,h);
00057         }

CGFrame::CGFrame float  w = 0,
float  h = 0
[inline, explicit]
 

Definition at line 59 of file CGBuffer.h.

00060         {
00061                 *this = CGRectMake(0,0,w,h);
00062         }

CGFrame::CGFrame const Rect &  rect  )  [inline]
 

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         }

CGFrame::CGFrame const CGRect &  copy  )  [inline]
 

Definition at line 70 of file CGBuffer.h.

00071         {
00072                 origin = copy.origin;
00073                 size = copy.size;
00074         }

CGFrame::CGFrame const CGSize &  size  )  [inline]
 

Definition at line 76 of file CGBuffer.h.

00077         {
00078                 origin.x = origin.y = 0;
00079                 this->size = size;
00080         }

CGFrame::CGFrame float  x,
float  y,
const CGSize &  size
[inline]
 

Definition at line 82 of file CGBuffer.h.

00083         {
00084                 *this = CGRectMake(x, y, size.width, size.height);
00085         }

CGFrame::CGFrame const CGPoint &  pos,
const CGSize &  size
[inline]
 

Definition at line 87 of file CGBuffer.h.

00088         {
00089                 *this = CGRectMake(pos.x, pos.y, size.width, size.height);
00090         }       


Member Function Documentation

void CGFrame::Inset float  dx,
float  dy
[inline]
 

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         }

void CGFrame::Offset float  dx,
float  dy
[inline]
 

Definition at line 92 of file CGBuffer.h.

00093         {
00094                 origin.x += dx, origin.y += dy;
00095         }


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 22:33:10 2006 for Celestia by  doxygen 1.4.1