Public Member Functions | Protected Attributes

FontSelection Struct Reference

FontSelection locally selects a font for drawing. More...

#include <utility.h>

Collaboration diagram for FontSelection:
Collaboration graph

List of all members.

Public Member Functions

 FontSelection (HDC hdc, HFONT hFont)
 ~FontSelection ()

Protected Attributes

HDC _hdc
HFONT _old_hFont

Detailed Description

FontSelection locally selects a font for drawing.

Definition at line 619 of file utility.h.

Constructor & Destructor Documentation

FontSelection::FontSelection ( HDC  hdc,
HFONT  hFont 
) [inline]

Definition at line 621 of file utility.h.

     : _hdc(hdc), _old_hFont(SelectFont(hdc, hFont)) {}
FontSelection::~FontSelection (  ) [inline]

Definition at line 624 of file utility.h.

{SelectFont(_hdc, _old_hFont);}

Member Data Documentation

HDC FontSelection::_hdc [protected]

Definition at line 627 of file utility.h.

HFONT FontSelection::_old_hFont [protected]

Definition at line 628 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