SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scv::InternalFrame Class Reference

#include <InternalFrame.h>

Inheritance diagram for scv::InternalFrame:
scv::Component scv::SCVCallbacks

Public Member Functions

 InternalFrame (GLsizei width, GLsizei height, const std::string &title)
 
virtual void onOpen (void)
 
virtual void onClose (void)
 
virtual void setVisible (bool state)
 
void setPanel (scv::Panel *panel)
 
scv::PanelgetPanel (void) const
 
Point getInternalSize () const
 
void setInternalSize (GLsizei width, GLsizei height)
 
void setTitle (const std::string &title)
 
std::string getTitle (void) const
 
void processMouse (const scv::MouseEvent &evt)
 
void processKey (const scv::KeyEvent &evt)
 
void display (void)
 
- Public Member Functions inherited from scv::Component
 Component (const scv::Point &p1, const scv::Point &p2)
 
virtual ~Component (void)
 
virtual Point getRelativePosition (void) const
 
virtual void setRelativePosition (const Point &position)
 
virtual Point getAbsolutePosition (void) const
 
virtual void setAbsolutePosition (const Point &position)
 
virtual int getWidth (void) const
 
virtual void setWidth (int width)
 
virtual int getHeight (void) const
 
virtual void setHeight (int height)
 
virtual Point getSize (void) const
 
virtual void setSize (int width, int height)
 
virtual void setMinimumSize (const scv::Point &size)
 
virtual Point getMinimumSize (void) const
 
virtual void setPreferredSize (const scv::Point &size)
 
virtual Point getPreferredSize (void) const
 
virtual void setMaximumSize (const scv::Point &size)
 
virtual Point getMaximumSize (void) const
 
virtual bool isOvered (void) const
 
virtual bool isHolded (void) const
 
virtual bool isDragging (void) const
 
virtual bool isResizing (void) const
 
virtual bool isFocused (void) const
 
virtual void setDraggable (bool state)
 
virtual bool isDraggable (void) const
 
virtual void setResizable (bool state)
 
virtual bool isResizable (void) const
 
virtual bool isVisible (void) const
 
ContextMenugetContextMenu (void) const
 
virtual void registerContextMenu (ContextMenu *contextMenu)
 
virtual void unregisterContextMenu (void)
 
virtual bool isInside (const Point &evtPosition) const
 
virtual bool getCallbacksStatus (void) const
 
virtual void setCallbacksStatus (bool state)
 
virtual Scissor::Info getParentScissor (void) const
 
virtual Scissor::Info getScissor (void) const
 
Type getType (void)
 
void setType (Type type)
 
void setParent (Component *parent)
 
ComponentgetParent (void) const
 
const Component::ListgetChildren (void) const
 
virtual void addChild (Component *object)
 
virtual void removeChild (Component *object)
 
virtual void removeAllChild (void)
 
virtual ComponentgetChild (int index) const
 
void pullChildToTop (Component *child)
 
bool hasChild (Component *child) const
 
- Public Member Functions inherited from scv::SCVCallbacks
virtual ~SCVCallbacks ()
 
virtual void onMouseClick (const scv::MouseEvent &evt)
 
virtual void onMouseHold (const scv::MouseEvent &evt)
 
virtual void onMouseOver (const scv::MouseEvent &evt)
 
virtual void onMouseUp (const scv::MouseEvent &evt)
 
virtual void onMouseWheel (const scv::MouseEvent &evt)
 
virtual void onKeyPressed (const scv::KeyEvent &evt)
 
virtual void onKeyUp (const scv::KeyEvent &evt)
 
virtual void onSizeChange (void)
 
virtual void onPositionChange (void)
 

Protected Member Functions

void createTexture (void)
 
bool isOnTopBar (const scv::Point &p)
 
bool isOnCloseButton (const scv::Point &p)
 
void configPanel (void)
 
- Protected Member Functions inherited from scv::Component
void setResizingCursor (void)
 
bool isInsideSide (Component::Side side, const Point &evtPosition)
 

Protected Attributes

ComponentTexture_cTexture
 
std::string _title
 
bool _overClose
 
bool _clickClose
 
