The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
surface Struct Reference

#include <utils.hpp>

Classes

struct  free_sdl_surface
 

Public Member Functions

 surface ()
 
 surface (SDL_Surface *surf)
 
 surface (const surface &o)
 
void assign (const surface &o)
 
surfaceoperator= (const surface &o)
 
 operator SDL_Surface * () const
 
SDL_Surface * get () const
 
SDL_Surface * operator-> () const
 
void assign (SDL_Surface *surf)
 
bool null () const
 

Private Types

typedef util::scoped_resource
< SDL_Surface
*, free_sdl_surface
scoped_sdl_surface
 

Static Private Member Functions

static void sdl_add_ref (SDL_Surface *surf)
 

Private Attributes

scoped_sdl_surface surface_
 

Detailed Description

Definition at line 53 of file utils.hpp.

Member Typedef Documentation

Definition at line 70 of file utils.hpp.

Constructor & Destructor Documentation

surface::surface ( )
inline

Definition at line 72 of file utils.hpp.

surface::surface ( SDL_Surface *  surf)
inline

Definition at line 75 of file utils.hpp.

surface::surface ( const surface o)
inline

Member Function Documentation

void surface::assign ( const surface o)
inline
void surface::assign ( SDL_Surface *  surf)
inline

Definition at line 102 of file utils.hpp.

References util::scoped_resource< T, ReleasePolicy >::assign(), and surface_.

SDL_Surface* surface::get ( ) const
inline
bool surface::null ( ) const
inline
surface::operator SDL_Surface * ( ) const
inline

Definition at line 96 of file utils.hpp.

References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.

SDL_Surface* surface::operator-> ( ) const
inline

Definition at line 100 of file utils.hpp.

References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.

surface& surface::operator= ( const surface o)
inline

Definition at line 90 of file utils.hpp.

References assign().

static void surface::sdl_add_ref ( SDL_Surface *  surf)
inlinestaticprivate

Definition at line 56 of file utils.hpp.

Referenced by assign(), and surface().

Member Data Documentation

scoped_sdl_surface surface::surface_
private

Definition at line 107 of file utils.hpp.

Referenced by assign(), get(), null(), operator SDL_Surface *(), operator->(), and surface().


The documentation for this struct was generated from the following file: