r1009: Move the dependencies to newer package names
[cinelerra_cv/mob.git] / guicast / bctitle.h
blob2999fdd1c0af805ce96ddaa173b23e05573b2661
1 #ifndef BCTITLE_H
2 #define BCTITLE_H
4 #include "bcsubwindow.h"
5 #include "colors.h"
6 #include "fonts.h"
8 class BC_Title : public BC_SubWindow
10 public:
11 BC_Title(int x,
12 int y,
13 char *text,
14 int font = MEDIUMFONT,
15 int color = -1,
16 int centered = 0,
17 int fixed_w = 0);
18 virtual ~BC_Title();
20 int initialize();
21 static int calculate_w(BC_WindowBase *gui, char *text, int font = MEDIUMFONT);
22 static int calculate_h(BC_WindowBase *gui, char *text, int font = MEDIUMFONT);
23 int resize(int w, int h);
24 int reposition(int x, int y);
25 int set_color(int color);
26 int update(char *text);
27 void update(float value);
28 char* get_text();
30 private:
31 int draw();
32 static void get_size(BC_WindowBase *gui, int font, char *text, int fixed_w, int &w, int &h);
34 char text[BCTEXTLEN];
35 int color;
36 int font;
37 int centered;
38 // Width if fixed
39 int fixed_w;
42 #endif