|
Pepper_47_C++_interfaces
|
The Fullscreen class allowing you to check and toggle fullscreen mode. More...
#include <fullscreen.h>

Public Member Functions | |
| Fullscreen (const InstanceHandle &instance) | |
| virtual | ~Fullscreen () |
| Destructor. More... | |
| bool | IsFullscreen () |
| bool | SetFullscreen (bool fullscreen) |
| bool | GetScreenSize (Size *size) |
The Fullscreen class allowing you to check and toggle fullscreen mode.
Definition at line 19 of file fullscreen.h.
|
explicit |
A constructor for creating a Fullscreen.
| [in] | instance | The instance with which this resource will be associated. |
Definition at line 23 of file fullscreen.cc.
|
virtual |
Destructor.
Definition at line 27 of file fullscreen.cc.
GetScreenSize() gets the size of the screen in pixels. The module instance will be resized to this size when SetFullscreen() is called to enter fullscreen mode.
| [out] | size | The size of the entire screen in pixels. |
true on success or false on failure. Definition at line 43 of file fullscreen.cc.
References pp::InstanceHandle::pp_instance(), and pp::Size::pp_size().
| bool pp::Fullscreen::IsFullscreen | ( | ) |
IsFullscreen() checks whether the module instance is currently in fullscreen mode.
true if the module instance is in fullscreen mode, false if the module instance is not in fullscreen mode. Definition at line 30 of file fullscreen.cc.
References pp::InstanceHandle::pp_instance().
SetFullscreen() switches the module instance to and from fullscreen mode.
The transition to and from fullscreen mode is asynchronous. During the transition, IsFullscreen() will return the previous value and no 2D or 3D device can be bound. The transition ends at DidChangeView() when IsFullscreen() returns the new value. You might receive other DidChangeView() calls while in transition.
The transition to fullscreen mode can only occur while the browser is processing a user gesture, even if true is returned.
| [in] | fullscreen | true to enter fullscreen mode, or false to exit fullscreen mode. |
true on success or false on failure. Definition at line 36 of file fullscreen.cc.
References pp::InstanceHandle::pp_instance().
1.8.6