MCPcopy Create free account
hub / github.com/dillo-browser/dillo / make_button

Method make_button

src/ui.cc:388–406  ·  view source on GitHub ↗

* Make a generic navigation button */

Source from the content-addressed store, hash-verified

386 * Make a generic navigation button
387 */
388CustButton *UI::make_button(const char *label, Fl_Image *img, Fl_Image *deimg,
389 int b_n, int start)
390{
391 if (start)
392 p_xpos = 0;
393
394 CustButton *b = new CustButton(p_xpos, 0, bw, bh, (lbl) ? label : NULL);
395 if (img)
396 b->image(img);
397 if (deimg)
398 b->deimage(deimg);
399 b->callback(b1_cb, INT2VOIDP(b_n));
400 b->clear_visible_focus();
401 b->labelsize(12);
402 b->box(FL_FLAT_BOX);
403 b->down_box(FL_THIN_DOWN_FRAME);
404 p_xpos += bw;
405 return b;
406}
407
408/**
409 * Create the archetipic browser buttons

Callers

nothing calls this directly

Calls 1

down_boxMethod · 0.80

Tested by

no test coverage detected