#include <sdl_utils.hpp>
Public Member Functions | |
surface () | |
surface (SDL_Surface *surf) | |
surface (const surface &o) | |
void | assign (const surface &o) |
surface & | operator= (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_ |
Classes | |
struct | free_sdl_surface |
Definition at line 61 of file sdl_utils.hpp.
typedef util::scoped_resource<SDL_Surface*,free_sdl_surface> surface::scoped_sdl_surface [private] |
Definition at line 78 of file sdl_utils.hpp.
surface::surface | ( | ) | [inline] |
Definition at line 80 of file sdl_utils.hpp.
surface::surface | ( | SDL_Surface * | surf | ) | [inline] |
Definition at line 83 of file sdl_utils.hpp.
surface::surface | ( | const surface & | o | ) | [inline] |
Definition at line 86 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), sdl_add_ref(), and surface_.
static void surface::sdl_add_ref | ( | SDL_Surface * | surf | ) | [inline, static, private] |
void surface::assign | ( | const surface & | o | ) | [inline] |
Definition at line 91 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), util::scoped_resource< T, ReleasePolicy >::get(), sdl_add_ref(), and surface_.
Referenced by gui::textbox::append_text(), gui::button::button(), surface_restorer::cancel(), gui2::tlistbox::draw(), map_editor::brush_bar::draw(), map_editor::terrain_palette::draw(), gui2::tcanvas::draw(), gui::scrollbar::draw_contents(), dialogs::campaign_preview_pane::draw_contents(), display::draw_image_for_report(), draw_label(), draw_panel(), gui::scrollbar::handle_event(), game_display::new_turn(), operator=(), display::redraw_everything(), unit::redraw_unit(), display::refresh_report(), display::render_unit_image(), gui2::tlistbox::set_size(), show_intro_part(), gui2::timage::timage(), surface_restorer::update(), and gui::textbox::update_text_cache().
surface::operator SDL_Surface * | ( | ) | const [inline] |
Definition at line 104 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
SDL_Surface* surface::get | ( | ) | const [inline] |
Definition at line 106 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
Referenced by gui::textbox::append_text(), image::get_scaled_to_zoom(), and operator<().
SDL_Surface* surface::operator-> | ( | ) | const [inline] |
Definition at line 108 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
void surface::assign | ( | SDL_Surface * | surf | ) | [inline] |
Definition at line 110 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), and surface_.
bool surface::null | ( | ) | const [inline] |
Definition at line 112 of file sdl_utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
Referenced by help::help_text_area::add_img_item(), help::help_text_area::add_text_item(), gui::button::button(), gui::dialog_image::dialog_image(), draw_background(), gui::scrollbar::draw_contents(), mp::wait::leader_preview_pane::draw_contents(), dialogs::campaign_preview_pane::draw_contents(), draw_label(), draw_panel(), font::draw_text_line(), gui::menu::style::get_item_image(), image::get_scaled_to_zoom(), display::get_terrain_images(), gui::menu::imgsel_style::load_image(), image::locator::load_image_file(), unit::redraw_unit(), font::render_text(), surface_restorer::restore(), gui::show_dialog(), show_intro_part(), gui::slider::slider_area(), and gui::textbox::update_text_cache().
scoped_sdl_surface surface::surface_ [private] |
Definition at line 115 of file sdl_utils.hpp.
Referenced by assign(), get(), null(), operator SDL_Surface *(), operator->(), and surface().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |