OpenGUI::Face Class Reference

#include <OpenGUI_Face.h>

List of all members.


Detailed Description

Provides an HTML table like system for controlled stretching and tiling of logical groups of display imagery.

Faces are used to join several previously defined Imagery together in an HTML table-like fashion, providing minimum widths and heights, selective growth, and column/row spanning. They are drawn as a single unit, automatically scaling as necessary to fit the desired coverage area, while doing their best to scale only in designated directions.

See also:
BrushImagery::drawFace()


Public Types

 FM_UNITS = 0
 The size is in Screen units.
 FM_PIXELS = 1
 The size is in pixels of the native display.
enum  FaceMetric {
  FM_UNITS = 0,
  FM_PIXELS = 1
}
 Used to dictate the metric of measurement used in Face related objects. More...

Public Member Functions

const std::string & getName ()
 Returns the name of this Face.
void getColumnWidths (float totalWidth, FaceDimArray &columnArray_out)
 fills the columnArray_out with column widths to fit the totalWidth
void getRowHeights (float totalHeight, FaceDimArray &rowArray_out)
 fills the rowArray_out with row heights to fit the totalHeight
const SliceListgetSlices ()
 returns a reference to the list of Slices used in this Face

Static Public Member Functions

static FacePtr Create (const std::string &faceName, const FaceDef &faceDefinition)
 Takes a FaceDef (Face definition) and generates a Face which is returned in a reference counted pointer.

Public Attributes

const FaceMetric Metric
 Indicates the metric that should be used when rendering this Face.


Member Enumeration Documentation

enum OpenGUI::Face::FaceMetric

Used to dictate the metric of measurement used in Face related objects.

Enumerator:
FM_UNITS  The size is in Screen units.
FM_PIXELS  The size is in pixels of the native display.


Member Function Documentation

FacePtr OpenGUI::Face::Create ( const std::string &  faceName,
const FaceDef faceDefinition 
) [static]

Takes a FaceDef (Face definition) and generates a Face which is returned in a reference counted pointer.

void OpenGUI::Face::getColumnWidths ( float  totalWidth,
FaceDimArray columnArray_out 
)

fills the columnArray_out with column widths to fit the totalWidth

const std::string& OpenGUI::Face::getName (  )  [inline]

Returns the name of this Face.

void OpenGUI::Face::getRowHeights ( float  totalHeight,
FaceDimArray rowArray_out 
)

fills the rowArray_out with row heights to fit the totalHeight

const SliceList & OpenGUI::Face::getSlices (  ) 

returns a reference to the list of Slices used in this Face


Member Data Documentation

const FaceMetric OpenGUI::Face::Metric

Indicates the metric that should be used when rendering this Face.


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Fri Jan 5 23:05:25 2007