#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) |
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_ |
|
private |
|
inline |
Definition at line 78 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), sdl_add_ref(), and surface_.
Definition at line 83 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), util::scoped_resource< T, ReleasePolicy >::get(), sdl_add_ref(), surf, and surface_.
Referenced by gui::textbox::append_text(), surface_restorer::cancel(), font::ttext::create_surface_buffer(), font::floating_label::draw(), gui2::tcanvas::draw(), gui::slider::draw_contents(), gui::tristate_button::draw_contents(), gui::scrollbar::draw_contents(), display::draw_image_for_report(), editor::item_palette::draw_item(), editor::terrain_palette::draw_item(), draw_label(), draw_panel(), gui::scrollbar::handle_event(), gui::button::load_images(), game_display::new_turn(), operator=(), storyscreen::part_ui::prepare_background(), display::refresh_report(), font::ttext::rerender(), gui::tristate_button::tristate_button(), font::floating_label::undraw(), surface_restorer::update(), CVideo::update_framebuffer(), gui::textbox::update_text_cache(), and font::ttext::~ttext().
|
inline |
Definition at line 102 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::assign(), and surface_.
|
inline |
Definition at line 98 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
Referenced by gui::textbox::append_text(), get_cursor(), image::get_scaled_to_zoom(), operator<(), image::save_image(), and image::scale_xbrz_helper().
|
inline |
Definition at line 104 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
Referenced by help::help_text_area::add_img_item(), image::add_localized_overlay(), help::help_text_area::add_text_item(), ng::scenario::create_image_surface(), font::floating_label::create_surface(), gui::dialog_image::dialog_image(), gui::dialog_frame::draw_background(), draw_background(), gui::dialog_frame::draw_border(), mp::wait::leader_preview_pane::draw_contents(), gui::button::draw_contents(), gui::tristate_button::draw_contents(), gui::scrollbar::draw_contents(), display::draw_hex(), draw_label(), draw_panel(), font::draw_text_line(), footsteps_images(), gui::menu::style::get_item_image(), storyscreen::floating_image::get_render_input(), image::get_scaled_to_hex(), image::get_scaled_to_zoom(), display::get_terrain_images(), gui::menu::imgsel_style::load_image(), image::load_image_file(), gui::button::load_images(), storyscreen::part_ui::prepare_background(), unit_drawer::redraw_unit(), storyscreen::part_ui::render_story_box(), storyscreen::part_ui::render_story_box_borders(), font::render_text(), storyscreen::part_ui::render_title_box(), surface_restorer::restore(), image::save_image(), gui::textbox::set_inner_location(), gui::show_dialog(), gui::slider::slider_area(), and gui::textbox::update_text_cache().
|
inline |
Definition at line 96 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
|
inline |
Definition at line 100 of file utils.hpp.
References util::scoped_resource< T, ReleasePolicy >::get(), and surface_.
|
inlinestaticprivate |
|
private |
Definition at line 107 of file utils.hpp.
Referenced by assign(), get(), null(), operator SDL_Surface *(), operator->(), and surface().