Code

3dbox cursor
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 2 Oct 2007 15:24:27 +0000 (15:24 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 2 Oct 2007 15:24:27 +0000 (15:24 +0000)
src/box3d-context.cpp
src/pixmaps/cursor-3dbox.xpm [new file with mode: 0644]

index cb6dd1d0b4fa4c57db2a0d3642af6d7165a95431..db1eef3110dd1a9069fce0fb5407ca8329a6a3b5 100644 (file)
@@ -29,7 +29,7 @@
 #include "display/curve.h"
 #include "desktop.h"
 #include "message-context.h"
-#include "pixmaps/cursor-rect.xpm"
+#include "pixmaps/cursor-3dbox.xpm"
 #include "box3d.h"
 #include "box3d-context.h"
 #include "sp-metrics.h"
@@ -94,7 +94,7 @@ static void sp_3dbox_context_init(SP3DBoxContext *box3d_context)
 {
     SPEventContext *event_context = SP_EVENT_CONTEXT(box3d_context);
 
-    event_context->cursor_shape = cursor_rect_xpm;
+    event_context->cursor_shape = cursor_3dbox_xpm;
     event_context->hot_x = 4;
     event_context->hot_y = 4;
     event_context->xp = 0;
diff --git a/src/pixmaps/cursor-3dbox.xpm b/src/pixmaps/cursor-3dbox.xpm
new file mode 100644 (file)
index 0000000..7104789
--- /dev/null
@@ -0,0 +1,38 @@
+/* XPM */
+static char const *cursor_3dbox_xpm[] = {
+"32 32 3 1",
+"      c None",
+".     c #FFFFFF",
+"+     c #000000",
+"   ...                          ",
+"   .+.                          ",
+"   .+.                          ",
+"....+....                       ",
+".+++ +++.                       ",
+"....+....     .                 ",
+"   .+.       .+.                ",
+"   .+.      .+++.               ",
+"   ...     .+.+.+.              ",
+"          .+..+..+.             ",
+"         .+...+...+.            ",
+"        .+....+....+.           ",
+"       .+.....+.....+.          ",
+"       .+....+++....+.          ",
+"       .+..++...++..+.          ",
+"       .+++.......+++.          ",
+"       .++.........++.          ",
+"        ..++.....++..           ",
+"          ..+++++..             ",
+"            ..+..               ",
+"              .                 ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                ",
+"                                "};