bool _refreshPosition
 
bool _rolluped
 
scv::Panel_panel
 
- Protected Attributes inherited from scv::Component
Component_parent
 
Type _type
 
Point _p1
 
Point _p2
 
Point _clickDiff
 
Point _minimumSize
 
Point _preferredSize
 
Point _maximumSize
 
bool _receivingCallbacks
 
bool _isResizable
 
bool _isResizing
 
bool _isHResizable
 
bool _isVResizable
 
bool _isDraggable
 
bool _isDragging
 
bool _isOvered
 
bool _isHolded
 
bool _isVisible
 
std::vector< bool > _resizing
 
ContextMenu_contextMenu
 

Static Protected Attributes

static const int s_borderTop = 30
 
static const int s_borderWidth = 10
 
static const int s_closeWidth = 46
 
static const int s_closeHeight = 19
 
- Static Protected Attributes inherited from scv::Component
static const int s_mouseBacklash = 4
 

Friends

class WindowHolder
 

Additional Inherited Members

- Public Types inherited from scv::Component
enum  Type {
  NONE, PANEL, COLORPICKER, PROGRESSBAR,
  SCROLL, SLIDER, SPINNER, BUTTON,
  CHECKBOX, RADIOBUTTON, TOGGLEBUTTON, TEXTFIELD,
  TEXTBOX, SEPARATOR, WINDOW, MENUBAR,
  TABBEDPANE, SCROLLCOMPONENT, IMAGE, TABLE,
  COMBOBOX, CANVAS, TREEVIEW, LABEL,
  CONTEXTMENU, GENERICTREE, NOFWIDGETS
}
 
typedef std::list< Component * > List
 
- Public Attributes inherited from scv::Component
Component::List _children
 
- Protected Types inherited from scv::Component
enum  Side { LEFT, RIGHT, TOP, BOTTOM }
 

Constructor & Destructor Documentation

scv::InternalFrame::InternalFrame ( GLsizei  width,
GLsizei  height,
const std::string &  title 
)

Member Function Documentation

void scv::InternalFrame::configPanel ( void  )
protected
void scv::InternalFrame::createTexture ( void  )
protected
void scv::InternalFrame::display ( void  )
virtual

Implements scv::Component.

Point scv::InternalFrame::getInternalSize ( ) const
Panel * scv::InternalFrame::getPanel ( void  ) const
inline
std::string scv::InternalFrame::getTitle ( void  ) const
inline
bool scv::InternalFrame::isOnCloseButton ( const scv::Point p)
protected
bool scv::InternalFrame::isOnTopBar ( const scv::Point p)
protected
void scv::InternalFrame::onClose ( void  )
virtual
void scv::InternalFrame::onOpen ( void  )
virtual
void scv::InternalFrame::processKey ( const scv::KeyEvent evt)
virtual

Reimplemented from scv::Component.

void scv::InternalFrame::processMouse ( const scv::MouseEvent evt)
virtual

Reimplemented from scv::Component.

void scv::InternalFrame::setInternalSize ( GLsizei  width,
GLsizei  height 
)
void scv::InternalFrame::setPanel ( scv::Panel panel)
inline
void scv::InternalFrame::setTitle ( const std::string &  title)
inline
void scv::InternalFrame::setVisible ( bool  state)
virtual

Reimplemented from scv::Component.

Friends And Related Function Documentation

friend class WindowHolder
friend

Member Data Documentation

bool scv::InternalFrame::_clickClose
protected
ComponentTexture* scv::InternalFrame::_cTexture
protected
bool scv::InternalFrame::_overClose
protected
scv::Panel* scv::InternalFrame::_panel
protected
bool scv::InternalFrame::_refreshPosition
protected
bool scv::InternalFrame::_rolluped
protected
std::string scv::InternalFrame::_title
protected
const int scv::InternalFrame::s_borderTop = 30
staticprotected
const int scv::InternalFrame::s_borderWidth = 10
staticprotected
const int scv::InternalFrame::s_closeHeight = 19
staticprotected
const int scv::InternalFrame::s_closeWidth = 46
staticprotected

The documentation for this class was generated from the following files: