Public Member Functions | Protected Attributes

BufferCanvas Struct Reference

BufferCanvas manages offscreen bitmaps selected into memory device contexts. More...

#include <utility.h>

Inheritance diagram for BufferCanvas:
Inheritance graph
[legend]
Collaboration diagram for BufferCanvas:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BufferCanvas (HDC hdc, int x, int y, int w, int h)
 BufferCanvas (HDC hdc, const RECT &rect)

Protected Attributes

HDC _hdctarg
int _x
int _y
int _w
int _h
SelectedBitmap _bmp

Detailed Description

BufferCanvas manages offscreen bitmaps selected into memory device contexts.

Definition at line 547 of file utility.h.


Constructor & Destructor Documentation

BufferCanvas::BufferCanvas ( HDC  hdc,
int  x,
int  y,
int  w,
int  h 
) [inline]

Definition at line 549 of file utility.h.

     :  MemCanvas(hdc), _hdctarg(hdc),
        _x(x), _y(y), _w(w), _h(h),
        _bmp(_hdc, CreateCompatibleBitmap(hdc, w, h)) {}
BufferCanvas::BufferCanvas ( HDC  hdc,
const RECT &  rect 
) [inline]

Definition at line 554 of file utility.h.

     :  MemCanvas(hdc), _hdctarg(hdc),
        _x(rect.left), _y(rect.top), _w(rect.right-rect.left), _h(rect.bottom-rect.top),
        _bmp(_hdc, CreateCompatibleBitmap(hdc, _w, _h)) {}

Member Data Documentation

Definition at line 562 of file utility.h.

int BufferCanvas::_h [protected]

Definition at line 561 of file utility.h.

HDC BufferCanvas::_hdctarg [protected]

Definition at line 560 of file utility.h.

int BufferCanvas::_w [protected]

Definition at line 561 of file utility.h.

int BufferCanvas::_x [protected]

Definition at line 561 of file utility.h.

int BufferCanvas::_y [protected]

Definition at line 561 of file utility.h.


The documentation for this struct was generated from the following file:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage