mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 02:29:25 +00:00
42 lines
911 B
C++
42 lines
911 B
C++
/* $Id$ */
|
|
/*
|
|
Copyright (C) 2003 - 2009 by David White <dave@whitevine.net>
|
|
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License version 2
|
|
or at your option any later version.
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY.
|
|
|
|
See the COPYING file for more details.
|
|
*/
|
|
|
|
#ifndef TOOLTIPS_HPP_INCLUDED
|
|
#define TOOLTIPS_HPP_INCLUDED
|
|
|
|
#include "SDL.h"
|
|
|
|
#include <string>
|
|
|
|
#include "font.hpp"
|
|
|
|
class CVideo;
|
|
|
|
namespace tooltips {
|
|
|
|
struct manager
|
|
{
|
|
manager(CVideo& video);
|
|
~manager();
|
|
};
|
|
|
|
void clear_tooltips();
|
|
void clear_tooltips(const SDL_Rect& rect);
|
|
void add_tooltip(const SDL_Rect& rect, const std::string& message, const SDL_Color& color = font::NORMAL_COLOUR);
|
|
void process(int mousex, int mousey);
|
|
|
|
}
|
|
|
|
#endif
|