using namespace ARDOUR_UI_UTILS;
+Gdk::Cursor* MouseCursors::_invalid = 0;
+
MouseCursors::MouseCursors ()
: cross_hair (0)
, scissors (0)
using namespace Gdk;
drop_all ();
+ Gtkmm2ext::CursorInfo::drop_cursor_info();
_cursor_set = name;
std::string hotspot_info_path = get_icon_path ("hotspots", _cursor_set, false);
}
/* these will throw exceptions if their images cannot be found.
-
- the default hotspot coordinates will be overridden by any
+
+ the default hotspot coordinates will be overridden by any
data found by Gtkmm2ext::Cursors::load_cursor_info(). the values
here from the set of cursors used by Ardour; new cursor/icon
sets should come with a hotspot info file.
midi_erase = new Cursor (DRAPED_BOX);
up_down = new Cursor (SB_V_DOUBLE_ARROW);
}
+
+void
+MouseCursors::create_invalid()
+{
+ char pix[4] = { 0, 0, 0, 0 };
+ Glib::RefPtr<Gdk::Bitmap> bits = Gdk::Bitmap::create (pix, 2, 2);
+ Gdk::Color c;
+ _invalid = new Gdk::Cursor (bits, bits, c, c, 0, 0);
+}