doodle  0.1.0
Intended to support teaching C++, doodle is a simple librarythat helps make a window and makes it easy to do some drawing.
Public Types | Public Member Functions | Public Attributes | List of all members
doodle::Image::color Struct Reference

struct to represent the colors of the Image. More...

#include <image.hpp>

Public Types

using byte = unsigned char
 

Public Member Functions

 color ()=default
 Defaults to black. More...
 
 color (const doodle::Color &c) noexcept
 Can be constructed from a Color object. More...
 
 operator doodle::Color () const noexcept
 Can be implicitly converted to a Color object. More...
 

Public Attributes

byte red = 0
 
byte green = 0
 
byte blue = 0
 
byte alpha = 255
 

Detailed Description

struct to represent the colors of the Image.

Definition at line 257 of file image.hpp.

Member Typedef Documentation

◆ byte

using doodle::Image::color::byte = unsigned char

Definition at line 259 of file image.hpp.

Constructor & Destructor Documentation

◆ color() [1/2]

doodle::Image::color::color ( )
default

Defaults to black.

◆ color() [2/2]

doodle::Image::color::color ( const doodle::Color &  c)
noexcept

Can be constructed from a Color object.

Parameters
cColor object

Member Function Documentation

◆ operator doodle::Color()

doodle::Image::color::operator doodle::Color ( ) const
noexcept

Can be implicitly converted to a Color object.

Member Data Documentation

◆ alpha

byte doodle::Image::color::alpha = 255

Definition at line 260 of file image.hpp.

◆ blue

byte doodle::Image::color::blue = 0

Definition at line 260 of file image.hpp.

◆ green

byte doodle::Image::color::green = 0

Definition at line 260 of file image.hpp.

◆ red

byte doodle::Image::color::red = 0

Definition at line 260 of file image.hpp.


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