本文整理汇总了C++中Fl_Box::label_font方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Box::label_font方法的具体用法?C++ Fl_Box::label_font怎么用?C++ Fl_Box::label_font使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Box
的用法示例。
在下文中一共展示了Fl_Box::label_font方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: make_about_panel
Fl_Window* make_about_panel(const char *copyright) {
Fl_Window* w;
{Fl_Window* o = about_panel = new Fl_Window(330, 276, _("About eFluid"));
w = o;
o->type(240);
o->selection_color((Fl_Color)47);
o->shortcut(0xff1b);
{Fl_Group* o = display_group = new Fl_Group(0, 0, 330, 240);
{Fl_Group* o = new Fl_Group(5, 5, 320, 55, _("eFluid"));
o->box(FL_ENGRAVED_BOX);
o->label_font(fl_fonts+1);
o->label_type(FL_EMBOSSED_LABEL);
o->color((Fl_Color)0xb3b3be00);
o->label_color((Fl_Color)32);
o->selection_color((Fl_Color)47);
o->label_size(40);
o->align(FL_ALIGN_INSIDE);
o->end();
}
{Fl_Button* o = new Fl_Button(5, 165, 320, 70, _("\302\251""2002-2003\nClick here for more information"));
o->box(FL_ENGRAVED_BOX);
o->label_font(fl_fonts+1);
o->color((Fl_Color)0xb3b3be00);
o->label_color((Fl_Color)32);
o->highlight_color((Fl_Color)0x9d9da700);
o->highlight_label_color((Fl_Color)55);
o->label_size(14);
o->callback((Fl_Callback*)cb_2002);
o->align(FL_ALIGN_WRAP);
}
{Fl_Box* o = new Fl_Box(5, 60, 320, 105, _("EFLTK User Interface Designer\nVersion 2.0.3"));
o->box(FL_ENGRAVED_BOX);
o->label_font(fl_fonts+1);
o->label_type(FL_EMBOSSED_LABEL);
o->color((Fl_Color)0xb3b3be00);
o->label_color((Fl_Color)32);
o->selection_color((Fl_Color)47);
o->label_size(18);
}
o->end();
}
{Fl_Box* o = copyright_box = new Fl_Box(0, 0, 330, 240);
o->label_size(10);
o->align(FL_ALIGN_TOP|FL_ALIGN_LEFT|FL_ALIGN_INSIDE|FL_ALIGN_CLIP|FL_ALIGN_WRAP);
o->hide();
o->label(copyright);
}
{Fl_Return_Button* o = new Fl_Return_Button(5, 245, 320, 25, _("OK"));
o->label_size(10);
o->shortcut(0xff0d);
o->callback((Fl_Callback*)cb_OK);
}
o->end();
}
return w;
}
示例2: main
int main(int argc, char **argv)
{
Fl_Window *window = new Fl_Window(20,20,300,180);
//Set type to DIALOG
window->window_type(Fl_WM::DIALOG);
window->begin();
Fl_Box *box = new Fl_Box(20,40,260,100,"Hello World");
box->box(FL_UP_BOX);
box->label_font(FL_HELVETICA_BOLD_ITALIC);
box->label_size(36);
box->label_type(FL_SHADOW_LABEL);
window->end();
window->show(argc, argv);
return Fl::run();
}
示例3: main
int main(int argc, char** argv)
{
// Check config option, if showing is disabled, exit
Fl_Config conf("EDE Team", "etip");
if(argc == 2 && (!strcmp(argv[1], "-f") || !strcmp(argv[1], "--force")))
{
// nothing, to simplify omiting those '!'
}
else
{
bool show = true;
conf.set_section("Tips");
conf.read("Show", show, true);
if (!show)
return 0;
}
conf_global = &conf;
srand(time(NULL));
fl_init_locale_support("etip", PREFIX"/share/locale");
Fl_Window* win = new Fl_Window(420, 169, _("Tips..."));
win->shortcut(0xff1b);
win->begin();
Fl_Group* gr = new Fl_Group(5, 5, 410, 130);
gr->box(FL_DOWN_BOX);
Fl_Box* img = new Fl_Box(5, 5, 70, 65);
Fl_Image pix(hint_xpm);
img->image(pix);
Fl_Box* title = new Fl_Box(80, 10, 320, 25, random_txt(title_tips, TITLE_TIPS_NUM));
title->label_font(fl_fonts+1);
title->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
title->box(FL_FLAT_BOX);
Fl_Box* tiptxt = new Fl_Box(80, 45, 320, 75, random_txt(tiplist, TIPS_NUM));
tiptxt->align(FL_ALIGN_LEFT|FL_ALIGN_TOP|FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
tiptxt->box(FL_FLAT_BOX);
gr->end();
Fl_Check_Button* ch = new Fl_Check_Button(5, 140, 150, 25, _(" Do not bother me"));
show_check = ch;
Fl_Button* prev = new Fl_Button(160, 140, 80, 25, "<-");
prev->label_font(fl_fonts+1);
prev->callback(prev_cb, tiptxt);
Fl_Button* next = new Fl_Button(245, 140, 80, 25, "->");
next->label_font(fl_fonts+1);
next->callback(next_cb, tiptxt);
Fl_Button* close = new Fl_Button(335, 140, 80, 25, _("&Close"));
close->callback(close_cb, win);
win->end();
win->set_modal();
win->show();
return Fl::run();
}
示例4:
SciCalc::SciCalc() {
Fl_Window* w;
{Fl_Window* o = win = new Fl_Window(181, 262, "eCalc");
w = o;
o->label_type(FL_NO_LABEL);
o->shortcut(0xff1b);
o->user_data((void*)(this));
o->align();
{Fl_Box* o = leddisplay = new Fl_Box(2, 2, 176, 24, "Welcome");
o->box(FL_THIN_DOWN_BOX);
o->label_font(fl_fonts+4);
o->color((Fl_Color)207);
o->label_color((Fl_Color)59);
o->label_size(14);
o->callback((Fl_Callback*)cb_leddisplay);
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
}
{Fl_Box* o = box_DEGRAD = new Fl_Box(24, 28, 35, 16);
o->box(FL_THIN_DOWN_BOX);
o->label_color((Fl_Color)1);
o->label_size(9);
o->callback((Fl_Callback*)cb_box_DEGRAD);
o->align(FL_ALIGN_INSIDE);
}
{Fl_Box* o = box_bracket = new Fl_Box(59, 28, 65, 16);
o->box(FL_THIN_DOWN_BOX);
o->label_color((Fl_Color)1);
o->label_size(9);
o->align(FL_ALIGN_INSIDE);
}
{Fl_Box* o = box_M = new Fl_Box(124, 28, 35, 16);
o->box(FL_THIN_DOWN_BOX);
o->label_color((Fl_Color)1);
o->label_size(9);
o->callback((Fl_Callback*)cb_box_M);
o->align(FL_ALIGN_INSIDE);
}
{Fl_Group* o = new Fl_Group(46, 46, 93, 22);
o->color((Fl_Color)46);
{Fl_Button* o = radio_2 = new Fl_Button(3, 3, 20, 15, "2");
o->type(Fl_Button::RADIO);
o->label_color((Fl_Color)1);
o->label_size(10);
o->shortcut(0x40062);
o->callback((Fl_Callback*)cb_radio_2);
o->tooltip("Binary mode");
}
{Fl_Button* o = radio_8 = new Fl_Button(24, 3, 21, 15, "8");
o->type(Fl_Button::RADIO);
o->label_color((Fl_Color)1);
o->label_size(10);
o->shortcut(0x4006f);
o->callback((Fl_Callback*)cb_radio_8);
o->tooltip("Octal mode");
}
{Fl_Button* o = radio_10 = new Fl_Button(46, 3, 21, 15, "10");
o->type(Fl_Button::RADIO);
o->label_color((Fl_Color)1);
o->label_size(10);
o->shortcut(0x40064);
o->value(1);
o->callback((Fl_Callback*)cb_radio_10);
o->tooltip("Decimal mode");
}
{Fl_Button* o = radio_16 = new Fl_Button(68, 3, 21, 15, "16");
o->type(Fl_Button::RADIO);
o->label_color((Fl_Color)1);
o->label_size(10);
o->shortcut(0x40068);
o->callback((Fl_Callback*)cb_radio_16);
o->tooltip("Hex mode");
}
o->end();
}
{Fl_Group* o = new Fl_Group(3, 163, 107, 94);
o->box(FL_BORDER_BOX);
o->color((Fl_Color)43);
{Fl_Button* o = but_7 = new Fl_Button(3, 4, 32, 20, "7");
o->label_font(fl_fonts+1);
o->label_size(14);
o->shortcut(0x37);
o->callback((Fl_Callback*)cb_but_7);
}
{Fl_Button* o = but_8 = new Fl_Button(38, 4, 32, 20, "8");
o->label_font(fl_fonts+1);
o->label_size(14);
o->shortcut(0x38);
o->callback((Fl_Callback*)cb_but_8);
}
{Fl_Button* o = but_9 = new Fl_Button(72, 4, 32, 20, "9");
o->label_font(fl_fonts+1);
o->label_size(14);
o->shortcut(0x39);
o->callback((Fl_Callback*)cb_but_9);
}
{Fl_Button* o = but_4 = new Fl_Button(3, 26, 32, 20, "4");
o->label_font(fl_fonts+1);
o->label_size(14);
o->shortcut(0x34);
o->callback((Fl_Callback*)cb_but_4);
//.........这里部分代码省略.........