Go to the documentation of this file.
4 #ifndef tools_sg_viewer
5 #define tools_sg_viewer
21 virtual
void*
cast(const std::
string& a_class)
const {
22 if(
void* p = cmp_cast<viewer>(
this,a_class)) {
return p;}
26 virtual void set_size(
unsigned int a_w,
unsigned int a_h) {
35 action.set_do_switch_children(
true);
41 viewer(std::ostream& a_out,
unsigned int a_width,
unsigned int a_height)
53 mem::increment(s_class().c_str());
59 mem::decrement(s_class().c_str());
76 mem::increment(s_class().c_str());
104 float aspect = float(
m_ww)/float(
m_wh);
106 float wcw = wch*aspect;
107 a_wx = float(a_x) * wcw/float(
m_ww);
108 a_wy = float(a_y) * wch/float(
m_wh);
184 #include "../pointer"
#define TOOLS_SCLASS(a_name)