BoxSize Struct Reference

#include <framebuffer.h>

List of all members.

Public Member Functions

 BoxSize ()
 BoxSize (int x, int y)
int nPixels () const
bool operator== (const BoxSize &b) const
 BoxSize objects comparation. Same meaning of operator as for built-in types.
bool operator!= (const BoxSize &b) const
 Negated BoxSize objects comparation. Same meaning of operator as for built-in types.

Public Attributes

int width
 Object width.
int height
 Object height.


Detailed Description

2D ortogonal object size

Definition at line 25 of file framebuffer.h.


Constructor & Destructor Documentation

BoxSize::BoxSize (  )  [inline]

Construct BoxSize with zero size.

Definition at line 32 of file framebuffer.h.

BoxSize::BoxSize ( int  x,
int  y 
) [inline]

Construct BoxSize with given size.

Parameters:
x Object width.
y Object height.

Definition at line 39 of file framebuffer.h.


Member Function Documentation

int BoxSize::nPixels (  )  const [inline]

Returns:
Return object pixels count.

Definition at line 44 of file framebuffer.h.

References height, and width.

bool BoxSize::operator== ( const BoxSize b  )  const [inline]

BoxSize objects comparation. Same meaning of operator as for built-in types.

Definition at line 47 of file framebuffer.h.

References height, and width.

Referenced by operator!=().

bool BoxSize::operator!= ( const BoxSize b  )  const [inline]

Negated BoxSize objects comparation. Same meaning of operator as for built-in types.

Definition at line 54 of file framebuffer.h.

References operator==().


Member Data Documentation

int BoxSize::width

Object width.

Definition at line 26 of file framebuffer.h.

Referenced by nPixels(), operator==(), FrameBuffer::operator[](), and MyFl_Image::uncache().

int BoxSize::height

Object height.

Definition at line 27 of file framebuffer.h.

Referenced by nPixels(), operator==(), and MyFl_Image::uncache().


The documentation for this struct was generated from the following file:
Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by  doxygen 1.5.2