BC_Title Class Reference

#include <bctitle.h>

Inherits BC_SubWindow.

Inherited by MainClock.

Collaboration diagram for BC_Title:

Collaboration graph
[legend]

Public Member Functions

 BC_Title (int x, int y, char *text, int font=MEDIUMFONT, int color=-1, int centered=0, int fixed_w=0)
virtual ~BC_Title ()
int initialize ()
int resize (int w, int h)
int reposition (int x, int y)
int set_color (int color)
int update (char *text)
void update (float value)
char * get_text ()

Static Public Member Functions

static int calculate_w (BC_WindowBase *gui, char *text, int font=MEDIUMFONT)
static int calculate_h (BC_WindowBase *gui, char *text, int font=MEDIUMFONT)

Private Member Functions

int draw ()

Static Private Member Functions

static void get_size (BC_WindowBase *gui, int font, char *text, int fixed_w, int &w, int &h)

Private Attributes

char text [BCTEXTLEN]
int color
int font
int centered
int fixed_w

Detailed Description

Definition at line 8 of file bctitle.h.


Constructor & Destructor Documentation

BC_Title::BC_Title ( int  x,
int  y,
char *  text,
int  font = MEDIUMFONT,
int  color = -1,
int  centered = 0,
int  fixed_w = 0 
)

Definition at line 7 of file bctitle.C.

References BC_Resources::default_text_color, and BC_WindowBase::get_resources().

Here is the call graph for this function:

BC_Title::~BC_Title (  )  [virtual]

Definition at line 26 of file bctitle.C.


Member Function Documentation

int BC_Title::initialize (  )  [virtual]

Reimplemented from BC_SubWindow.

Definition at line 31 of file bctitle.C.

References centered, draw(), fixed_w, font, get_size(), BC_WindowBase::h, BC_SubWindow::initialize(), text, BC_WindowBase::w, and BC_WindowBase::x.

Here is the call graph for this function:

int BC_Title::calculate_w ( BC_WindowBase gui,
char *  text,
int  font = MEDIUMFONT 
) [static]

Definition at line 143 of file bctitle.C.

References get_size().

Referenced by MenuEffectPrompt::calculate_w().

Here is the call graph for this function:

int BC_Title::calculate_h ( BC_WindowBase gui,
char *  text,
int  font = MEDIUMFONT 
) [static]

Definition at line 150 of file bctitle.C.

References get_size().

Referenced by MenuEffectPrompt::calculate_h(), RecordGUI::create_objects(), and CWindowCropGUI::create_objects().

Here is the call graph for this function:

int BC_Title::resize ( int  w,
int  h 
)

Definition at line 50 of file bctitle.C.

References draw(), and BC_WindowBase::resize_window().

Here is the call graph for this function:

int BC_Title::reposition ( int  x,
int  y 
)

Definition at line 57 of file bctitle.C.

References draw(), BC_WindowBase::h, BC_WindowBase::reposition_window(), and BC_WindowBase::w.

Here is the call graph for this function:

int BC_Title::set_color ( int  color  ) 

Definition at line 43 of file bctitle.C.

References draw().

Referenced by StatusBar::default_message(), and MWindowGUI::show_message().

Here is the call graph for this function:

int BC_Title::update ( char *  text  ) 

void BC_Title::update ( float  value  ) 

Definition at line 79 of file bctitle.C.

References BCTEXTLEN, and update().

Here is the call graph for this function:

char * BC_Title::get_text (  ) 

Definition at line 86 of file bctitle.C.

References text.

Referenced by ManualGoto::run().

int BC_Title::draw (  )  [private]

void BC_Title::get_size ( BC_WindowBase gui,
int  font,
char *  text,
int  fixed_w,
int &  w,
int &  h 
) [static, private]

Definition at line 159 of file bctitle.C.

References BC_WindowBase::get_text_height(), BC_WindowBase::get_text_width(), BC_WindowBase::x, and BC_WindowBase::y.

Referenced by calculate_h(), calculate_w(), initialize(), and update().

Here is the call graph for this function:


Field Documentation

char BC_Title::text[BCTEXTLEN] [private]

Definition at line 34 of file bctitle.h.

Referenced by draw(), get_text(), and initialize().

int BC_Title::color [private]

Definition at line 35 of file bctitle.h.

Referenced by draw().

int BC_Title::font [private]

Definition at line 36 of file bctitle.h.

Referenced by draw(), initialize(), and update().

int BC_Title::centered [private]

Definition at line 37 of file bctitle.h.

Referenced by draw(), and initialize().

int BC_Title::fixed_w [private]

Definition at line 39 of file bctitle.h.

Referenced by initialize(), and update().


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

Generated on Mon Apr 28 14:15:55 2008 for Cinelerra by  doxygen 1.5.5