Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
findbar.hh
Go to the documentation of this file.
1#ifndef __FINDBAR_HH__
2#define __FINDBAR_HH__
3
4#include <FL/Fl_Pixmap.H>
5#include <FL/Fl_Widget.H>
6#include <FL/Fl_Button.H>
7#include <FL/Fl_Input.H>
8#include <FL/Fl_Group.H>
9#include <FL/Fl_Check_Button.H>
10
11#include "tipwin.hh"
12
16class Findbar : public Fl_Group {
18 Fl_Check_Button *check_btn;
19 Fl_Pixmap *hideImg;
20 Fl_Input *i;
21
22 static void search_cb (Fl_Widget *, void *);
23 static void searchBackwards_cb (Fl_Widget *, void *);
24 static void hide_cb (Fl_Widget *, void *);
25
26public:
27 Findbar(int width, int height);
28 ~Findbar();
29 int handle(int event);
30 void show();
31};
32
33#endif // __FINDBAR_HH__
A button that highlights on mouse over.
Definition tipwin.hh:49
Searchbar to find text in page.
Definition findbar.hh:16
static void hide_cb(Fl_Widget *, void *)
Hide the search bar.
Definition findbar.cc:107
int handle(int event)
Handle events.
Definition findbar.cc:182
Fl_Pixmap * hideImg
Definition findbar.hh:19
CustButton * hide_btn
Definition findbar.hh:17
void show()
Show the findbar and focus the input field.
Definition findbar.cc:198
Fl_Check_Button * check_btn
Definition findbar.hh:18
static void searchBackwards_cb(Fl_Widget *, void *)
Find previous occurrence of input key.
Definition findbar.cc:92
~Findbar()
Definition findbar.cc:174
CustButton * next_btn
Definition findbar.hh:17
static void search_cb(Fl_Widget *, void *)
Find next occurrence of input key.
Definition findbar.cc:78
CustButton * prev_btn
Definition findbar.hh:17
Fl_Input * i
Definition findbar.hh:20