rofi  1.5.4
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
RofiViewState::sw
Mode * sw
Definition: view-internal.h:50
MenuFlags
MenuFlags
Definition: view.h:44
RofiViewState::height
int height
Definition: view-internal.h:116
RofiViewState::num_modi
unsigned int num_modi
Definition: view-internal.h:101
KeyBindingAction
KeyBindingAction
Definition: keyb.h:59
rofi_int_matcher_t
Definition: rofi-types.h:235
RofiViewState::distance
int * distance
Definition: view-internal.h:73
_window
Definition: container.c:39
RofiViewState::skip_absorb
int skip_absorb
Definition: view-internal.h:90
RofiViewState::mon
workarea mon
Definition: view-internal.h:96
RofiViewState::retv
MenuReturn retv
Definition: view-internal.h:94
listview.h
RofiViewState::quit
int quit
Definition: view-internal.h:88
RofiViewState::last_button_press
xcb_timestamp_t last_button_press
Definition: view-internal.h:85
MenuReturn
MenuReturn
Definition: mode.h:67
RofiViewState::tokens
rofi_int_matcher ** tokens
Definition: view-internal.h:134
_workarea
Definition: xcb.h:100
RofiViewState::motion_target
widget * motion_target
Definition: view-internal.h:130
theme.h
box.h
RofiViewState::main_window
box * main_window
Definition: view-internal.h:55
RofiViewState::mesg_tb
textbox * mesg_tb
Definition: view-internal.h:70
RofiViewState::list_view
listview * list_view
Definition: view-internal.h:64
RofiViewState::prev_action
KeyBindingAction prev_action
Definition: view-internal.h:83
container.h
widget.h
RofiViewState::num_lines
unsigned int num_lines
Definition: view-internal.h:77
keyb.h
RofiViewState::refilter
int refilter
Definition: view-internal.h:53
RofiViewState::y
int y
Definition: view-internal.h:120
rofi_mode
Definition: mode-private.h:152
icon.h
RofiViewState::selected_line
unsigned int selected_line
Definition: view-internal.h:92
_listview
Definition: listview.c:62
RofiViewState::modi
textbox ** modi
Definition: view-internal.h:103
RofiViewState::menu_flags
MenuFlags menu_flags
Definition: view-internal.h:105
RofiViewState::mouse
struct RofiViewState::@4 mouse
xcb.h
_box
Definition: box.c:42
RofiViewState::width
int width
Definition: view-internal.h:114
RofiViewState::prompt
textbox * prompt
Definition: view-internal.h:57
RofiViewState::reload
int reload
Definition: view-internal.h:109
RofiViewState::finalize
void(* finalize)(struct RofiViewState *state)
Definition: view-internal.h:111
RofiViewState::text
textbox * text
Definition: view-internal.h:59
RofiViewState::line_map
unsigned int * line_map
Definition: view-internal.h:75
textbox
Definition: textbox.h:51
textbox.h
RofiViewState::sidebar_bar
box * sidebar_bar
Definition: view-internal.h:99
RofiViewState::x
int x
Definition: view-internal.h:118
RofiViewState::mesg_box
container * mesg_box
Definition: view-internal.h:68
RofiViewState::overlay
textbox * overlay
Definition: view-internal.h:66
RofiViewState::case_indicator
textbox * case_indicator
Definition: view-internal.h:61
RofiViewState
Definition: view-internal.h:48
RofiViewState::filtered_lines
unsigned int filtered_lines
Definition: view-internal.h:80
_widget
Definition: widget-internal.h:36
RofiViewState::mouse_seen
int mouse_seen
Definition: view-internal.h:107