SCV
4.2.1
Simple Components for Visual
|
#include <Component.h>
Public Types | |
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 Member Functions | |
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 void | setVisible (bool state) |
virtual bool | isVisible (void) const |
ContextMenu * | getContextMenu (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 |
virtual void | processMouse (const scv::MouseEvent &evt) |
virtual void | processKey (const scv::KeyEvent &evt) |
virtual void | display (void)=0 |
Type | getType (void) |
void | setType (Type type) |
void | setParent (Component *parent) |
Component * | getParent (void) const |
const Component::List & | getChildren (void) const |
virtual void | addChild (Component *object) |
virtual void | removeChild (Component *object) |
virtual void | removeAllChild (void) |
virtual Component * | getChild (int index) const |
void | pullChildToTop (Component *child) |
bool | hasChild (Component *child) const |
![]() | |
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) |
Public Attributes | |
Component::List | _children |
Protected Types | |
enum | Side { LEFT, RIGHT, TOP, BOTTOM } |
Protected Member Functions | |
void | setResizingCursor (void) |
bool | isInsideSide (Component::Side side, const Point &evtPosition) |
Protected Attributes | |
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_mouseBacklash = 4 |
typedef std::list<Component*> scv::Component::List |
|
protected |
enum scv::Component::Type |
scv::Component::Component | ( | const scv::Point & | p1, |
const scv::Point & | p2 | ||
) |
|
virtual |
|
virtual |
Reimplemented in scv::Panel, and scv::TabbedPane.
|
pure virtual |
Implemented in scv::TextBox, scv::InternalFrame, scv::ComboBox, scv::GenericTree, scv::TabbedPane, scv::Label, scv::Spinner, scv::ColorPicker, scv::ScrollComponent, scv::Image, scv::Slider, scv::MenuBar, scv::TextField, scv::ProgressBar, scv::CheckBox, scv::RadioButton, scv::Panel, scv::Separator, scv::ToggleButton, scv::Button, scv::Table, and scv::Canvas.
|
virtual |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented in scv::Panel.
|
virtual |
Reimplemented in scv::Panel.
|
inline |
|
virtual |
|
virtual |
Reimplemented in scv::Panel.
|
virtual |
|
virtual |
|
inlinevirtual |
Component::Type scv::Component::getType | ( | void | ) |
|
inlinevirtual |
bool scv::Component::hasChild | ( | Component * | child | ) | const |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
protected |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented in scv::Table, scv::TextBox, scv::InternalFrame, scv::GenericTree, scv::Spinner, scv::Slider, scv::TabbedPane, scv::TextField, scv::ScrollComponent, scv::MenuBar, and scv::Panel.
|
virtual |
void scv::Component::pullChildToTop | ( | Component * | child | ) |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in scv::Panel, and scv::TabbedPane.
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in scv::Table.
|
virtual |
Reimplemented in scv::TextBox, scv::Label, scv::ScrollComponent, and scv::TextField.
|
virtual |
|
virtual |
void scv::Component::setParent | ( | Component * | parent | ) |
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in scv::Table.
|
protected |
|
inlinevirtual |
void scv::Component::setType | ( | Type | type | ) |
|
inlinevirtual |
Reimplemented in scv::InternalFrame.
|
virtual |
Reimplemented in scv::TextBox, scv::Label, and scv::ScrollComponent.
|
virtual |
Component::List scv::Component::_children |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |