rofi 2.0.0
display-internal.h
Go to the documentation of this file.
1/*
2 * rofi
3 *
4 * MIT/X11 License
5 * Copyright © 2013-2020 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_DISPLAY_INTERNAL_H
29#define ROFI_DISPLAY_INTERNAL_H
30
31#include "display.h"
32#include "helper.h"
33#include "nkutils-bindings.h"
34#include <glib.h>
35
36struct _workarea;
37struct _view_proxy;
38
39typedef struct _display_proxy {
40 gboolean (*setup)(GMainLoop *main_loop, NkBindings *bindings);
41 gboolean (*late_setup)(void);
42 void (*early_cleanup)(void);
43 void (*cleanup)(void);
44 void (*dump_monitor_layout)(void);
46 GSpawnChildSetupFunc *child_setup,
47 gpointer *user_data);
48 int (*monitor_active)(struct _workarea *mon);
49
50 void (*set_input_focus)(guint window);
51 void (*revert_input_focus)(void);
52 void (*get_clipboard_data)(int type, ClipboardCb callback, void *user_data);
53 void (*set_fullscreen_mode)(void);
54
55 guint (*scale)(void);
56
57 const struct _view_proxy *(*view)(void);
59
60#endif
struct _display_proxy display_proxy
void(* ClipboardCb)(char *clipboard_data, void *user_data)
Definition display.h:130
NkBindings * bindings
Definition rofi.c:136
GMainLoop * main_loop
Definition rofi.c:142
void(* revert_input_focus)(void)
void(* set_fullscreen_mode)(void)
void(* startup_notification)(RofiHelperExecuteContext *context, GSpawnChildSetupFunc *child_setup, gpointer *user_data)
gboolean(* late_setup)(void)
int(* monitor_active)(struct _workarea *mon)
void(* set_input_focus)(guint window)
void(* early_cleanup)(void)
guint(* scale)(void)
void(* get_clipboard_data)(int type, ClipboardCb callback, void *user_data)
gboolean(* setup)(GMainLoop *main_loop, NkBindings *bindings)
void(* cleanup)(void)
void(* dump_monitor_layout)(void)
workarea mon
Definition view.c:117