22 #ifndef KJB_CPP_GUI_OVERLAY_H
23 #define KJB_CPP_GUI_OVERLAY_H
25 #ifdef KJB_HAVE_OPENGL
27 #include <boost/function.hpp>
49 Overlay(
int x,
int y,
int width,
int height);
51 virtual void render()
const = 0;
53 void set_width(
int width);
55 void set_height(
int height);
57 virtual void set_size(
int width,
int height);
59 virtual void set_position(
int x,
int y);
61 virtual int width()
const {
return width_; }
62 virtual int height()
const {
return height_; }
64 virtual int x()
const {
return x_pos_; }
65 virtual int y()
const {
return y_pos_; }
74 Interactive_overlay();
76 Interactive_overlay(
int x,
int y,
int width,
int height);
90 class Overlay_callback_wrapper :
public Overlay
93 Overlay_callback_wrapper(
const boost::function0<void>& callback);
95 Overlay_callback_wrapper(
int x,
int y,
int width,
int height,
const boost::function0<void>& callback);
97 virtual void render()
const;
100 boost::function0<void> cb_;
101 bool enable_resizing_;
Abstract class to render this object with GL.
Definition: gr_renderable.h:78
height
Definition: APPgetLargeConnectedEdges.m:33
Abstract class to render this object with GL.
x
Definition: APPgetLargeConnectedEdges.m:100
Definition: gui_event_listener.h:33
void render(const Cuboid &c)
Definition: psi_weighted_box.cpp:56