16 #ifndef OSGWIDGET_FRAME
17 #define OSGWIDGET_FRAME
19 #include <osgWidget/Table>
83 FRAME_ALL = FRAME_RESIZE | FRAME_MOVE | FRAME_TEXTURE
86 static std::string cornerTypeToString (CornerType);
87 static std::string borderTypeToString (BorderType);
97 virtual void parented (
Window*);
98 virtual bool mouseDrag (
double,
double,
const WindowManager*);
113 _name = cornerTypeToString(corner);
129 virtual void parented (
Window*);
130 virtual void positioned ();
131 virtual bool mouseDrag (
double,
double,
const WindowManager*);
146 _name = borderTypeToString(border);
156 Frame (
const std::string& =
"",
unsigned int = 0);
159 static Frame* createSimpleFrame(
169 static Frame* createSimpleFrameWithSingleTexture(
178 static Frame* createSimpleFrameFromTheme(
189 createSimpleFrame(_name, cw, ch, w, h, 0,
this);
198 createSimpleFrameWithSingleTexture(_name, image, w, h, 0,
this);
231 return (_flags & FRAME_RESIZE) != 0;
236 return (_flags & FRAME_MOVE) != 0;
241 return (_flags & FRAME_TEXTURE) != 0;
246 Widget* _getCorner (CornerType)
const;
247 Widget* _getBorder (BorderType)
const;
#define META_Object(library, name)
GLint GLenum GLsizei GLsizei GLsizei GLint border