sswf::Style Class Reference

#include <libsswf.h>

Inheritance diagram for sswf::Style:

sswf::ItemBase sswf::MemBuffer List of all members.

Public Types

enum  style_t {
  STYLE_TYPE_UNKNOWN = 0, STYLE_TYPE_NO_LINE, STYLE_TYPE_NO_FILL, STYLE_TYPE_LINE,
  STYLE_TYPE_SOLID, STYLE_TYPE_GRADIENT_LINEAR, STYLE_TYPE_GRADIENT_RADIAL, STYLE_TYPE_BITMAP_TILLED,
  STYLE_TYPE_BITMAP_CLIPPED, STYLE_TYPE_BITMAP_HARDEDGE_TILLED, STYLE_TYPE_BITMAP_HARDEDGE_CLIPPED, STYLE_TYPE_MATRIX,
  STYLE_TYPE_max
}
 STYLE_TYPE_BITMAP_CLIPPED
 STYLE_TYPE_BITMAP_HARDEDGE_CLIPPED
 STYLE_TYPE_BITMAP_HARDEDGE_TILLED
 STYLE_TYPE_BITMAP_TILLED
 STYLE_TYPE_GRADIENT_LINEAR
 STYLE_TYPE_GRADIENT_RADIAL
 STYLE_TYPE_LINE
 STYLE_TYPE_MATRIX
 STYLE_TYPE_max
 STYLE_TYPE_NO_FILL
 STYLE_TYPE_NO_LINE
 STYLE_TYPE_SOLID
 STYLE_TYPE_UNKNOWN = 0

Public Member Functions

bool HasAlpha (void) const
bool HasHardEdges (void) const
bool HasMorph (void) const
bool operator== (const Style &style) const
void Reset (void)
void Save (Data &data, bool save_alpha, bool save_morph)
void SetBitmap (sswf_id_t id_ref)
void SetClipping (void)
void SetColor (int index, const Color &color)
void SetGradient (int index, int pos, const Color &color)
void SetLine (int index, unsigned short width, const Color &color)
void SetMatrix (int index, const Matrix &matrix)
void SetType (style_t style_type)
 Style (void)
style_t Type (void) const

Private Attributes

sswf_id_t f_bitmap_ref
Color f_color [2]
signed char f_gradient
Color f_gradient_color [16]
unsigned char f_gradient_pos [16]
unsigned short f_line_width [2]
Matrix f_matrix [2]
bool f_morph
style_t f_style
bool f_use_alpha

Member Enumeration Documentation

enum sswf::Style::style_t

Enumerator:
STYLE_TYPE_UNKNOWN 
STYLE_TYPE_NO_LINE 
STYLE_TYPE_NO_FILL 
STYLE_TYPE_LINE 
STYLE_TYPE_SOLID 
STYLE_TYPE_GRADIENT_LINEAR 
STYLE_TYPE_GRADIENT_RADIAL 
STYLE_TYPE_BITMAP_TILLED 
STYLE_TYPE_BITMAP_CLIPPED 
STYLE_TYPE_BITMAP_HARDEDGE_TILLED 
STYLE_TYPE_BITMAP_HARDEDGE_CLIPPED 
STYLE_TYPE_MATRIX 
STYLE_TYPE_max 


Constructor & Destructor Documentation

Style::Style ( void   ) 


Member Function Documentation

bool sswf::Style::HasAlpha ( void   )  const [inline]

bool sswf::Style::HasHardEdges ( void   )  const [inline]

bool sswf::Style::HasMorph ( void   )  const [inline]

bool Style::operator== ( const Style style  )  const

void Style::Reset ( void   ) 

void Style::Save ( Data data,
bool  save_alpha,
bool  save_morph 
)

void Style::SetBitmap ( sswf_id_t  id_ref  ) 

void Style::SetClipping ( void   ) 

void Style::SetColor ( int  index,
const Color color 
)

void Style::SetGradient ( int  index,
int  pos,
const Color color 
)

void Style::SetLine ( int  index,
unsigned short  width,
const Color color 
)

void Style::SetMatrix ( int  index,
const Matrix matrix 
)

void Style::SetType ( style_t  style_type  ) 

style_t sswf::Style::Type ( void   )  const [inline]


Member Data Documentation

sswf_id_t sswf::Style::f_bitmap_ref [private]

Color sswf::Style::f_color[2] [private]

signed char sswf::Style::f_gradient [private]

Color sswf::Style::f_gradient_color[16] [private]

unsigned char sswf::Style::f_gradient_pos[16] [private]

unsigned short sswf::Style::f_line_width[2] [private]

Matrix sswf::Style::f_matrix[2] [private]

bool sswf::Style::f_morph [private]

style_t sswf::Style::f_style [private]

bool sswf::Style::f_use_alpha [private]


The documentation for this class was generated from the following files:
Generated on Sun May 13 23:29:40 2007 for libsswf by  doxygen 1.4.7