zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Core Class Reference

The Core Singleton. More...

#include <Core.h>

Inherits Zeni::Singleton< Core >.

Public Member Functions

bool is_screen_saver_enabled ()
 Check to see if the screen saver is enabled. More...
 
void set_screen_saver (const bool &enabled)
 Enable/Disable the screen saver. More...
 
- Public Member Functions inherited from Zeni::Singleton< Core >
void fax_post_reinit (Event::Handler *const &handler)
 
void fax_pre_uninit (Event::Handler *const &handler)
 
void give_post_reinit (Event::Handler *const &handler)
 
void give_pre_uninit (Event::Handler *const &handler)
 
void lend_post_reinit (Event::Handler *const &handler)
 
void lend_pre_uninit (Event::Handler *const &handler)
 

Static Public Member Functions

static void assert_no_error ()
 If there is an SDL error, print it and assert(false) More...
 
static bool print_error ()
 If there is an SDL error, print it and then clear it; returns true iff there was an error. More...
 
- Static Public Member Functions inherited from Zeni::Singleton< Core >
static void completely_destroy ()
 
static void destroy ()
 
static Coreget ()
 
static bool is_initialized ()
 
static void remove_post_reinit (Event::Handler *const &handler)
 
static void remove_pre_uninit (Event::Handler *const &handler)
 

Friends

class Singleton< Core >
 

Additional Inherited Members

- Protected Member Functions inherited from Zeni::Singleton< Core >
 Singleton ()
 
virtual ~Singleton ()
 

Detailed Description

The Core Singleton.

The Core singleton essentially initializes and uninitializes SDL. It is depended upon by most other classes in some way.

Note
You almost definitely don't need to interact directly with this class.
Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 53 of file Core.h.

Member Function Documentation

void Zeni::Core::assert_no_error ( )
static
bool Zeni::Core::is_screen_saver_enabled ( )

Check to see if the screen saver is enabled.

Definition at line 85 of file Core.cpp.

References BOOL(), and SDL_IsScreenSaverEnabled().

bool Zeni::Core::print_error ( )
static

If there is an SDL error, print it and then clear it; returns true iff there was an error.

Definition at line 132 of file Core.cpp.

References SDL_ClearError(), and SDL_GetError().

Referenced by Zeni::Window::Window(), and Zeni::Window::~Window().

void Zeni::Core::set_screen_saver ( const bool &  enabled)

Friends And Related Function Documentation

friend class Singleton< Core >
friend

Definition at line 54 of file Core.h.


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