nux-0.9.46

nux::ColorPreview Class Reference

#include <Nux/ColorPreview.h>

Inheritance diagram for nux::ColorPreview:
nux::View nux::InputArea nux::Area nux::InitiallyUnownedObject nux::Focusable nux::Object nux::Trackable nux::ColorPreviewPropertyItem

Public Member Functions

 ColorPreview (float red=0.0f, float green=0.0f, float blue=0.0f, eColorModel colormodel=CM_RGB, NUX_FILE_LINE_PROTO)
 ~ColorPreview ()
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
virtual void Draw (GraphicsEngine &GfxContext, bool force_draw)
virtual void DrawContent (GraphicsEngine &GfxContext, bool force_draw)
virtual void PostDraw (GraphicsEngine &GfxContext, bool force_draw)
void SetRed (double r)
void SetGreen (double g)
void SetBlue (double b)
void SetRGB (double r, double g, double b)
void SetRGBA (double r, double g, double b, double a)
void SetColor (Color rgb)
Color GetRGBColor () const

Data Fields

sigc::signal< void, ColorEditor * > sigColorChanged

Constructor & Destructor Documentation

nux::ColorPreview::ColorPreview ( float  red = 0.0f,
float  green = 0.0f,
float  blue = 0.0f,
eColorModel  colormodel = CM_RGB,
NUX_FILE_LINE_PROTO   
)
nux::ColorPreview::~ColorPreview ( )

Member Function Documentation

virtual void nux::ColorPreview::Draw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Implements nux::View.

virtual void nux::ColorPreview::DrawContent ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

Color nux::ColorPreview::GetRGBColor ( ) const
virtual void nux::ColorPreview::PostDraw ( GraphicsEngine GfxContext,
bool  force_draw 
) [virtual]

Reimplemented from nux::View.

virtual long nux::ColorPreview::ProcessEvent ( IEvent ievent,
long  TraverseInfo,
long  ProcessEventInfo 
) [virtual]

Implements nux::View.

void nux::ColorPreview::SetBlue ( double  b)
void nux::ColorPreview::SetColor ( Color  rgb)
void nux::ColorPreview::SetGreen ( double  g)
void nux::ColorPreview::SetRed ( double  r)
void nux::ColorPreview::SetRGB ( double  r,
double  g,
double  b 
)
void nux::ColorPreview::SetRGBA ( double  r,
double  g,
double  b,
double  a 
)

Field Documentation


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