ARB
Public Member Functions | Static Public Attributes | List of all members
AW_rgb16 Class Reference

#include <aw_rgb.hxx>

Collaboration diagram for AW_rgb16:
Collaboration graph
[legend]

Public Member Functions

 AW_rgb16 ()
 
 AW_rgb16 (uint16_t red, uint16_t green, uint16_t blue)
 
 AW_rgb16 (const char *colorname)
 
 AW_rgb16 (const AW_rgb_normalized &o)
 
 AW_rgb16 (AW_rgb m)
 
bool operator== (const AW_rgb16 &o) const
 
bool operator!= (const AW_rgb16 &o) const
 
uint16_t r () const
 
uint16_t g () const
 
uint16_t b () const
 
const charascii () const
 

Static Public Attributes

static CONSTEXPR float MAX = 65535.0
 

Detailed Description

Definition at line 38 of file aw_rgb.hxx.

Constructor & Destructor Documentation

AW_rgb16::AW_rgb16 ( )
inline

Definition at line 45 of file aw_rgb.hxx.

AW_rgb16::AW_rgb16 ( uint16_t  red,
uint16_t  green,
uint16_t  blue 
)
inline

Definition at line 46 of file aw_rgb.hxx.

AW_rgb16::AW_rgb16 ( const char colorname)
explicit

converts colorname

Parameters
colornameeither color hexstring (allowed for orange: '#F80', '#ff8800', '#fFF888000' or '#ffff88880000') or X color name (e.g. "green")

Definition at line 24 of file AW_rgb.cxx.

References aw_assert, convert_xcolorname(), CRAZY_PINK, and length.

AW_rgb16::AW_rgb16 ( const AW_rgb_normalized o)
inlineexplicit

Definition at line 99 of file aw_rgb.hxx.

AW_rgb16::AW_rgb16 ( AW_rgb  m)
inlineexplicit

Definition at line 49 of file aw_rgb.hxx.

Member Function Documentation

bool AW_rgb16::operator== ( const AW_rgb16 o) const
inline

Definition at line 55 of file aw_rgb.hxx.

Referenced by operator!=().

bool AW_rgb16::operator!= ( const AW_rgb16 o) const
inline

Definition at line 56 of file aw_rgb.hxx.

References operator==().

uint16_t AW_rgb16::r ( ) const
inline

Definition at line 58 of file aw_rgb.hxx.

uint16_t AW_rgb16::g ( ) const
inline

Definition at line 59 of file aw_rgb.hxx.

uint16_t AW_rgb16::b ( ) const
inline

Definition at line 60 of file aw_rgb.hxx.

const char * AW_rgb16::ascii ( ) const

Definition at line 56 of file AW_rgb.cxx.

References aw_assert, and buffer.

Referenced by aw_create_color_chooser_window().

Member Data Documentation

CONSTEXPR float AW_rgb16::MAX = 65535.0
static

Definition at line 43 of file aw_rgb.hxx.


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