#include "global.hpp"#include "tooltips.hpp"#include "floating_label.hpp"#include "font.hpp"#include "game_display.hpp"#include "help/help.hpp"#include "marked-up_text.hpp"#include "resources.hpp"#include "video.hpp"#include <SDL.h>
Go to the source code of this file.
Namespaces | |
| tooltips | |
| tooltips. | |
Functions | |
| static void | clear_tooltip () |
| static void | show_tooltip (const tooltip &tip) |
| void | tooltips::clear_tooltips () |
| void | tooltips::clear_tooltips (const SDL_Rect &rect) |
| bool | tooltips::update_tooltip (int id, const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup) |
| bool | tooltips::update_tooltip (int id, const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup, const surface &foreground) |
| void | tooltips::remove_tooltip (int id) |
| int | tooltips::add_tooltip (const SDL_Rect &rect, const std::string &message, const std::string &action, bool use_markup, const surface &foreground) |
| void | tooltips::process (int mousex, int mousey) |
| bool | tooltips::click (int mousex, int mousey) |
|
static |
Definition at line 57 of file tooltips.cpp.
References font::remove_floating_label().
Referenced by tooltips::clear_tooltips(), tooltips::process(), tooltips::remove_tooltip(), and show_tooltip().
|
static |
Definition at line 65 of file tooltips.cpp.
References font::add_floating_label(), clear_tooltip(), font::get_floating_label_rect(), font::LEFT_ALIGN, font::move_floating_label(), font::NORMAL_COLOR, screen_area(), font::floating_label::set_alignment(), font::floating_label::set_bg_color(), font::floating_label::set_border_size(), font::floating_label::set_clip_rect(), font::floating_label::set_color(), font::floating_label::set_font_size(), font::floating_label::set_width(), and font::floating_label::use_markup().
Referenced by tooltips::process().
1.8.8