/*! \brief Draw grip marks on line. * \par Function Description * This function draws the grips on the line object <B>o_current</B>. * * A line has a grip at each end. * * \param [in] w_current The GSCHEM_TOPLEVEL object. * \param [in] o_current Line OBJECT to draw grip points on. */ void o_line_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current) { if (w_current->draw_grips == FALSE) return; /* draw the grip on line end 1 */ o_grips_draw(w_current, o_current->line->x[0], o_current->line->y[0]); /* draw the grip on line end 2 */ o_grips_draw(w_current, o_current->line->x[1], o_current->line->y[1]); }
/*! \brief Draw grip marks on box. * \par Function Description * This function draws four grips on the corners of the box described * by <B>*o_current</B>. * * \param [in] w_current The GSCHEM_TOPLEVEL object. * \param [in] o_current Box OBJECT to draw grip points on. */ void o_box_draw_grips(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current) { if (w_current->draw_grips == FALSE) return; /* grip on upper left corner (whichone = BOX_UPPER_LEFT) */ o_grips_draw (w_current, o_current->box->upper_x, o_current->box->upper_y); /* grip on upper right corner (whichone = BOX_UPPER_RIGHT) */ o_grips_draw (w_current, o_current->box->lower_x, o_current->box->upper_y); /* grip on lower left corner (whichone = BOX_LOWER_LEFT) */ o_grips_draw (w_current, o_current->box->upper_x, o_current->box->lower_y); /* grip on lower right corner (whichone = BOX_LOWER_RIGHT) */ o_grips_draw (w_current, o_current->box->lower_x, o_current->box->lower_y); }