DUDS
Distributed Update of Data from Something
duds::ui::graphics::BppImage::Pixel::BoolProxy Class Reference

Retreives a pixel's state; used to allow Pixel to be dereferenced like any other iterator to get a bool for the pixel. More...

#include <BppImage.hpp>

Collaboration diagram for duds::ui::graphics::BppImage::Pixel::BoolProxy:

Public Member Functions

 BoolProxy (Pixel *p)
 
 operator bool ()
 Returns the pixel's state. More...
 
bool operator= (bool b)
 Changes the pixel's state. More...
 

Private Attributes

Pixelpix
 

Detailed Description

Retreives a pixel's state; used to allow Pixel to be dereferenced like any other iterator to get a bool for the pixel.

Definition at line 935 of file BppImage.hpp.

Constructor & Destructor Documentation

◆ BoolProxy()

duds::ui::graphics::BppImage::Pixel::BoolProxy::BoolProxy ( Pixel p)
inline

Definition at line 938 of file BppImage.hpp.

Member Function Documentation

◆ operator bool()

duds::ui::graphics::BppImage::Pixel::BoolProxy::operator bool ( )
inline

Returns the pixel's state.

Exceptions
ImageIteratorEndError

Definition at line 943 of file BppImage.hpp.

◆ operator=()

bool duds::ui::graphics::BppImage::Pixel::BoolProxy::operator= ( bool  b)
inline

Changes the pixel's state.

Exceptions
ImageIteratorEndError

Definition at line 950 of file BppImage.hpp.

Member Data Documentation

◆ pix

Pixel* duds::ui::graphics::BppImage::Pixel::BoolProxy::pix
private

Definition at line 936 of file BppImage.hpp.


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