20 #include <gdkmm/cursor.h>
26 #include "editor_xpms"
37 , anchored_right_side_trim (0)
39 , anchored_left_side_trim (0)
40 , right_side_trim_left_only (0)
41 , left_side_trim_right_only (0)
47 , grabber_edit_point (0)
64 , resize_top_right (0)
66 , resize_bottom_right (0)
68 , resize_bottom_left (0)
70 , expand_left_right (0)
130 return new Gdk::Cursor (Gdk::Display::get_default(), p, hotspot_x, hotspot_y);
136 using namespace Glib;
145 if (!hotspot_info_path.empty()) {
184 Gdk::Color fbg (
"#ffffff");
185 Gdk::Color ffg (
"#000000");
188 RefPtr<Bitmap> source = Bitmap::create ((
char const *) fader_cursor_bits, fader_cursor_width, fader_cursor_height);
189 RefPtr<Bitmap> mask = Bitmap::create ((
char const *) fader_cursor_mask_bits, fader_cursor_width, fader_cursor_height);
190 fader =
new Cursor (source, mask, ffg, fbg, fader_cursor_x_hot, fader_cursor_y_hot);
194 RefPtr<Bitmap> source = Bitmap::create ((
char const *) speaker_cursor_bits, speaker_cursor_width, speaker_cursor_height);
195 RefPtr<Bitmap> mask = Bitmap::create ((
char const *) speaker_cursor_mask_bits, speaker_cursor_width, speaker_cursor_height);
196 speaker =
new Cursor (source, mask, ffg, fbg, speaker_cursor_width >> 1, speaker_cursor_height >> 1);
200 char pix[4] = { 0, 0, 0, 0 };
201 RefPtr<Bitmap> bits = Bitmap::create (pix, 2, 2);
207 trimmer =
new Cursor (SB_H_DOUBLE_ARROW);
209 wait =
new Cursor (WATCH);
210 timebar =
new Cursor(LEFT_PTR);
215 up_down =
new Cursor (SB_V_DOUBLE_ARROW);
221 char pix[4] = { 0, 0, 0, 0 };
222 Glib::RefPtr<Gdk::Bitmap> bits = Gdk::Bitmap::create (pix, 2, 2);
224 _invalid =
new Gdk::Cursor (bits, bits, c, c, 0, 0);
Gdk::Cursor * resize_left
Gdk::Cursor * resize_bottom
static CursorInfo * lookup_cursor_info(const std::string &image_name)
static void drop_cursor_info()
Gdk::Cursor * make_cursor(const char *name, int hotspot_x=0, int hotspot_y=0)
Gdk::Cursor * left_side_trim_right_only
Gdk::Cursor * grabber_note
static void create_invalid()
Gdk::Cursor * right_side_trim_left_only
Gdk::Cursor * midi_pencil
Gdk::Cursor * resize_top_left
Gdk::Cursor * grabber_edit_point
Gdk::Cursor * expand_up_down
LIBARDOUR_API PBD::PropertyDescriptor< boost::shared_ptr< AutomationList > > fade_out
LIBARDOUR_API PBD::PropertyDescriptor< boost::shared_ptr< AutomationList > > fade_in
Gdk::Cursor * right_side_trim
void set_cursor_set(const std::string &name)
LIBPBD_API Transmitter info
Gdk::Cursor * resize_top_right
Gdk::Cursor * midi_resize
Gdk::Cursor * anchored_left_side_trim
Gdk::Cursor * midi_select
Gdk::Cursor * resize_bottom_right
Gdk::Cursor * anchored_right_side_trim
Gdk::Cursor * transparent
Gdk::Cursor * resize_right
Gdk::Cursor * resize_bottom_left
std::string get_icon_path(const char *, std::string icon_set=std::string(), bool is_image=true)
Gdk::Cursor * left_side_trim
static int load_cursor_info(const std::string &path)
Glib::RefPtr< Gdk::Pixbuf > get_icon(const char *cname)
static Gdk::Cursor * _invalid
Gdk::Cursor * expand_left_right