void Button::draw(GraphicContext& gc) { switch(state) { case UP: if (hover) gc.blit(hover_surface, Point(0, 0)); else gc.blit(up_surface, Point(0, 0)); break; case DOWN: gc.blit(up_surface, Point(0, 0)); break; } gc.blit(icon, Point(6, 6)); }
void SaturationValuePicker::draw(GraphicContext& gc) { gc.blit(surface, Point(0, 0)); gc.draw_line(Point(click_pos.x, 0), Point(click_pos.x, get_rect().get_height()), Color(0, 0, 0)); gc.draw_line(Point(0, click_pos.y), Point(get_rect().get_width(), click_pos.y), Color(0, 0, 0)); }
void Navigation::draw(GraphicContext& gc) { gc.blit(surface, Point(0, 0)); }