Public Member Functions | Protected Attributes

TextColor Struct Reference

TextColor locally selects a text color for drawing. More...

#include <utility.h>

Collaboration diagram for TextColor:
Collaboration graph

List of all members.

Public Member Functions

 TextColor (HDC hdc, COLORREF color)
 ~TextColor ()

Protected Attributes

HDC _hdc
COLORREF _old_color

Detailed Description

TextColor locally selects a text color for drawing.

Definition at line 593 of file utility.h.

Constructor & Destructor Documentation

TextColor::TextColor ( HDC  hdc,
COLORREF  color 
) [inline]

Definition at line 595 of file utility.h.

     : _hdc(hdc), _old_color(SetTextColor(hdc, color)) {}
TextColor::~TextColor (  ) [inline]

Definition at line 598 of file utility.h.

{SetTextColor(_hdc, _old_color);}

Member Data Documentation

HDC TextColor::_hdc [protected]

Definition at line 601 of file utility.h.

COLORREF TextColor::_old_color [protected]

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