30 #ifndef _GG_BrowseInfoWnd_h_
31 #define _GG_BrowseInfoWnd_h_
58 virtual bool WndHasBrowseInfo(
const Wnd* wnd, std::size_t mode)
const = 0;
62 virtual void Render() = 0;
70 void Update(std::size_t mode,
const Wnd* target);
73 void SetCursorPosition(
const Pt& cursor_pos);
81 mutable boost::function<
94 virtual void UpdateImpl(std::size_t mode,
const Wnd* target);
112 unsigned int border_width = 2,
unsigned int text_margin = 4);
116 virtual bool WndHasBrowseInfo(
const Wnd* wnd, std::size_t mode)
const;
118 bool TextFromTarget()
const;
119 const std::string& Text ()
const;
120 const boost::shared_ptr<Font>& GetFont()
const;
122 Clr BorderColor()
const;
123 Clr TextColor()
const;
125 unsigned int BorderWidth()
const;
126 unsigned int TextMargin()
const;
130 void SetText(
const std::string& str);
131 virtual void Render();
133 void SetTextFromTarget(
bool b);
134 void SetFont(
const boost::shared_ptr<Font>& font);
135 void SetColor(
Clr color);
136 void SetBorderColor(
Clr border_color);
137 void SetTextColor(
Clr text_color);
139 void SetBorderWidth(
unsigned int border_width);
140 void SetTextMargin(
unsigned int text_margin);
149 virtual void UpdateImpl(std::size_t mode,
const Wnd* target);
151 bool m_text_from_target;
152 boost::shared_ptr<Font> m_font;
155 unsigned int m_border_width;