24#ifndef __ROLLOVERWIN_H__
25#define __ROLLOVERWIN_H__
29#include "ocpn_types.h"
30#include "color_types.h"
35enum { AIS_ROLLOVER = 1, LEG_ROLLOVER = 2, TC_ROLLOVER = 3 };
39 RolloverWin(wxWindow *parent,
int timeout = -1,
bool maincanvas =
true);
42 void OnPaint(wxPaintEvent &event);
45 void SetColorScheme(ColorScheme cs);
46 void SetString(
const wxString &s) { m_string = s; }
47 void SetPosition(wxPoint pt) { m_position = pt; }
48 void SetBitmap(
int rollover);
49 wxBitmap *GetBitmap() {
return m_pbm; }
50 void SetBestPosition(
int x,
int y,
int off_x,
int off_y,
int rollover,
52 void OnTimer(wxTimerEvent &event);
53 void OnMouseEvent(wxMouseEvent &event);
54 void SetMousePropogation(
int level) { m_mmouse_propogate = level; }
55 bool IsActive() {
return isActive; }
56 void IsActive(
bool state) { isActive = state; }
63 wxTimer m_timer_timeout;
65 int m_mmouse_propogate;
66 unsigned int m_texture;