mapgenerator  1.1.2
About: Creates client-side image maps in HTML files.
  Fossies Dox: mapgenerator-1.1.2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

Frame_Buffer Class Reference

#include <Frame_Buffer.h>

Public Types

typedef unsigned char Component
 

Public Member Functions

 Frame_Buffer (size_t w, size_t h, size_t components)
 
 ~Frame_Buffer ()
 
size_t width () const
 
size_t height () const
 
size_t pixels () const
 
size_t components () const
 
const Componentbuffer () const
 
Componentbuffer ()
 
Frame_Bufferresize (int w, int h)
 

Protected Member Functions

Frame_Buffermin_y (Frame_Buffer *fb, double first, double next, int h, int del)
 
Frame_Buffermin_x (Frame_Buffer *fb, double first, double next, int w, int del)
 
Frame_Buffermax_x (Frame_Buffer *fb, double first, double next, int w, int max)
 
Frame_Buffermax_y (Frame_Buffer *fb, double first, double next, int w, int h, int max)
 

Protected Attributes

size_t _w
 
size_t _h
 
Component_buffer
 
size_t _components
 

Detailed Description

Definition at line 28 of file Frame_Buffer.h.

Member Typedef Documentation

◆ Component

typedef unsigned char Frame_Buffer::Component

Definition at line 34 of file Frame_Buffer.h.

Constructor & Destructor Documentation

◆ Frame_Buffer()

Frame_Buffer::Frame_Buffer ( size_t  w,
size_t  h,
size_t  components 
)

Definition at line 22 of file Frame_Buffer.cpp.

References _buffer, _components, _h, and _w.

Referenced by max_x(), max_y(), min_x(), and min_y().

◆ ~Frame_Buffer()

Frame_Buffer::~Frame_Buffer ( )

Definition at line 28 of file Frame_Buffer.cpp.

References _buffer.

Member Function Documentation

◆ buffer() [1/2]

Component* Frame_Buffer::buffer ( )
inline

Definition at line 42 of file Frame_Buffer.h.

References _buffer.

◆ buffer() [2/2]

const Component* Frame_Buffer::buffer ( ) const
inline

Definition at line 41 of file Frame_Buffer.h.

References _buffer.

Referenced by htmlfile::buffer(), max_x(), max_y(), min_x(), min_y(), Image_scroll_box::open(), read_jpeg(), and read_png().

◆ components()

size_t Frame_Buffer::components ( ) const
inline

Definition at line 39 of file Frame_Buffer.h.

References _components.

Referenced by htmlfile::components(), max_x(), max_y(), min_x(), min_y(), and Image_scroll_box::open().

◆ height()

size_t Frame_Buffer::height ( ) const
inline

Definition at line 37 of file Frame_Buffer.h.

References _h.

Referenced by htmlfile::height(), max_x(), min_x(), min_y(), and resize().

◆ max_x()

Frame_Buffer * Frame_Buffer::max_x ( Frame_Buffer fb,
double  first,
double  next,
int  w,
int  max 
)
protected

Definition at line 105 of file Frame_Buffer.cpp.

References buffer(), components(), Frame_Buffer(), and height().

Referenced by resize().

◆ max_y()

Frame_Buffer * Frame_Buffer::max_y ( Frame_Buffer fb,
double  first,
double  next,
int  w,
int  h,
int  max 
)
protected

Definition at line 132 of file Frame_Buffer.cpp.

References buffer(), components(), Frame_Buffer(), and width().

Referenced by resize().

◆ min_x()

Frame_Buffer * Frame_Buffer::min_x ( Frame_Buffer fb,
double  first,
double  next,
int  w,
int  del 
)
protected

Definition at line 80 of file Frame_Buffer.cpp.

References buffer(), components(), Frame_Buffer(), height(), and width().

Referenced by resize().

◆ min_y()

Frame_Buffer * Frame_Buffer::min_y ( Frame_Buffer fb,
double  first,
double  next,
int  h,
int  del 
)
protected

Definition at line 58 of file Frame_Buffer.cpp.

References buffer(), components(), Frame_Buffer(), height(), and width().

Referenced by resize().

◆ pixels()

size_t Frame_Buffer::pixels ( ) const
inline

Definition at line 38 of file Frame_Buffer.h.

References _h, and _w.

Referenced by htmlfile::pixels().

◆ resize()

Frame_Buffer * Frame_Buffer::resize ( int  w,
int  h 
)

Definition at line 33 of file Frame_Buffer.cpp.

References height(), max_x(), max_y(), min_x(), min_y(), and width().

Referenced by Image_scroll_box::open().

◆ width()

size_t Frame_Buffer::width ( ) const
inline

Definition at line 36 of file Frame_Buffer.h.

References _w.

Referenced by max_y(), min_x(), min_y(), resize(), and htmlfile::width().

Member Data Documentation

◆ _buffer

Component* Frame_Buffer::_buffer
protected

Definition at line 48 of file Frame_Buffer.h.

Referenced by buffer(), Frame_Buffer(), and ~Frame_Buffer().

◆ _components

size_t Frame_Buffer::_components
protected

Definition at line 49 of file Frame_Buffer.h.

Referenced by components(), and Frame_Buffer().

◆ _h

size_t Frame_Buffer::_h
protected

Definition at line 47 of file Frame_Buffer.h.

Referenced by Frame_Buffer(), height(), and pixels().

◆ _w

size_t Frame_Buffer::_w
protected

Definition at line 46 of file Frame_Buffer.h.

Referenced by Frame_Buffer(), pixels(), and width().


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