File: mdk-context.h

package info (click to toggle)
mutter 49.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,784 kB
  • sloc: ansic: 398,618; xml: 3,384; python: 3,270; sh: 389; ruby: 167; makefile: 61; javascript: 26
file content (60 lines) | stat: -rw-r--r-- 2,178 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2021 Red Hat Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

#include <glib-object.h>

#include "mdk-types.h"

#define MDK_TYPE_CONTEXT (mdk_context_get_type ())
G_DECLARE_FINAL_TYPE (MdkContext, mdk_context,
                      MDK, CONTEXT,
                      GObject)

MdkContext * mdk_context_new (void);

void mdk_context_activate (MdkContext *context);

MdkSession * mdk_context_get_session (MdkContext *context);

MdkPipewire * mdk_context_get_pipewire (MdkContext *context);

gboolean mdk_context_get_emulate_touch (MdkContext *context);

gboolean mdk_context_get_inhibit_system_shortcuts (MdkContext *context);

GPtrArray * mdk_context_get_launchers (MdkContext *context);

void mdk_context_activate_launcher (MdkContext *context,
                                    int         id);

void mdk_context_add_launcher (MdkContext      *context,
                               MdkLauncherType  launcher_type,
                               const char      *value,
                               const char      *option);

void mdk_context_remove_launcher (MdkContext      *context,
                                  MdkLauncherType  launcher_type,
                                  const char      *value,
                                  const char      *option);

void mdk_context_set_launcher_action (MdkContext *context,
                                      const char *app_id,
                                      const char *action_id);

GStrv mdk_context_get_launch_env (MdkContext *context);