rofi  1.5.2
view-internal.h
Go to the documentation of this file.
1 /*
2  * rofi
3  *
4  * MIT/X11 License
5  * Copyright © 2013-2017 Qball Cow <qball@gmpclient.org>
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining
8  * a copy of this software and associated documentation files (the
9  * "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sublicense, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to
13  * the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be
16  * included in all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25  *
26  */
27 
28 #ifndef ROFI_VIEW_INTERNAL_H
29 #define ROFI_VIEW_INTERNAL_H
30 #include "widgets/container.h"
31 #include "widgets/widget.h"
32 #include "widgets/textbox.h"
33 #include "widgets/listview.h"
34 #include "widgets/box.h"
35 #include "widgets/icon.h"
36 #include "keyb.h"
37 #include "xcb.h"
38 #include "theme.h"
39 
45 // State of the menu.
46 
48 {
50  Mode *sw;
51 
53  int refilter;
62 
71 
73  int *distance;
75  unsigned int *line_map;
77  unsigned int num_lines;
78 
80  unsigned int filtered_lines;
81 
85  xcb_timestamp_t last_button_press;
86 
88  int quit;
92  unsigned int selected_line;
97 
101  unsigned int num_modi;
109  int reload;
111  void ( *finalize )( struct RofiViewState *state );
112 
114  int width;
116  int height;
118  int x;
120  int y;
121 
123  struct
124  {
126  int x;
128  int y;
131  } mouse;
132 
135 };
137 #endif
unsigned int * line_map
Definition: view-internal.h:75
Definition: box.c:41
MenuReturn
Definition: mode.h:66
textbox ** modi
xcb_timestamp_t last_button_press
Definition: view-internal.h:85
Definition: xcb.h:99
KeyBindingAction prev_action
Definition: view-internal.h:83
workarea mon
Definition: view-internal.h:96
unsigned int num_lines
Definition: view-internal.h:77
textbox * prompt
Definition: view-internal.h:57
textbox * mesg_tb
Definition: view-internal.h:70
struct RofiViewState::@4 mouse
MenuReturn retv
Definition: view-internal.h:94
container * mesg_box
Definition: view-internal.h:68
textbox * text
Definition: view-internal.h:59
KeyBindingAction
Definition: keyb.h:58
void(* finalize)(struct RofiViewState *state)
textbox * case_indicator
Definition: view-internal.h:61
unsigned int filtered_lines
Definition: view-internal.h:80
listview * list_view
Definition: view-internal.h:64
textbox * overlay
Definition: view-internal.h:66
rofi_int_matcher ** tokens
unsigned int num_modi
unsigned int selected_line
Definition: view-internal.h:92
MenuFlags menu_flags
MenuFlags
Definition: view.h:43
widget * motion_target