Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r--src/ui/ui.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h
index aaf4acc..009bed6 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -10,6 +10,7 @@
#include "ui/console.h"
#include "ui/font.h"
#include "ui/palette.h"
+#include "ui/tooltip.h"
#include "ui/widget.h"
#include "ui/window.h"
@@ -64,7 +65,7 @@ public:
/// load settings from ui.ini
void load_settings();
- /* -- fonts ------------------------------------------------ */
+ /* -- font & icon sizes------------------------------------- */
/// default tiny font
inline const Font *font_tiny() const {
@@ -76,17 +77,18 @@ public:
return ui_font_small;
}
- /// default medium font
+ /// default large font
inline const Font *font_large() const {
return ui_font_large;
}
-
+
+ /* -- mouse pointer ---------------------------------------- */
+
+ /// current position of the mouse cursor in global window coordinates
inline const math::Vector2f & global_mouse_coords()
{
return mouse_cursor;
}
-
- /* -- mouse pointer ---------------------------------------- */
/// set mouse pointer bitmap
void set_pointer(const char *pointerbitmap = 0, const Palette::Color color = Palette::Highlight, const bool animated = false);
@@ -109,7 +111,8 @@ public:
static float pointer_size;
-
+ static float icon_small;
+
protected:
/* -- event handlers --------------------------------------- */
@@ -138,6 +141,8 @@ private:
Palette::Color mouse_pointer_color;
bool mouse_pointer_animated;
bool mouse_buttonleft_pressed;
+
+ unsigned long ui_tooltip_timestamp;
};
/// initialize the user interface