#include <bcprogress.h>
Inherits BC_SubWindow.

Public Member Functions | |
| BC_ProgressBar (int x, int y, int w, int64_t length, int do_text=1) | |
| ~BC_ProgressBar () | |
| int | initialize () |
| int | reposition_window (int x, int y, int w=-1, int h=-1) |
| void | set_do_text (int value) |
| int | update (int64_t position) |
| int | update_length (int64_t length) |
| int | set_images () |
Private Member Functions | |
| int | draw (int force=0) |
Private Attributes | |
| int64_t | length |
| int64_t | position |
| int | pixel |
| int | do_text |
| BC_Pixmap * | images [2] |
Definition at line 6 of file bcprogress.h.
| BC_ProgressBar::BC_ProgressBar | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int64_t | length, | |||
| int | do_text = 1 | |||
| ) |
| BC_ProgressBar::~BC_ProgressBar | ( | ) |
| int BC_ProgressBar::initialize | ( | ) | [virtual] |
Reimplemented from BC_SubWindow.
Definition at line 30 of file bcprogress.C.
References draw(), BC_Pixmap::get_h(), BC_WindowBase::h, images, BC_SubWindow::initialize(), PROGRESS_UP, and set_images().

| int BC_ProgressBar::reposition_window | ( | int | x, | |
| int | y, | |||
| int | w = -1, |
|||
| int | h = -1 | |||
| ) |
Reimplemented from BC_WindowBase.
Definition at line 40 of file bcprogress.C.
References draw(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), and BC_WindowBase::reposition_window().
Referenced by StatusBar::resize_event().

| void BC_ProgressBar::set_do_text | ( | int | value | ) |
| int BC_ProgressBar::update | ( | int64_t | position | ) |
Definition at line 96 of file bcprogress.C.
References draw().
Referenced by MWindow::init_plugin_path(), MainProgressBar::stop_progress(), BC_ProgressBox::update(), and MainProgressBar::update().

| int BC_ProgressBar::update_length | ( | int64_t | length | ) |
Definition at line 103 of file bcprogress.C.
References draw(), and position.
Referenced by MWindow::init_plugins(), MainProgress::start_progress(), BC_ProgressBox::update_length(), and MainProgressBar::update_length().

| int BC_ProgressBar::set_images | ( | ) |
Definition at line 53 of file bcprogress.C.
References BC_WindowBase::BC_Pixmap, BC_WindowBase::get_resources(), images, and BC_WindowBase::parent_window.
Referenced by initialize().

| int BC_ProgressBar::draw | ( | int | force = 0 |
) | [private] |
Definition at line 68 of file bcprogress.C.
References do_text, BC_WindowBase::draw_3segmenth(), BC_WindowBase::draw_center_text(), BC_WindowBase::draw_top_background(), BC_WindowBase::flash(), BC_WindowBase::get_h(), BC_WindowBase::get_resources(), BC_WindowBase::get_text_ascent(), BC_WindowBase::get_w(), BC_WindowBase::h, images, length, MEDIUMFONT, BC_WindowBase::parent_window, pixel, position, PROGRESS_HI, PROGRESS_UP, BC_WindowBase::set_color(), BC_WindowBase::set_font(), and BC_WindowBase::w.
Referenced by initialize(), reposition_window(), update(), and update_length().

int64_t BC_ProgressBar::length [private] |
int64_t BC_ProgressBar::position [private] |
Definition at line 23 of file bcprogress.h.
Referenced by BC_ProgressBar(), draw(), and update_length().
int BC_ProgressBar::pixel [private] |
int BC_ProgressBar::do_text [private] |
BC_Pixmap* BC_ProgressBar::images[2] [private] |
Definition at line 26 of file bcprogress.h.
Referenced by BC_ProgressBar(), draw(), initialize(), set_images(), and ~BC_ProgressBar().
1.5.5