tooltips.cpp File Reference

#include "global.hpp"
#include "font.hpp"
#include "marked-up_text.hpp"
#include "sdl_utils.hpp"
#include "tooltips.hpp"
#include "video.hpp"
#include <vector>

Include dependency graph for tooltips.cpp:

Go to the source code of this file.

Namespaces

namespace  tooltips

Functions

static bool rectangles_overlap (const SDL_Rect &a, const SDL_Rect &b)
static void clear_tooltip ()
static void show_tooltip (const tooltip &tip)
void tooltips::clear_tooltips ()
void tooltips::clear_tooltips (const SDL_Rect &rect)
void tooltips::add_tooltip (const SDL_Rect &rect, const std::string &message)
void tooltips::process (int mousex, int mousey)

Variables

CVideovideo_ = NULL
static const int font_size = font::SIZE_SMALL
static const int text_width = 400
std::vector< tooltip > tips
std::vector< tooltip >
::const_iterator 
current_tooltip = tips.end()
int tooltip_handle = 0
surface current_background = NULL


Function Documentation

static void clear_tooltip (  )  [static]

static bool rectangles_overlap ( const SDL_Rect &  a,
const SDL_Rect &  b 
) [static]

Definition at line 25 of file tooltips.cpp.

Referenced by tooltips::add_tooltip(), and tooltips::clear_tooltips().

static void show_tooltip ( const tooltip &  tip  )  [static]


Variable Documentation

surface current_background = NULL [static]

Definition at line 60 of file tooltips.cpp.

std::vector<tooltip>::const_iterator current_tooltip = tips.end() [static]

Definition at line 56 of file tooltips.cpp.

const int font_size = font::SIZE_SMALL [static]

std::string message

SDL_Rect rect

const int text_width = 400 [static]

std::vector<tooltip> tips [static]

Definition at line 55 of file tooltips.cpp.

Referenced by get_tip_of_day(), next_tip_of_day(), and read_tips_of_day().

int tooltip_handle = 0 [static]

Definition at line 58 of file tooltips.cpp.

Referenced by clear_tooltip(), and show_tooltip().

CVideo* video_ = NULL [static]

Definition at line 38 of file tooltips.cpp.


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs