Back to index

unity  6.0.0
Public Types | Public Member Functions | Public Attributes
unity::dash::ResultRenderer Class Reference

#include <ResultRenderer.h>

Inheritance diagram for unity::dash::ResultRenderer:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ResultRendererState {
  RESULT_RENDERER_NORMAL, RESULT_RENDERER_ACTIVE, RESULT_RENDERER_PRELIGHT, RESULT_RENDERER_SELECTED,
  RESULT_RENDERER_INSENSITIVE
}

Public Member Functions

 NUX_DECLARE_OBJECT_TYPE (ResultRenderer, nux::InitiallyUnownedObject)
 ResultRenderer (NUX_FILE_LINE_PROTO)
virtual ~ResultRenderer ()
virtual void Render (nux::GraphicsEngine &GfxContext, Result &row, ResultRendererState state, nux::Geometry &geometry, int x_offset, int y_offset)
virtual void Preload (Result &row)
virtual void Unload (Result &row)

Public Attributes

nux::Property< int > width
nux::Property< int > height
sigc::signal< void > NeedsRedraw

Detailed Description

Definition at line 40 of file ResultRenderer.h.


Member Enumeration Documentation

Enumerator:
RESULT_RENDERER_NORMAL 
RESULT_RENDERER_ACTIVE 
RESULT_RENDERER_PRELIGHT 
RESULT_RENDERER_SELECTED 
RESULT_RENDERER_INSENSITIVE 

Definition at line 45 of file ResultRenderer.h.


Constructor & Destructor Documentation

Definition at line 33 of file ResultRenderer.cpp.

  : InitiallyUnownedObject(NUX_FILE_LINE_PARAM)
  , width(50)
  , height(50)
{
}

Definition at line 40 of file ResultRenderer.cpp.

{
}

Member Function Documentation

unity::dash::ResultRenderer::NUX_DECLARE_OBJECT_TYPE ( ResultRenderer  ,
nux::InitiallyUnownedObject   
)
void unity::dash::ResultRenderer::Preload ( Result row) [virtual]

Reimplemented in unity::dash::ResultRendererTile.

Definition at line 52 of file ResultRenderer.cpp.

{
  // pre-load the given row
}

Here is the caller graph for this function:

void unity::dash::ResultRenderer::Render ( nux::GraphicsEngine &  GfxContext,
Result row,
ResultRendererState  state,
nux::Geometry &  geometry,
int  x_offset,
int  y_offset 
) [virtual]

Reimplemented in unity::dash::ResultRendererTile, and unity::dash::ResultRendererHorizontalTile.

Definition at line 44 of file ResultRenderer.cpp.

{
  nux::GetPainter().PushDrawSliceScaledTextureLayer(GfxContext, geometry, nux::eBUTTON_NORMAL, nux::color::White, nux::eAllCorners);
}

Here is the caller graph for this function:

void unity::dash::ResultRenderer::Unload ( Result row) [virtual]

Reimplemented in unity::dash::ResultRendererTile.

Definition at line 57 of file ResultRenderer.cpp.

{
  // unload any resources
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 70 of file ResultRenderer.h.

Definition at line 72 of file ResultRenderer.h.

Definition at line 69 of file ResultRenderer.h.


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