rofi  1.5.1
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 "keyb.h"
36 #include "xcb.h"
37 #include "theme.h"
38 
44 // State of the menu.
45 
47 {
49  Mode *sw;
50 
52  int refilter;
61 
70 
72  int *distance;
74  unsigned int *line_map;
76  unsigned int num_lines;
77 
79  unsigned int filtered_lines;
80 
84  xcb_timestamp_t last_button_press;
85 
87  int quit;
91  unsigned int selected_line;
96 
100  unsigned int num_modi;
108  int reload;
110  void ( *finalize )( struct RofiViewState *state );
111 
113  int width;
115  int height;
117  int x;
119  int y;
120 
121  struct
122  {
123  int x;
124  int y;
126  } mouse;
127 
130 };
132 #endif
unsigned int * line_map
Definition: view-internal.h:74
Definition: box.c:40
MenuReturn
Definition: mode.h:66
textbox ** modi
xcb_timestamp_t last_button_press
Definition: view-internal.h:84
Definition: xcb.h:99
KeyBindingAction prev_action
Definition: view-internal.h:82
workarea mon
Definition: view-internal.h:95
unsigned int num_lines
Definition: view-internal.h:76
textbox * prompt
Definition: view-internal.h:56
textbox * mesg_tb
Definition: view-internal.h:69
struct RofiViewState::@4 mouse
MenuReturn retv
Definition: view-internal.h:93
container * mesg_box
Definition: view-internal.h:67
textbox * text
Definition: view-internal.h:58
KeyBindingAction
Definition: keyb.h:55
void(* finalize)(struct RofiViewState *state)
textbox * case_indicator
Definition: view-internal.h:60
unsigned int filtered_lines
Definition: view-internal.h:79
listview * list_view
Definition: view-internal.h:63
textbox * overlay
Definition: view-internal.h:65
rofi_int_matcher ** tokens
unsigned int num_modi
unsigned int selected_line
Definition: view-internal.h:91
MenuFlags menu_flags
MenuFlags
Definition: view.h:43
widget * motion_target