16#ifndef OSGWIDGET_FRAME
17#define OSGWIDGET_FRAME
156 Frame (
const std::string& =
"",
unsigned int = 0);
The osgWidget library is a NodeKit that extends the core scene graph to support a 2D (and eventually ...
Definition Box:21
Point::value_type point_type
Definition Types:33
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Image class for encapsulating the storage texture image data.
Definition Image:179
std::string _name
Definition Object:303
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
static Frame * createSimpleFrameFromTheme(const std::string &, osg::ref_ptr< osg::Image >, point_type, point_type, unsigned int=0, Frame *=0)
void createSimpleFrame(point_type cw, point_type ch, point_type w, point_type h)
Definition Frame:187
META_Object(osgWidget, Frame)
static Frame * createSimpleFrameWithSingleTexture(const std::string &, osg::ref_ptr< osg::Image >, point_type, point_type, unsigned int=0, Frame *=0)
Widget * _getBorder(BorderType) const
const Border * getBorder(BorderType b) const
Definition Frame:213
bool resizeFrame(point_type, point_type)
static Frame * createSimpleFrame(const std::string &, point_type, point_type, point_type, point_type, unsigned int=0, Frame *=0)
Widget * _getCorner(CornerType) const
unsigned int _flags
Definition Frame:249
const Corner * getCorner(CornerType c) const
Definition Frame:209
const EmbeddedWindow * getEmbeddedWindow() const
Definition Frame:205
unsigned int getFlags() const
Definition Frame:219
bool canTexture() const
Definition Frame:239
CornerType
Definition Frame:63
@ CORNER_UPPER_RIGHT
Definition Frame:67
@ CORNER_UPPER_LEFT
Definition Frame:66
@ CORNER_LOWER_LEFT
Definition Frame:64
@ CORNER_LOWER_RIGHT
Definition Frame:65
void setFlags(unsigned int flags)
Definition Frame:224
Corner * getCorner(CornerType c)
Definition Frame:207
BorderType
Definition Frame:71
@ BORDER_TOP
Definition Frame:74
@ BORDER_RIGHT
Definition Frame:73
@ BORDER_LEFT
Definition Frame:72
@ BORDER_BOTTOM
Definition Frame:75
static std::string borderTypeToString(BorderType)
EmbeddedWindow * getEmbeddedWindow()
Definition Frame:203
FrameOptions
Definition Frame:79
@ FRAME_RESIZE
Definition Frame:80
@ FRAME_ALL
Definition Frame:83
@ FRAME_MOVE
Definition Frame:81
@ FRAME_TEXTURE
Definition Frame:82
static std::string cornerTypeToString(CornerType)
bool canMove() const
Definition Frame:234
Frame(const Frame &, const osg::CopyOp &)
void createSimpleFrameWithSingleTexture(osg::Image *image, point_type w, point_type h)
Definition Frame:192
bool canResize() const
Definition Frame:229
Frame(const std::string &="", unsigned int=0)
Border * getBorder(BorderType b)
Definition Frame:211
Corner(CornerType=CORNER_LOWER_LEFT, point_type=0.0f, point_type=0.0f)
CornerType _corner
Definition Frame:118
CornerType getCornerType() const
Definition Frame:100
virtual bool mouseDrag(double, double, const WindowManager *)
Corner(const Corner &, const osg::CopyOp &)
void setCornerTypeAndName(CornerType corner)
Definition Frame:110
META_Object(osgWidget, Corner)
virtual void parented(Window *)
void setCornerType(CornerType corner)
Definition Frame:105
META_Object(osgWidget, Border)
BorderType getBorderType() const
Definition Frame:133
BorderType _border
Definition Frame:151
virtual bool mouseDrag(double, double, const WindowManager *)
void setBorderTypeAndName(BorderType border)
Definition Frame:143
virtual void positioned()
void setBorderType(BorderType border)
Definition Frame:138
Border(const Border &, const osg::CopyOp &)
virtual void parented(Window *)
Border(BorderType=BORDER_LEFT, point_type=0.0f, point_type=0.0f)
Table(const std::string &="", unsigned int=0, unsigned int=0)
Widget * getByRowCol(unsigned int row, unsigned int col)
Definition Table:48
friend class Window
Definition Widget:459
Widget(const std::string &="", point_type=0.0f, point_type=0.0f)
Definition WindowManager:39
#define OSGWIDGET_EXPORT
Definition Export:42