3 #include <gtkmm/entry.h>
8 class SearchBar : public Gtk::Entry
11 SearchBar(const std::string& placeholder_text = "Search...", bool icon_click_resets = true);
14 // emitted when the filter has been updated
15 sigc::signal<void, const std::string&> signal_search_string_updated () { return sig_search_string_updated; }
17 bool focus_in_event (GdkEventFocus*);
18 bool focus_out_event (GdkEventFocus*);
20 bool key_press_event (GdkEventKey*);
21 void icon_clicked_event (Gtk::EntryIconPosition, const GdkEventButton*);
23 const std::string placeholder_text;
24 sigc::signal<void, const std::string&> sig_search_string_updated;
26 void search_string_changed () const;
28 Glib::RefPtr<Gdk::Pixbuf> icon;
29 bool icon_click_resets;