[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-408-g4364468)
The branch, master has been updated
via 43644681ba1486a5dec10fcfcdad36432ecc071c (commit)
from 67daa4d705d62d16133feb2d9a3a77cacb9b34de (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
gschem/include/prototype.h | 1 +
gschem/src/o_grips.c | 45 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 0 deletions(-)
=================
Commit Messages
=================
commit 43644681ba1486a5dec10fcfcdad36432ecc071c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Dec 20 06:36:58 2008 +0000
gschem: Add function o_grips_rubbergrip_xor() to repaint XOR objects
This function will be useful to recreate the on-screen state during
an expose event when using an invalidate / expose drawing model.
:100644 100644 e839e97... 6e1a5a2... M gschem/include/prototype.h
:100644 100644 0634fc1... ffc4026... M gschem/src/o_grips.c
=========
Changes
=========
commit 43644681ba1486a5dec10fcfcdad36432ecc071c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date: Sat Dec 20 06:36:58 2008 +0000
gschem: Add function o_grips_rubbergrip_xor() to repaint XOR objects
This function will be useful to recreate the on-screen state during
an expose event when using an invalidate / expose drawing model.
diff --git a/gschem/include/prototype.h b/gschem/include/prototype.h
index e839e97..6e1a5a2 100644
--- a/gschem/include/prototype.h
+++ b/gschem/include/prototype.h
@@ -603,6 +603,7 @@ void o_grips_end_bus(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, int whichone
int o_grips_size(GSCHEM_TOPLEVEL *w_current);
void o_grips_draw(GSCHEM_TOPLEVEL *w_current, int x, int y);
void o_grips_erase(GSCHEM_TOPLEVEL *w_current, int x, int y);
+void o_grips_rubbergrip_xor(GSCHEM_TOPLEVEL *w_current);
/* o_line.c */
void o_line_draw(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current);
void o_line_draw_solid(GdkWindow *w, GdkGC *gc, GdkColor *color, GdkCapStyle cap, gint x1, gint y1, gint x2, gint y2, gint line_width, gint length, gint space);
diff --git a/gschem/src/o_grips.c b/gschem/src/o_grips.c
index 0634fc1..ffc4026 100644
--- a/gschem/src/o_grips.c
+++ b/gschem/src/o_grips.c
@@ -1651,3 +1651,48 @@ void o_grips_erase(GSCHEM_TOPLEVEL *w_current, int x, int y)
/* return to default */
toplevel->override_color = -1;
}
+
+
+/*! \brief Draw objects being grip maniuplated from GSCHEM_TOPLEVEL object.
+ *
+ * \par Function Description
+ * This function draws the objects being grip manipulated.
+ *
+ * \param [in] w_current The GSCHEM_TOPLEVEL object.
+ */
+void o_grips_rubbergrip_xor (GSCHEM_TOPLEVEL *w_current)
+{
+ g_return_if_fail (w_current->which_object != NULL);
+
+ switch(w_current->which_object->type) {
+ case OBJ_ARC:
+ o_arc_rubberarc_xor (w_current);
+ break;
+
+ case OBJ_BOX:
+ o_box_rubberbox_xor (w_current);
+ break;
+
+ case OBJ_PATH:
+ o_path_rubberpath_xor (w_current);
+ break;
+
+ case OBJ_PICTURE:
+ o_picture_rubberbox_xor (w_current);
+ break;
+
+ case OBJ_CIRCLE:
+ o_circle_rubbercircle_xor (w_current);
+ break;
+
+ case OBJ_LINE:
+ case OBJ_NET:
+ case OBJ_PIN:
+ case OBJ_BUS:
+ o_line_rubberline_xor (w_current);
+ break;
+
+ default:
+ return; /* error condition */
+ }
+}
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs