| 1 | #cxx . . $ `<file>/demo/mv-demo-arrowhead.c`/include <config.h>cxx . . $ `<file>/config.h`/ |
| 2 | #include <glib/gi18n.h> |
| 3 | #include <gtk/gtk.h> |
| 4 | #include <goocanvas.h>cxx . . $ `<file>/src/goocanvas.h`/ |
| 5 | |
| 6 | #define LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`! 50.0 |
| 7 | #define RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! 350.0 |
| 8 | #define MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! 150.0 |
| 9 | #define DEFAULT_WIDTHcxx . . $ `demo/mv-demo-arrowhead.c:9:9`! 2 |
| 10 | #define DEFAULT_SHAPE_Acxx . . $ `demo/mv-demo-arrowhead.c:10:9`! 4 |
| 11 | #define DEFAULT_SHAPE_Bcxx . . $ `demo/mv-demo-arrowhead.c:11:9`! 5 |
| 12 | #define DEFAULT_SHAPE_Ccxx . . $ `demo/mv-demo-arrowhead.c:12:9`! 4 |
| 13 | |
| 14 | |
| 15 | static void |
| 16 | set_dimensioncxx . . $ set_dimension(81bd3f4406cd24fd). (GooCanvascxx . . $ GooCanvas# *canvas, char *arrow_name, char *text_name, |
| 17 | double x1, double y1, double x2, double y2, |
| 18 | double tx, double ty, int dim) |
| 19 | { |
| 20 | GooCanvasPointscxx . . $ GooCanvasPoints# *points; |
| 21 | char buf[100]; |
| 22 | |
| 23 | points = goo_canvas_points_newcxx . . $ goo_canvas_points_new(917271c98bfa43a4). (2); |
| 24 | points->coordscxx . . $ _GooCanvasPoints#coords.[0] = x1; |
| 25 | points->coordscxx . . $ _GooCanvasPoints#coords.[1] = y1; |
| 26 | points->coordscxx . . $ _GooCanvasPoints#coords.[2] = x2; |
| 27 | points->coordscxx . . $ _GooCanvasPoints#coords.[3] = y2; |
| 28 | |
| 29 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), arrow_name), |
| 30 | "points", points, |
| 31 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 32 | |
| 33 | sprintfcxx . . $ sprintf(26c8642d26409d6d). (buf, "%d", dim); |
| 34 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), text_name), |
| 35 | "text", buf, |
| 36 | "x", tx, |
| 37 | "y", ty, |
| 38 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 39 | |
| 40 | goo_canvas_points_unrefcxx . . $ goo_canvas_points_unref(54d111ab8a8ff766). (points); |
| 41 | } |
| 42 | |
| 43 | static void |
| 44 | move_drag_boxcxx . . $ move_drag_box(e265ce1cccd7ae25). (GooCanvasItemcxx . . $ GooCanvasItem# *item, double x, double y) |
| 45 | { |
| 46 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (item, |
| 47 | "x", x - 5.0, |
| 48 | "y", y - 5.0, |
| 49 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | static void |
| 54 | set_arrow_shapecxx . . $ set_arrow_shape(b9f56778c178595d). (GooCanvascxx . . $ GooCanvas# *canvas) |
| 55 | { |
| 56 | int width; |
| 57 | int shape_a, shape_b, shape_c; |
| 58 | GooCanvasPointscxx . . $ GooCanvasPoints# *points; |
| 59 | char buf[100]; |
| 60 | |
| 61 | width = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width")); |
| 62 | shape_a = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a")); |
| 63 | shape_b = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b")); |
| 64 | shape_c = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_c")); |
| 65 | |
| 66 | /* Big arrow */ |
| 67 | |
| 68 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "big_arrow"), |
| 69 | "line-width", 10.0 * width, |
| 70 | "arrow-tip-length", (double) (shape_a), |
| 71 | "arrow-length", (double) (shape_b), |
| 72 | "arrow-width", (double) (shape_c), |
| 73 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 74 | |
| 75 | /* Outline */ |
| 76 | |
| 77 | points = goo_canvas_points_newcxx . . $ goo_canvas_points_new(917271c98bfa43a4). (5); |
| 78 | points->coordscxx . . $ _GooCanvasPoints#coords.[0] = RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_a * width; |
| 79 | points->coordscxx . . $ _GooCanvasPoints#coords.[1] = MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * width / 2; |
| 80 | points->coordscxx . . $ _GooCanvasPoints#coords.[2] = RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_b * width; |
| 81 | points->coordscxx . . $ _GooCanvasPoints#coords.[3] = MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * (shape_c * width / 2.0); |
| 82 | points->coordscxx . . $ _GooCanvasPoints#coords.[4] = RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`!; |
| 83 | points->coordscxx . . $ _GooCanvasPoints#coords.[5] = MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!; |
| 84 | points->coordscxx . . $ _GooCanvasPoints#coords.[6] = points->coordscxx . . $ _GooCanvasPoints#coords.[2]; |
| 85 | points->coordscxx . . $ _GooCanvasPoints#coords.[7] = MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0); |
| 86 | points->coordscxx . . $ _GooCanvasPoints#coords.[8] = points->coordscxx . . $ _GooCanvasPoints#coords.[0]; |
| 87 | points->coordscxx . . $ _GooCanvasPoints#coords.[9] = MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * width / 2; |
| 88 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "outline"), |
| 89 | "points", points, |
| 90 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 91 | goo_canvas_points_unrefcxx . . $ goo_canvas_points_unref(54d111ab8a8ff766). (points); |
| 92 | |
| 93 | /* Drag boxes */ |
| 94 | |
| 95 | move_drag_boxcxx . . $ move_drag_box(e265ce1cccd7ae25). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width_drag_box"), |
| 96 | LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, |
| 97 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * width / 2.0); |
| 98 | |
| 99 | move_drag_boxcxx . . $ move_drag_box(e265ce1cccd7ae25). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a_drag_box"), |
| 100 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_a * width, |
| 101 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!); |
| 102 | |
| 103 | move_drag_boxcxx . . $ move_drag_box(e265ce1cccd7ae25). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b_c_drag_box"), |
| 104 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_b * width, |
| 105 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * (shape_c * width / 2.0)); |
| 106 | |
| 107 | /* Dimensions */ |
| 108 | |
| 109 | set_dimensioncxx . . $ set_dimension(81bd3f4406cd24fd). (canvas, "width_arrow", "width_text", |
| 110 | LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`! - 10, |
| 111 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * width / 2.0, |
| 112 | LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`! - 10, |
| 113 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * width / 2.0, |
| 114 | LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`! - 15, |
| 115 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!, |
| 116 | width); |
| 117 | |
| 118 | set_dimensioncxx . . $ set_dimension(81bd3f4406cd24fd). (canvas, "shape_a_arrow", "shape_a_text", |
| 119 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_a * width, |
| 120 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 10, |
| 121 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`!, |
| 122 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 10, |
| 123 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_a * width / 2.0, |
| 124 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 15, |
| 125 | shape_a); |
| 126 | |
| 127 | set_dimensioncxx . . $ set_dimension(81bd3f4406cd24fd). (canvas, "shape_b_arrow", "shape_b_text", |
| 128 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_b * width, |
| 129 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 35, |
| 130 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`!, |
| 131 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 35, |
| 132 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - 10 * shape_b * width / 2.0, |
| 133 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * (shape_c * width / 2.0) + 40, |
| 134 | shape_b); |
| 135 | |
| 136 | set_dimensioncxx . . $ set_dimension(81bd3f4406cd24fd). (canvas, "shape_c_arrow", "shape_c_text", |
| 137 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 10, |
| 138 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 10 * shape_c * width / 2.0, |
| 139 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 10, |
| 140 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 10 * shape_c * width / 2.0, |
| 141 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 15, |
| 142 | MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!, |
| 143 | shape_c); |
| 144 | |
| 145 | /* Info */ |
| 146 | |
| 147 | sprintfcxx . . $ sprintf(26c8642d26409d6d). (buf, "line-width: %d", width); |
| 148 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width_info"), |
| 149 | "text", buf, |
| 150 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 151 | |
| 152 | sprintfcxx . . $ sprintf(26c8642d26409d6d). (buf, "arrow-tip-length: %d (* line-width)", shape_a); |
| 153 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a_info"), |
| 154 | "text", buf, |
| 155 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 156 | |
| 157 | sprintfcxx . . $ sprintf(26c8642d26409d6d). (buf, "arrow-length: %d (* line-width)", shape_b); |
| 158 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b_info"), |
| 159 | "text", buf, |
| 160 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 161 | sprintfcxx . . $ sprintf(26c8642d26409d6d). (buf, "arrow-width: %d (* line-width)", shape_c); |
| 162 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_c_info"), |
| 163 | "text", buf, |
| 164 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 165 | |
| 166 | /* Sample arrows */ |
| 167 | |
| 168 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "sample_1"), |
| 169 | "line-width", (double) width, |
| 170 | "arrow-tip-length", (double) shape_a, |
| 171 | "arrow-length", (double) shape_b, |
| 172 | "arrow-width", (double) shape_c, |
| 173 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 174 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "sample_2"), |
| 175 | "line-width", (double) width, |
| 176 | "arrow-tip-length", (double) shape_a, |
| 177 | "arrow-length", (double) shape_b, |
| 178 | "arrow-width", (double) shape_c, |
| 179 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 180 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "sample_3"), |
| 181 | "line-width", (double) width, |
| 182 | "arrow-tip-length", (double) shape_a, |
| 183 | "arrow-length", (double) shape_b, |
| 184 | "arrow-width", (double) shape_c, |
| 185 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 186 | } |
| 187 | |
| 188 | |
| 189 | static void |
| 190 | create_drag_boxcxx . . $ create_drag_box(df4eaf8a638ac8f1). (GtkWidgetcxx . . $ GtkWidget# *canvas, |
| 191 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *root, |
| 192 | char *box_name) |
| 193 | { |
| 194 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *box; |
| 195 | |
| 196 | box = goo_canvas_rect_model_newcxx . . $ goo_canvas_rect_model_new(350e94a866f63a3b). (root, 0, 0, 10, 10, |
| 197 | "fill_color", "black", |
| 198 | "stroke_color", "black", |
| 199 | "line_width", 1.0, |
| 200 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 201 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), box_name, box); |
| 202 | } |
| 203 | |
| 204 | |
| 205 | static void |
| 206 | create_dimensioncxx . . $ create_dimension(d682dadf4ab03d88). (GtkWidgetcxx . . $ GtkWidget# *canvas, |
| 207 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *root, |
| 208 | char *arrow_name, |
| 209 | char *text_name, |
| 210 | GooCanvasAnchorTypecxx . . $ GooCanvasAnchorType# anchor) |
| 211 | { |
| 212 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *item; |
| 213 | |
| 214 | item = goo_canvas_polyline_model_newcxx . . $ goo_canvas_polyline_model_new(2503739ef475d46e). (root, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, 0, |
| 215 | "fill_color", "black", |
| 216 | "start-arrow", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 217 | "end-arrow", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 218 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 219 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), arrow_name, item); |
| 220 | |
| 221 | item = goo_canvas_text_model_newcxx . . $ goo_canvas_text_model_new(88e948b2607c9cf0). (root, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, 0, 0, -1, anchor, |
| 222 | "fill_color", "black", |
| 223 | "font", "Sans 12", |
| 224 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 225 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), text_name, item); |
| 226 | } |
| 227 | |
| 228 | static void |
| 229 | create_infocxx . . $ create_info(8fb1ad9fddc458fc). (GtkWidgetcxx . . $ GtkWidget# *canvas, |
| 230 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *root, |
| 231 | char *info_name, |
| 232 | double x, |
| 233 | double y) |
| 234 | { |
| 235 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *item; |
| 236 | |
| 237 | item = goo_canvas_text_model_newcxx . . $ goo_canvas_text_model_new(88e948b2607c9cf0). (root, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, x, y, -1, GOO_CANVAS_ANCHOR_NWcxx . . $ GOO_CANVAS_ANCHOR_NW., |
| 238 | "fill_color", "black", |
| 239 | "font", "Sans 14", |
| 240 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 241 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), info_name, item); |
| 242 | } |
| 243 | |
| 244 | static void |
| 245 | create_sample_arrowcxx . . $ create_sample_arrow(5a286fc43846d667). (GtkWidgetcxx . . $ GtkWidget# *canvas, |
| 246 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *root, |
| 247 | char *sample_name, |
| 248 | double x1, |
| 249 | double y1, |
| 250 | double x2, |
| 251 | double y2) |
| 252 | { |
| 253 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *item; |
| 254 | |
| 255 | item = goo_canvas_polyline_model_new_linecxx . . $ goo_canvas_polyline_model_new_line(350e94a866f63a3b). (root, x1, y1, x2, y2, |
| 256 | "start-arrow", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 257 | "end-arrow", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 258 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 259 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), sample_name, item); |
| 260 | } |
| 261 | |
| 262 | |
| 263 | static gbooleancxx . . $ gboolean# |
| 264 | on_enter_notifycxx . . $ on_enter_notify(6be54127457915a6). (GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 265 | GooCanvasItemcxx . . $ GooCanvasItem# *target, |
| 266 | GdkEventCrossingcxx . . $ GdkEventCrossing# *event, |
| 267 | gpointercxx . . $ gpointer# data) |
| 268 | { |
| 269 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *model = goo_canvas_item_get_modelcxx . . $ goo_canvas_item_get_model(1a19c08073fb15b7). (target); |
| 270 | |
| 271 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (model, |
| 272 | "fill_color", "red", |
| 273 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 274 | |
| 275 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 276 | } |
| 277 | |
| 278 | |
| 279 | static gbooleancxx . . $ gboolean# |
| 280 | on_leave_notifycxx . . $ on_leave_notify(fc93b83825f7128e). (GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 281 | GooCanvasItemcxx . . $ GooCanvasItem# *target, |
| 282 | GdkEventcxx . . $ GdkEvent# *event, |
| 283 | gpointercxx . . $ gpointer# data) |
| 284 | { |
| 285 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *model = goo_canvas_item_get_modelcxx . . $ goo_canvas_item_get_model(1a19c08073fb15b7). (target); |
| 286 | |
| 287 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (model, |
| 288 | "fill_color", "black", |
| 289 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 290 | |
| 291 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 292 | } |
| 293 | |
| 294 | |
| 295 | static gbooleancxx . . $ gboolean# |
| 296 | on_button_presscxx . . $ on_button_press(a06191997683bf2d). (GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 297 | GooCanvasItemcxx . . $ GooCanvasItem# *target, |
| 298 | GdkEventButtoncxx . . $ GdkEventButton# *event, |
| 299 | gpointercxx . . $ gpointer# data) |
| 300 | { |
| 301 | GooCanvascxx . . $ GooCanvas# *canvas; |
| 302 | GdkDisplaycxx . . $ GdkDisplay# *display; |
| 303 | GdkCursorcxx . . $ GdkCursor# *fleur; |
| 304 | |
| 305 | canvas = goo_canvas_item_get_canvascxx . . $ goo_canvas_item_get_canvas(ea994a9c906aac4f). (item); |
| 306 | display = gtk_widget_get_displaycxx . . $ gtk_widget_get_display(6423c64908d5796a). (GTK_WIDGETcxx . . $ `<external>/6031079988677191796/gtkwidget.h:58:9`! (canvas)); |
| 307 | fleur = gdk_cursor_new_for_displaycxx . . $ gdk_cursor_new_for_display(9a6292f6f573b4fe). (display, GDK_FLEURcxx . . $ GDK_FLEUR.); |
| 308 | goo_canvas_pointer_grabcxx . . $ goo_canvas_pointer_grab(e6ff14dc3a0e571f). (canvas, item, |
| 309 | GDK_POINTER_MOTION_MASKcxx . . $ GDK_POINTER_MOTION_MASK. | GDK_POINTER_MOTION_HINT_MASKcxx . . $ GDK_POINTER_MOTION_HINT_MASK. | GDK_BUTTON_RELEASE_MASKcxx . . $ GDK_BUTTON_RELEASE_MASK., |
| 310 | fleur, |
| 311 | event->timecxx . . $ _GdkEventButton#time.); |
| 312 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (fleur); |
| 313 | |
| 314 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 315 | } |
| 316 | |
| 317 | |
| 318 | static gbooleancxx . . $ gboolean# |
| 319 | on_button_releasecxx . . $ on_button_release(a06191997683bf2d). (GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 320 | GooCanvasItemcxx . . $ GooCanvasItem# *target, |
| 321 | GdkEventButtoncxx . . $ GdkEventButton# *event, |
| 322 | gpointercxx . . $ gpointer# data) |
| 323 | { |
| 324 | GooCanvascxx . . $ GooCanvas# *canvas; |
| 325 | |
| 326 | canvas = goo_canvas_item_get_canvascxx . . $ goo_canvas_item_get_canvas(ea994a9c906aac4f). (item); |
| 327 | goo_canvas_pointer_ungrabcxx . . $ goo_canvas_pointer_ungrab(80564f52a27fdbd2). (canvas, item, event->timecxx . . $ _GdkEventButton#time.); |
| 328 | |
| 329 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 330 | } |
| 331 | |
| 332 | |
| 333 | static gbooleancxx . . $ gboolean# |
| 334 | on_motioncxx . . $ on_motion(d9fb832b8fd13035). (GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 335 | GooCanvasItemcxx . . $ GooCanvasItem# *target, |
| 336 | GdkEventMotioncxx . . $ GdkEventMotion# *event, |
| 337 | gpointercxx . . $ gpointer# data) |
| 338 | { |
| 339 | GooCanvascxx . . $ GooCanvas# *canvas = goo_canvas_item_get_canvascxx . . $ goo_canvas_item_get_canvas(ea994a9c906aac4f). (item); |
| 340 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *model = goo_canvas_item_get_modelcxx . . $ goo_canvas_item_get_model(1a19c08073fb15b7). (target); |
| 341 | int x, y, width, shape_a, shape_b, shape_c; |
| 342 | gbooleancxx . . $ gboolean# change = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 343 | |
| 344 | if (!(event->statecxx . . $ _GdkEventMotion#state. & GDK_BUTTON1_MASKcxx . . $ GDK_BUTTON1_MASK.)) |
| 345 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 346 | |
| 347 | if (model == g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width_drag_box")) |
| 348 | { |
| 349 | y = event->ycxx . . $ _GdkEventMotion#y.; |
| 350 | width = (MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - y) / 5; |
| 351 | if (width < 0) |
| 352 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 353 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width", GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (width)); |
| 354 | set_arrow_shapecxx . . $ set_arrow_shape(b9f56778c178595d). (canvas); |
| 355 | } |
| 356 | else if (model == g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a_drag_box")) |
| 357 | { |
| 358 | x = event->xcxx . . $ _GdkEventMotion#x.; |
| 359 | width = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width")); |
| 360 | shape_a = (RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - x) / 10 / width; |
| 361 | if ((shape_a < 0) || (shape_a > 30)) |
| 362 | return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 363 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a", |
| 364 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (shape_a)); |
| 365 | set_arrow_shapecxx . . $ set_arrow_shape(b9f56778c178595d). (canvas); |
| 366 | } |
| 367 | else if (model == g_object_get_datacxx . . $ g_object_get_data(973400aee2f864c2). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b_c_drag_box")) |
| 368 | { |
| 369 | width = GPOINTER_TO_INTcxx . . $ `<external>/10505296616216143549/glibconfig.h:103:9`! (g_object_get_data (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width")); |
| 370 | |
| 371 | x = event->xcxx . . $ _GdkEventMotion#x.; |
| 372 | shape_b = (RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! - x) / 10 / width; |
| 373 | if ((shape_b >= 0) && (shape_b <= 30)) { |
| 374 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b", |
| 375 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (shape_b)); |
| 376 | change = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 377 | } |
| 378 | |
| 379 | y = event->ycxx . . $ _GdkEventMotion#y.; |
| 380 | shape_c = (MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - y) * 2 / 10 / width; |
| 381 | if (shape_c >= 0) { |
| 382 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_c", |
| 383 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (shape_c)); |
| 384 | change = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 385 | } |
| 386 | |
| 387 | if (change) |
| 388 | set_arrow_shapecxx . . $ set_arrow_shape(b9f56778c178595d). (canvas); |
| 389 | } |
| 390 | |
| 391 | return TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 392 | } |
| 393 | |
| 394 | |
| 395 | static void |
| 396 | on_item_createdcxx . . $ on_item_created(a9a13474c36c991d). (GooCanvascxx . . $ GooCanvas# *canvas, |
| 397 | GooCanvasItemcxx . . $ GooCanvasItem# *item, |
| 398 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *model, |
| 399 | gpointercxx . . $ gpointer# data) |
| 400 | { |
| 401 | if (GOO_IS_CANVAS_RECT_MODELcxx . . $ `src/goocanvasrect.h:75:9`! (model)) |
| 402 | { |
| 403 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (item, "enter_notify_event", |
| 404 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_enter_notify), |
| 405 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 406 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (item, "leave_notify_event", |
| 407 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_leave_notify), |
| 408 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 409 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (item, "button_press_event", |
| 410 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_button_press), |
| 411 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 412 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (item, "button_release_event", |
| 413 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_button_release), |
| 414 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 415 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (item, "motion_notify_event", |
| 416 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_motion), |
| 417 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | |
| 422 | GtkWidgetcxx . . $ GtkWidget# * |
| 423 | create_canvas_arrowheadcxx . . $ create_canvas_arrowhead(2369ce5e9f2c7dfd). (void) |
| 424 | { |
| 425 | GtkWidgetcxx . . $ GtkWidget# *vbox; |
| 426 | GtkWidgetcxx . . $ GtkWidget# *w; |
| 427 | GtkWidgetcxx . . $ GtkWidget# *frame; |
| 428 | GtkWidgetcxx . . $ GtkWidget# *canvas; |
| 429 | GooCanvasItemModelcxx . . $ GooCanvasItemModel# *root, *item; |
| 430 | |
| 431 | vbox = gtk_box_newcxx . . $ gtk_box_new(b19e0ce02196028e). (GTK_ORIENTATION_VERTICALcxx . . $ GTK_ORIENTATION_VERTICAL., 4); |
| 432 | gtk_container_set_border_widthcxx . . $ gtk_container_set_border_width(4f2d4e7d5639aede). (GTK_CONTAINERcxx . . $ `<external>/462093496598485868/gtkcontainer.h:38:9`! (vbox), 4); |
| 433 | gtk_widget_showcxx . . $ gtk_widget_show(d7cf858254b37903). (vbox); |
| 434 | |
| 435 | w = gtk_label_newcxx . . $ gtk_label_new(6d90f3ec8782e10d). ("This demo allows you to edit arrowhead shapes. Drag the little boxes\n" |
| 436 | "to change the shape of the line and its arrowhead. You can see the\n" |
| 437 | "arrows at their normal scale on the right hand side of the window."); |
| 438 | gtk_box_pack_startcxx . . $ gtk_box_pack_start(e6ae6b264cb15f6b). (GTK_BOXcxx . . $ `<external>/14176280485027674556/gtkbox.h:40:9`! (vbox), w, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, 0); |
| 439 | gtk_widget_showcxx . . $ gtk_widget_show(d7cf858254b37903). (w); |
| 440 | |
| 441 | frame = gtk_frame_newcxx . . $ gtk_frame_new(6d90f3ec8782e10d). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 442 | gtk_frame_set_shadow_typecxx . . $ gtk_frame_set_shadow_type(c2a1762326798d9f). (GTK_FRAMEcxx . . $ `<external>/16634037676575323791/gtkframe.h:40:9`! (frame), GTK_SHADOW_INcxx . . $ GTK_SHADOW_IN.); |
| 443 | gtk_box_pack_startcxx . . $ gtk_box_pack_start(e6ae6b264cb15f6b). (GTK_BOXcxx . . $ `<external>/14176280485027674556/gtkbox.h:40:9`! (vbox), frame, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, 0); |
| 444 | gtk_widget_showcxx . . $ gtk_widget_show(d7cf858254b37903). (frame); |
| 445 | |
| 446 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d). (frame, |
| 447 | "halign", GTK_ALIGN_CENTERcxx . . $ GTK_ALIGN_CENTER., |
| 448 | "valign", GTK_ALIGN_CENTERcxx . . $ GTK_ALIGN_CENTER., |
| 449 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 450 | |
| 451 | canvas = goo_canvas_newcxx . . $ goo_canvas_new(2369ce5e9f2c7dfd). (); |
| 452 | |
| 453 | g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`! (canvas, "item_created", |
| 454 | G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`! (on_item_created), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 455 | |
| 456 | root = goo_canvas_group_model_newcxx . . $ goo_canvas_group_model_new(7f896cf3adb67825). (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 457 | goo_canvas_set_root_item_modelcxx . . $ goo_canvas_set_root_item_model(c091109a778736a6). (GOO_CANVAScxx . . $ `src/goocanvas.h:27:9`! (canvas), root); |
| 458 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8). (root); |
| 459 | |
| 460 | gtk_widget_set_size_requestcxx . . $ gtk_widget_set_size_request(f5b8e75990cfac4b). (canvas, 500, 350); |
| 461 | goo_canvas_set_boundscxx . . $ goo_canvas_set_bounds(c765acac0aeef5c4). (GOO_CANVAScxx . . $ `src/goocanvas.h:27:9`! (canvas), 0, 0, 500, 350); |
| 462 | gtk_container_addcxx . . $ gtk_container_add(a71b61ec882009c2). (GTK_CONTAINERcxx . . $ `<external>/462093496598485868/gtkcontainer.h:38:9`! (frame), canvas); |
| 463 | gtk_widget_showcxx . . $ gtk_widget_show(d7cf858254b37903). (canvas); |
| 464 | |
| 465 | |
| 466 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "width", |
| 467 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (DEFAULT_WIDTHcxx . . $ `demo/mv-demo-arrowhead.c:9:9`!)); |
| 468 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_a", |
| 469 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (DEFAULT_SHAPE_Acxx . . $ `demo/mv-demo-arrowhead.c:10:9`!)); |
| 470 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_b", |
| 471 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (DEFAULT_SHAPE_Bcxx . . $ `demo/mv-demo-arrowhead.c:11:9`!)); |
| 472 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "shape_c", |
| 473 | GINT_TO_POINTERcxx . . $ `<external>/10505296616216143549/glibconfig.h:106:9`! (DEFAULT_SHAPE_Ccxx . . $ `demo/mv-demo-arrowhead.c:12:9`!)); |
| 474 | |
| 475 | /* Big arrow */ |
| 476 | |
| 477 | item = goo_canvas_polyline_model_new_linecxx . . $ goo_canvas_polyline_model_new_line(350e94a866f63a3b). (root, |
| 478 | LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`!, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!, |
| 479 | "stroke_color", "mediumseagreen", |
| 480 | "end-arrow", TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, |
| 481 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 482 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "big_arrow", item); |
| 483 | |
| 484 | /* Arrow outline */ |
| 485 | |
| 486 | item = goo_canvas_polyline_model_newcxx . . $ goo_canvas_polyline_model_new(2503739ef475d46e). (root, TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!, 0, |
| 487 | "stroke_color", "black", |
| 488 | "line-width", 2.0, |
| 489 | "line-cap", CAIRO_LINE_CAP_ROUNDcxx . . $ CAIRO_LINE_CAP_ROUND., |
| 490 | "line-join", CAIRO_LINE_JOIN_ROUNDcxx . . $ CAIRO_LINE_JOIN_ROUND., |
| 491 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 492 | g_object_set_datacxx . . $ g_object_set_data(c3d5001d890c27fc). (G_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:54:9`! (canvas), "outline", item); |
| 493 | |
| 494 | /* Drag boxes */ |
| 495 | |
| 496 | create_drag_boxcxx . . $ create_drag_box(df4eaf8a638ac8f1). (canvas, root, "width_drag_box"); |
| 497 | create_drag_boxcxx . . $ create_drag_box(df4eaf8a638ac8f1). (canvas, root, "shape_a_drag_box"); |
| 498 | create_drag_boxcxx . . $ create_drag_box(df4eaf8a638ac8f1). (canvas, root, "shape_b_c_drag_box"); |
| 499 | |
| 500 | /* Dimensions */ |
| 501 | |
| 502 | create_dimensioncxx . . $ create_dimension(d682dadf4ab03d88). (canvas, root, "width_arrow", "width_text", GOO_CANVAS_ANCHOR_Ecxx . . $ GOO_CANVAS_ANCHOR_E.); |
| 503 | create_dimensioncxx . . $ create_dimension(d682dadf4ab03d88). (canvas, root, "shape_a_arrow", "shape_a_text", GOO_CANVAS_ANCHOR_Ncxx . . $ GOO_CANVAS_ANCHOR_N.); |
| 504 | create_dimensioncxx . . $ create_dimension(d682dadf4ab03d88). (canvas, root, "shape_b_arrow", "shape_b_text", GOO_CANVAS_ANCHOR_Ncxx . . $ GOO_CANVAS_ANCHOR_N.); |
| 505 | create_dimensioncxx . . $ create_dimension(d682dadf4ab03d88). (canvas, root, "shape_c_arrow", "shape_c_text", GOO_CANVAS_ANCHOR_Wcxx . . $ GOO_CANVAS_ANCHOR_W.); |
| 506 | |
| 507 | /* Info */ |
| 508 | |
| 509 | create_infocxx . . $ create_info(8fb1ad9fddc458fc). (canvas, root, "width_info", LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, 260); |
| 510 | create_infocxx . . $ create_info(8fb1ad9fddc458fc). (canvas, root, "shape_a_info", LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, 280); |
| 511 | create_infocxx . . $ create_info(8fb1ad9fddc458fc). (canvas, root, "shape_b_info", LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, 300); |
| 512 | create_infocxx . . $ create_info(8fb1ad9fddc458fc). (canvas, root, "shape_c_info", LEFTcxx . . $ `demo/mv-demo-arrowhead.c:6:9`!, 320); |
| 513 | |
| 514 | /* Division line */ |
| 515 | |
| 516 | goo_canvas_polyline_model_new_linecxx . . $ goo_canvas_polyline_model_new_line(350e94a866f63a3b). (root, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 50, 0, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 50, 1000, |
| 517 | "fill_color", "black", |
| 518 | "line-width", 2.0, |
| 519 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 520 | |
| 521 | /* Sample arrows */ |
| 522 | |
| 523 | create_sample_arrowcxx . . $ create_sample_arrow(5a286fc43846d667). (canvas, root, "sample_1", |
| 524 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 100, 30, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 100, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! - 30); |
| 525 | create_sample_arrowcxx . . $ create_sample_arrow(5a286fc43846d667). (canvas, root, "sample_2", |
| 526 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 70, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 130, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`!); |
| 527 | create_sample_arrowcxx . . $ create_sample_arrow(5a286fc43846d667). (canvas, root, "sample_3", |
| 528 | RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 70, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 30, RIGHTcxx . . $ `demo/mv-demo-arrowhead.c:7:9`! + 130, MIDDLEcxx . . $ `demo/mv-demo-arrowhead.c:8:9`! + 120); |
| 529 | |
| 530 | /* Done! */ |
| 531 | |
| 532 | set_arrow_shapecxx . . $ set_arrow_shape(b9f56778c178595d). (GOO_CANVAScxx . . $ `src/goocanvas.h:27:9`! (canvas)); |
| 533 | return vbox; |
| 534 | } |