Mercurial > octave-antonio
comparison libgui/graphics/gl-select.h @ 20128:e05fe4260252
Handle mouse interaction with image objects (bug #44691)
* gl-select.h (opengl_selector::draw_image): new method
* gl-select.cc (opengl_selector::draw_image): draw a GL_QUAD to indicate the image area in GL_SELECT mode
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 16 Apr 2015 22:52:09 +0200 |
parents | f0e61a67ad9f |
children |
comparison
equal
deleted
inserted
replaced
20127:a42de4173533 | 20128:e05fe4260252 |
---|---|
46 virtual void draw (const graphics_object& go, bool toplevel = true); | 46 virtual void draw (const graphics_object& go, bool toplevel = true); |
47 | 47 |
48 protected: | 48 protected: |
49 virtual void draw_text (const text::properties& props); | 49 virtual void draw_text (const text::properties& props); |
50 | 50 |
51 virtual void draw_image (const image::properties& props); | |
52 | |
51 virtual void setup_opengl_transformation (const axes::properties& props); | 53 virtual void setup_opengl_transformation (const axes::properties& props); |
52 | 54 |
53 virtual void init_marker (const std::string& m, double size, float width); | 55 virtual void init_marker (const std::string& m, double size, float width); |
54 | 56 |
55 virtual Matrix render_text (const std::string& txt, | 57 virtual Matrix render_text (const std::string& txt, |