2010-10-18 13:27:14 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2008 Intel Corp.
|
|
|
|
*
|
|
|
|
* Author: Tomas Frydrych <tf@linux.intel.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-11 20:42:06 -05:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2010-10-18 13:27:14 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_PLUGIN_MANAGER_H_
|
|
|
|
#define META_PLUGIN_MANAGER_H_
|
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
#include "core/util-private.h"
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "meta/meta-plugin.h"
|
|
|
|
#include "meta/types.h"
|
2010-10-18 13:27:14 -04:00
|
|
|
|
2018-12-19 03:04:25 -05:00
|
|
|
typedef enum
|
|
|
|
{
|
2015-07-06 00:08:08 -04:00
|
|
|
META_PLUGIN_NONE,
|
2015-07-05 23:58:40 -04:00
|
|
|
META_PLUGIN_MINIMIZE,
|
|
|
|
META_PLUGIN_MAP,
|
|
|
|
META_PLUGIN_DESTROY,
|
|
|
|
META_PLUGIN_SWITCH_WORKSPACE,
|
|
|
|
META_PLUGIN_UNMINIMIZE,
|
2015-07-06 00:08:08 -04:00
|
|
|
META_PLUGIN_SIZE_CHANGE,
|
2015-07-05 23:58:40 -04:00
|
|
|
} MetaPluginEffect;
|
2010-10-18 13:27:14 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* MetaPluginManager: (skip)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
typedef struct MetaPluginManager MetaPluginManager;
|
|
|
|
|
2014-03-18 17:31:22 -04:00
|
|
|
MetaPluginManager * meta_plugin_manager_new (MetaCompositor *compositor);
|
2012-04-05 01:29:39 -04:00
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
META_EXPORT_TEST
|
2012-04-05 01:29:39 -04:00
|
|
|
void meta_plugin_manager_load (const gchar *plugin_name);
|
2011-03-04 15:11:38 -05:00
|
|
|
|
2010-10-18 13:27:14 -04:00
|
|
|
gboolean meta_plugin_manager_event_simple (MetaPluginManager *mgr,
|
|
|
|
MetaWindowActor *actor,
|
2015-07-05 23:58:40 -04:00
|
|
|
MetaPluginEffect event);
|
2010-10-18 13:27:14 -04:00
|
|
|
|
2016-09-26 09:54:54 -04:00
|
|
|
void meta_plugin_manager_event_size_changed (MetaPluginManager *mgr,
|
|
|
|
MetaWindowActor *actor);
|
|
|
|
|
2015-07-06 00:08:08 -04:00
|
|
|
gboolean meta_plugin_manager_event_size_change (MetaPluginManager *mgr,
|
|
|
|
MetaWindowActor *actor,
|
|
|
|
MetaSizeChange which_change,
|
|
|
|
MetaRectangle *old_frame_rect,
|
|
|
|
MetaRectangle *old_buffer_rect);
|
2010-10-18 13:27:14 -04:00
|
|
|
|
|
|
|
gboolean meta_plugin_manager_switch_workspace (MetaPluginManager *mgr,
|
|
|
|
gint from,
|
|
|
|
gint to,
|
|
|
|
MetaMotionDirection direction);
|
|
|
|
|
2012-08-09 20:27:18 -04:00
|
|
|
gboolean meta_plugin_manager_filter_keybinding (MetaPluginManager *mgr,
|
|
|
|
MetaKeyBinding *binding);
|
|
|
|
|
2010-10-18 13:27:14 -04:00
|
|
|
gboolean meta_plugin_manager_xevent_filter (MetaPluginManager *mgr,
|
|
|
|
XEvent *xev);
|
2013-09-04 12:11:43 -04:00
|
|
|
gboolean _meta_plugin_xevent_filter (MetaPlugin *plugin,
|
|
|
|
XEvent *xev);
|
2010-10-18 13:27:14 -04:00
|
|
|
|
2013-07-29 04:12:24 -04:00
|
|
|
void meta_plugin_manager_confirm_display_change (MetaPluginManager *mgr);
|
|
|
|
|
2012-03-24 06:29:39 -04:00
|
|
|
gboolean meta_plugin_manager_show_tile_preview (MetaPluginManager *mgr,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaRectangle *tile_rect,
|
|
|
|
int tile_monitor_number);
|
|
|
|
gboolean meta_plugin_manager_hide_tile_preview (MetaPluginManager *mgr);
|
2014-03-13 18:34:14 -04:00
|
|
|
|
2014-05-23 17:14:51 -04:00
|
|
|
void meta_plugin_manager_show_window_menu (MetaPluginManager *mgr,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaWindowMenuType menu,
|
|
|
|
int x,
|
|
|
|
int y);
|
|
|
|
|
2014-05-30 18:52:06 -04:00
|
|
|
void meta_plugin_manager_show_window_menu_for_rect (MetaPluginManager *mgr,
|
|
|
|
MetaWindow *window,
|
|
|
|
MetaWindowMenuType menu,
|
|
|
|
MetaRectangle *rect);
|
|
|
|
|
2017-01-26 13:48:52 -05:00
|
|
|
MetaCloseDialog * meta_plugin_manager_create_close_dialog (MetaPluginManager *plugin_mgr,
|
|
|
|
MetaWindow *window);
|
2014-03-13 18:34:14 -04:00
|
|
|
|
2017-06-14 05:20:54 -04:00
|
|
|
MetaInhibitShortcutsDialog *
|
|
|
|
meta_plugin_manager_create_inhibit_shortcuts_dialog (MetaPluginManager *plugin_mgr,
|
|
|
|
MetaWindow *window);
|
|
|
|
|
2019-02-20 05:07:22 -05:00
|
|
|
void meta_plugin_manager_locate_pointer (MetaPluginManager *mgr);
|
|
|
|
|
2010-10-18 13:27:14 -04:00
|
|
|
#endif
|