#include <bctitle.h>
Inherits BC_SubWindow.
Inherited by MainClock.

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 |
Definition at line 8 of file bctitle.h.
| 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().

| 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.

| 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().

| 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().

| int BC_Title::resize | ( | int | w, | |
| int | h | |||
| ) |
Definition at line 50 of file bctitle.C.
References draw(), and BC_WindowBase::resize_window().

| 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.

| 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().

| int BC_Title::update | ( | char * | text | ) |
Definition at line 65 of file bctitle.C.
References draw(), fixed_w, font, get_size(), BC_WindowBase::h, BC_WindowBase::resize_window(), and BC_WindowBase::w.
Referenced by MWindow::create_objects(), StatusBar::default_message(), PlaybackPrefs::draw_framerate(), PrefsRenderFarmReset::handle_event(), MWindow::init_plugin_path(), ManualGotoNumber::keypress_event(), main(), TipWindow::next_tip(), TipWindow::prev_tip(), ManualGotoWindow::reset_data(), NewSvgButton::run(), RecordStatusThread::run(), AVC1394TransportThread::run(), StatusBar::set_message(), MWindowGUI::show_message(), update(), MainClock::update(), CWindowEyedropGUI::update(), ZoomBar::update_playback(), BC_ProgressBox::update_title(), and RecordGUI::update_title().

| void BC_Title::update | ( | float | value | ) |
| char * BC_Title::get_text | ( | ) |
| int BC_Title::draw | ( | ) | [private] |
Definition at line 91 of file bctitle.C.
References BLACK, centered, color, BC_WindowBase::draw_box(), BC_WindowBase::draw_center_text(), BC_Resources::draw_clock_background, BC_WindowBase::draw_text(), BC_WindowBase::draw_top_background(), BC_WindowBase::flash(), BC_WindowBase::flush(), font, BC_WindowBase::get_resources(), BC_WindowBase::get_text_ascent(), BC_WindowBase::get_text_height(), BC_WindowBase::get_w(), BC_WindowBase::h, MEDIUM_7SEGMENT, MEDIUMFONT, BC_WindowBase::parent_window, BC_WindowBase::set_color(), BC_WindowBase::set_font(), text, BC_WindowBase::top_level, BC_WindowBase::w, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by initialize(), reposition(), resize(), set_color(), and update().

| 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().

char BC_Title::text[BCTEXTLEN] [private] |
int BC_Title::color [private] |
int BC_Title::font [private] |
int BC_Title::centered [private] |
int BC_Title::fixed_w [private] |
1.5.5