ARB
Public Member Functions | Protected Member Functions | List of all members
AW_GC Class Referenceabstract

#include <aw_common.hxx>

Inheritance diagram for AW_GC:
Inheritance graph
[legend]
Collaboration diagram for AW_GC:
Collaboration graph
[legend]

Public Member Functions

 AW_GC (AW_common *common_)
 
virtual ~AW_GC ()
 
virtual int get_available_fontsizes (AW_font font_nr, int *available_sizes) const =0
 
AW_commonget_common () const
 
const AW_font_limitsget_font_limits () const
 
const AW_font_limitsget_font_limits (char c) const
 
short get_width_of_char (char c) const
 
short get_ascent_of_char (char c) const
 
short get_descent_of_char (char c) const
 
int get_string_size (long textlen) const
 
int get_string_size (const SizedCstr &cstr) const
 
AW_rgb get_fg_color () const
 
AW_rgb get_last_fg_color () const
 
void set_fg_color (AW_rgb col)
 
void set_function (AW_function mode)
 
void set_line_attributes (short new_width, AW_linestyle new_style)
 
void set_font (AW_font font_nr, int size, int *found_size)
 
short get_fontsize () const
 
AW_font get_fontnr () const
 
void establish_default ()
 
void apply_config (const AW_GC_config &conf)
 
void reset ()
 
- Public Member Functions inherited from AW_GC_config
 AW_GC_config ()
 
AW_function get_function () const
 
AW_grey_level get_grey_level () const
 
void set_grey_level (AW_grey_level grey_level_)
 
short get_line_width () const
 
AW_linestyle get_line_style () const
 
bool operator== (const AW_GC_config &other) const
 

Protected Member Functions

void set_char_size (int i, int ascent, int descent, int width)
 
void set_no_char_size (int i)
 

Additional Inherited Members

- Protected Attributes inherited from AW_GC_config
AW_function function
 
AW_grey_level grey_level
 
short line_width
 
AW_linestyle style
 

Detailed Description

Definition at line 70 of file aw_common.hxx.

Constructor & Destructor Documentation

AW_GC::AW_GC ( AW_common common_)
inline

Definition at line 117 of file aw_common.hxx.

virtual AW_GC::~AW_GC ( )
inlinevirtual

Definition at line 127 of file aw_common.hxx.

Member Function Documentation

void AW_GC::set_char_size ( int  i,
int  ascent,
int  descent,
int  width 
)
inlineprotected

Definition at line 104 of file aw_common.hxx.

References AW_font_limits::notify().

void AW_GC::set_no_char_size ( int  i)
inlineprotected

Definition at line 110 of file aw_common.hxx.

virtual int AW_GC::get_available_fontsizes ( AW_font  font_nr,
int available_sizes 
) const
pure virtual

Implemented in AW_GC_Xm.

Referenced by AW_stylable::get_available_fontsizes().

AW_common* AW_GC::get_common ( ) const
inline

Definition at line 131 of file aw_common.hxx.

Referenced by AW_GC_Xm::get_common().

const AW_font_limits& AW_GC::get_font_limits ( ) const
inline
const AW_font_limits& AW_GC::get_font_limits ( char  c) const
inline
short AW_GC::get_width_of_char ( char  c) const
inline

Definition at line 142 of file aw_common.hxx.

References safeCharIndex().

Referenced by AW_device::text_overlay().

short AW_GC::get_ascent_of_char ( char  c) const
inline

Definition at line 143 of file aw_common.hxx.

References safeCharIndex().

short AW_GC::get_descent_of_char ( char  c) const
inline

Definition at line 144 of file aw_common.hxx.

References safeCharIndex().

int AW_GC::get_string_size ( long  textlen) const
int AW_GC::get_string_size ( const SizedCstr cstr) const
AW_rgb AW_GC::get_fg_color ( ) const
inline

Definition at line 150 of file aw_common.hxx.

AW_rgb AW_GC::get_last_fg_color ( ) const
inline

Definition at line 151 of file aw_common.hxx.

void AW_GC::set_fg_color ( AW_rgb  col)
inline

Definition at line 152 of file aw_common.hxx.

Referenced by AW_stylable::set_foreground_color().

void AW_GC::set_function ( AW_function  mode)
inline

Definition at line 154 of file aw_common.hxx.

Referenced by apply_config(), and AW_stylable::set_function().

void AW_GC::set_line_attributes ( short  new_width,
AW_linestyle  new_style 
)
inline
void AW_GC::set_font ( AW_font  font_nr,
int  size,
int found_size 
)

Definition at line 839 of file AW_xfont.cxx.

References fontsize, and AW_font_limits::reset().

Referenced by AW_stylable::set_font().

short AW_GC::get_fontsize ( ) const
inline

Definition at line 174 of file aw_common.hxx.

AW_font AW_GC::get_fontnr ( ) const
inline

Definition at line 175 of file aw_common.hxx.

void AW_GC::establish_default ( )
inline

Definition at line 177 of file aw_common.hxx.

References aw_assert, and AW_GC_config::AW_GC_config().

Referenced by AW_stylable::establish_default().

void AW_GC::apply_config ( const AW_GC_config conf)
inline
void AW_GC::reset ( )
inline

Definition at line 187 of file aw_common.hxx.

References apply_config(), and AW_GC_config::AW_GC_config().

Referenced by AW_GC_set::reset_style().


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