|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
This class is the basic generic text box. More...
#include <PCanvas.h>
Public Member Functions | |
| PCanvas () | |
| PCanvas (int width, int height, Variant color) | |
| PCanvas (int width, int height) | |
| PCanvas (PCanvas &canvas) | |
| virtual | ~PCanvas () |
| virtual bool | SetProperty (std::string, Variant v) |
| virtual Variant | GetProperty (std::string) const |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
| virtual void | SetPosition (pInt x, pInt y) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetHeight (int h) |
| virtual void | SetWidth (int w) |
| virtual void | SetColor (Variant col) |
| virtual std::string | ObjectName () const |
| virtual bool | GetDrawBackground () const |
Public Member Functions inherited from PWidget | |
| PWidget () | |
| PWidget (const PWidget &pw) | |
| PWidget (pInt x, pInt y, pInt width, pInt height, bool visible) | |
| virtual | ~PWidget () |
| virtual bool | RotoZoom (pDouble angle, pDouble zoomx, pDouble zoomy, pInt smooth) |
| virtual bool | SetPoint (pInt x, pInt y, PColor col) |
| virtual PColor | GetPixel (pInt x, pInt y) |
| virtual void | SetParent (PWidget *widget) |
| This unconditionally sets the parent widget. | |
| virtual PWidget * | GetParent () |
| virtual bool | IsParent (PWidget *parent) |
| virtual bool | Draw () |
| virtual void | SetZoomX (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetZoomY (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetRotation (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetWidth (pInt w) |
| virtual void | SetHeight (pInt h) |
| virtual pInt | GetX () const |
| virtual pInt | GetY () const |
| virtual pInt | GetWidth () const |
| virtual pInt | GetHeight () const |
| virtual void | SetBackgroundColor (const PColor &color) |
| virtual PColor | GetBackgroundColor () |
| virtual bool | AddSubWidget (PWidget *widget) |
| virtual bool | RemoveSubWidget (PWidget *widget) |
| virtual bool | RemoveSubWidgets () |
| virtual bool | RemoveLastSubWidget () |
| This is probably pretty useless. | |
| virtual void | Show () |
| virtual void | Hide () |
| virtual bool | IsVisible () const |
Public Member Functions inherited from PEBLObjectBase | |
| PEBLObjectBase () | |
| Standard Constructor. | |
| PEBLObjectBase (ComplexDataType cdt) | |
| Standard Constructor. | |
| PEBLObjectBase (const PEBLObjectBase &pob) | |
| virtual | ~PEBLObjectBase () |
| Standard Destructor. | |
| virtual bool | InitializeProperty (std::string name, Variant v) |
| Variant | GetProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
| An inheritable printing class used by PEBLObjectBase::operator<<. | |
Protected Attributes | |
| bool | mDrawBackground |
| bool | mReset |
Protected Attributes inherited from PWidget | |
| pInt | mX |
| pInt | mY |
| pInt | mDrawX |
| pInt | mDrawY |
| pInt | mWidth |
| pInt | mHeight |
| pDouble | mZoomX |
| pDouble | mZoomY |
| pDouble | mRotation |
| PColor | mBackgroundColor |
| The background color of the widget. if alpha = 0, will not be painted. | |
| std::list< PWidget * > | mSubWidgets |
| bool | mIsVisible |
| PWidget * | mParent |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
| PCanvas::PCanvas | ( | ) |
Definition at line 39 of file PCanvas.cpp.
References PEBLObjectBase::InitializeProperty(), and mReset.
| PCanvas::PCanvas | ( | int | width, |
| int | height, | ||
| Variant | color | ||
| ) |
Definition at line 50 of file PCanvas.cpp.
References PEBLObjectBase::InitializeProperty(), mDrawBackground, mReset, SetHeight(), and SetWidth().
| PCanvas::PCanvas | ( | int | width, |
| int | height | ||
| ) |
Definition at line 64 of file PCanvas.cpp.
References PEBLObjectBase::InitializeProperty(), mDrawBackground, mReset, SetHeight(), and SetWidth().
| PCanvas::PCanvas | ( | PCanvas & | canvas | ) |
|
virtual |
Definition at line 79 of file PCanvas.cpp.
|
inlinevirtual |
Definition at line 60 of file PCanvas.h.
References mDrawBackground.
Referenced by PlatformCanvas::PlatformCanvas().
|
virtual |
Reimplemented from PWidget.
Definition at line 122 of file PCanvas.cpp.
References PWidget::GetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformCanvas, and PlatformCanvas.
Definition at line 162 of file PCanvas.cpp.
|
inlineprotectedvirtual |
An inheritable printing class used by PEBLObjectBase::operator<<.
Reimplemented from PWidget.
Reimplemented in PlatformCanvas, and PlatformCanvas.
Definition at line 68 of file PCanvas.h.
|
virtual |
Definition at line 112 of file PCanvas.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetObject(), mReset, PWidget::SetBackgroundColor(), and PEBLObjectBase::SetProperty().
Referenced by PlatformCanvas::PlatformCanvas(), and SetProperty().
|
virtual |
Definition at line 145 of file PCanvas.cpp.
References PWidget::mHeight, and mReset.
Referenced by PCanvas(), PCanvas(), and SetProperty().
This sets the widget's position on its parent widget.
Sets the location of the upper left-hand corner of the image on the parent widget; unless overridden
Reimplemented from PWidget.
Definition at line 102 of file PCanvas.cpp.
References PWidget::GetHeight(), PWidget::GetWidth(), PWidget::mDrawX, PWidget::mDrawY, PWidget::mX, PWidget::mY, and PEBLObjectBase::SetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformCanvas, and PlatformCanvas.
Definition at line 84 of file PCanvas.cpp.
References SetColor(), SetHeight(), PWidget::SetProperty(), and SetWidth().
Referenced by PlatformCanvas::SetProperty(), and PlatformCanvas::SetProperty().
|
virtual |
Definition at line 153 of file PCanvas.cpp.
References mReset, and PWidget::mWidth.
Referenced by PCanvas(), PCanvas(), and SetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformCanvas.
Definition at line 133 of file PCanvas.cpp.
References PWidget::ValidateProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformCanvas.
Definition at line 128 of file PCanvas.cpp.
References ValidateProperty().
Referenced by PlatformCanvas::ValidateProperty(), PlatformCanvas::ValidateProperty(), and ValidateProperty().
|
protected |
Definition at line 66 of file PCanvas.h.
Referenced by GetDrawBackground(), PCanvas(), PCanvas(), and PlatformCanvas::PlatformCanvas().
|
protected |
Definition at line 67 of file PCanvas.h.
Referenced by PlatformCanvas::Draw(), PCanvas(), PCanvas(), PCanvas(), PlatformCanvas::Reset(), SetColor(), SetHeight(), and SetWidth().