MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / draw

Method draw

src/csvwidgets.cpp:199–212  ·  view source on GitHub ↗

* Draws the Button * col Background color * c Label color */

Source from the content-addressed store, hash-verified

197 * c Label color
198 */
199void My_Fl_Button::draw() {
200 if (type() == FL_HIDDEN_BUTTON) return;
201 #ifdef __APPLE__
202 rbox(colors, x(),y(), w(),h());
203 #else
204 rbox(colors, x(),y(), w(),h(), false);
205 #endif
206 Fl_Color c = labelcolor();
207 labelcolor(colors.label);
208 draw_label();
209 labelcolor(c);
210 if (Fl::focus() == this)
211 draw_focus();
212}
213
214
215

Callers

nothing calls this directly

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected