|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PlatformEnvironment.h>
Public Member Functions | |
| PlatformEnvironment (PEBLVideoMode mode, PEBLVideoDepth depth, bool windowed, bool resizeable, bool unicode) | |
| Standard Constructor. | |
| virtual | ~PlatformEnvironment () |
| Standard Destructor. | |
| void | Initialize () |
| This method initiates everything needed to display the main window. | |
| virtual bool | Draw () |
| PEBLVideoMode | GetVideoMode () |
| PEBLVideoDepth | GetVideoDepth () |
| bool | GetWindowed () |
| Variant | GetScreenModes (int screen=-1) |
| Variant | GetResizeable () |
| virtual bool | SetProperty (std::string, Variant v) |
| virtual Variant | GetProperty (std::string) const |
| virtual int | ShowCursor (int val) |
| virtual int | SetCursorPosition (int x, int y) |
| virtual Variant | GetCursorPosition () |
| virtual void | SetKeyRepeat (bool onoff) |
| virtual Variant | GetMouseState () |
| virtual bool | GetUnicode () |
| virtual int | GetNumJoysticks () |
| virtual Variant | GetJoystick (int index) |
| virtual std::string | GetSystemLocale () |
| virtual bool | IsSystemLocaleRTL () |
| PlatformEnvironment (PEBLVideoMode mode, PEBLVideoDepth depth, bool windowed, bool resizeable, bool unicode) | |
| virtual | ~PlatformEnvironment () |
| void | Initialize () |
| virtual bool | Draw () |
| PEBLVideoMode | GetVideoMode () |
| PEBLVideoDepth | GetVideoDepth () |
| bool | GetWindowed () |
| Variant | GetScreenModes (int screen=-1) |
| Variant | GetResizeable () |
| virtual bool | SetProperty (std::string, Variant v) |
| virtual Variant | GetProperty (std::string) const |
| virtual int | ShowCursor (int val) |
| virtual int | SetCursorPosition (int x, int y) |
| virtual Variant | GetCursorPosition () |
| virtual void | SetKeyRepeat (bool onoff) |
| virtual Variant | GetMouseState () |
| virtual bool | GetUnicode () |
| virtual int | GetNumJoysticks () |
| virtual Variant | GetJoystick (int index) |
| virtual std::string | GetSystemLocale () |
| virtual bool | IsSystemLocaleRTL () |
Public Member Functions inherited from PEnvironment | |
| PEnvironment () | |
| virtual | ~PEnvironment () |
| virtual bool | IsInitialized () |
| virtual bool | AddWindow (PWindow *window) |
| virtual PWindow * | GetWindow (int index=0) |
| virtual bool | RemoveWindow (PWindow *window) |
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 |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::string | ObjectName () const |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
| virtual std::ostream & | SendToStream (std::ostream &out) const |
Additional Inherited Members | |
Protected Attributes inherited from PEnvironment | |
| bool | mIsInitialized |
| std::list< PWindow * > | mWindows |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
This class initializes the the SDL environment, which may include the video and audio interfaces, the ttf renderer, etc.
Headless platform environment - minimal initialization without SDL Used for validation mode where no actual display is needed
Definition at line 61 of file sdl/PlatformEnvironment.h.
| PlatformEnvironment::PlatformEnvironment | ( | PEBLVideoMode | mode, |
| PEBLVideoDepth | depth, | ||
| bool | windowed, | ||
| bool | resizeable, | ||
| bool | unicode | ||
| ) |
Standard Constructor.
Definition at line 62 of file sdl/PlatformEnvironment.cpp.
References PEnvironment::mIsInitialized.
|
virtual |
Standard Destructor.
Definition at line 77 of file sdl/PlatformEnvironment.cpp.
References PEnvironment::mWindows.
| PlatformEnvironment::PlatformEnvironment | ( | PEBLVideoMode | mode, |
| PEBLVideoDepth | depth, | ||
| bool | windowed, | ||
| bool | resizeable, | ||
| bool | unicode | ||
| ) |
|
virtual |
|
virtual |
This method 'draws' the environment; it iterates through each window in the environment and calls the draw method on each.
Definition at line 199 of file sdl/PlatformEnvironment.cpp.
References PEnvironment::mWindows.
Referenced by PEBLObjects::Draw(), PEBLEnvironment::GetInput0(), main(), and PlatformEventQueue::Prime().
|
virtual |
|
virtual |
Definition at line 260 of file sdl/PlatformEnvironment.cpp.
References PList::PushBack().
Referenced by PEBLEnvironment::GetCursorPosition().
|
virtual |
|
virtual |
Definition at line 329 of file sdl/PlatformEnvironment.cpp.
References PError::SignalFatalError().
|
virtual |
|
virtual |
Definition at line 287 of file sdl/PlatformEnvironment.cpp.
References PList::PushBack().
Referenced by PEBLEnvironment::GetMouseState().
|
virtual |
|
virtual |
Definition at line 312 of file sdl/PlatformEnvironment.cpp.
References PError::SignalWarning().
Referenced by PEBLEnvironment::GetNumJoysticks().
|
virtual |
|
virtual |
Definition at line 222 of file sdl/PlatformEnvironment.cpp.
References PEBLObjectBase::GetProperty().
|
virtual |
|
inline |
Definition at line 80 of file sdl/PlatformEnvironment.h.
Referenced by PEBLObjects::MakeWindow().
|
inline |
Definition at line 52 of file validator/PlatformEnvironment.h.
| Variant PlatformEnvironment::GetScreenModes | ( | int | screen = -1 | ) |
Definition at line 349 of file sdl/PlatformEnvironment.cpp.
References NULL, and PList::PushBack().
Referenced by PEBLEnvironment::GetVideoModes().
| Variant PlatformEnvironment::GetScreenModes | ( | int | screen = -1 | ) |
|
virtual |
Implements PEnvironment.
Definition at line 415 of file sdl/PlatformEnvironment.cpp.
Referenced by PEBLString::GetSystemLocale(), and IsSystemLocaleRTL().
|
inlinevirtual |
Implements PEnvironment.
Definition at line 69 of file validator/PlatformEnvironment.h.
|
inlinevirtual |
Definition at line 93 of file sdl/PlatformEnvironment.h.
|
inlinevirtual |
Definition at line 63 of file validator/PlatformEnvironment.h.
|
inline |
Definition at line 76 of file sdl/PlatformEnvironment.h.
Referenced by PEBLObjects::MakeWindow().
|
inline |
Definition at line 48 of file validator/PlatformEnvironment.h.
|
inline |
Definition at line 75 of file sdl/PlatformEnvironment.h.
Referenced by PEBLObjects::MakeWindow().
|
inline |
Definition at line 47 of file validator/PlatformEnvironment.h.
|
inline |
Definition at line 77 of file sdl/PlatformEnvironment.h.
Referenced by PEBLObjects::MakeWindow().
|
inline |
Definition at line 49 of file validator/PlatformEnvironment.h.
|
virtual |
This method initiates everything needed to display the main window.
Implements PEnvironment.
Definition at line 99 of file sdl/PlatformEnvironment.cpp.
References PEBLUtility::InitializeKeycodeLookups(), PEnvironment::mIsInitialized, and SDLINIT_FLAGS.
Referenced by main(), and PEBLObjects::MakeEnvironment().
|
virtual |
Implements PEnvironment.
|
virtual |
Implements PEnvironment.
Definition at line 439 of file sdl/PlatformEnvironment.cpp.
References GetSystemLocale().
Referenced by PEBLString::IsSystemLocaleRTL().
|
inlinevirtual |
Implements PEnvironment.
Definition at line 70 of file validator/PlatformEnvironment.h.
|
protectedvirtual |
Reimplemented from PEnvironment.
Definition at line 123 of file validator/PlatformEnvironment.cpp.
|
protectedvirtual |
Reimplemented from PEnvironment.
|
virtual |
Definition at line 244 of file sdl/PlatformEnvironment.cpp.
References PEnvironment::mWindows.
Referenced by PEBLEnvironment::SetCursorPosition().
|
virtual |
|
virtual |
Definition at line 276 of file sdl/PlatformEnvironment.cpp.
Referenced by PEBLEnvironment::GetInput0().
|
virtual |
|
virtual |
Reimplemented from PEBLObjectBase.
Definition at line 216 of file sdl/PlatformEnvironment.cpp.
|
virtual |
Reimplemented from PEBLObjectBase.
|
virtual |
Definition at line 230 of file sdl/PlatformEnvironment.cpp.
Referenced by PEBLEnvironment::ShowCursor().
|
virtual |