forked from AuroraMiddleware/gtk
309a7aa253
For now, these are wrappers around the surface apis, but they are going to replace them, since this operation is only available on toplevels.
119 lines
4.8 KiB
C
119 lines
4.8 KiB
C
/*
|
|
* Copyright © 2020 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.1 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/>.
|
|
*
|
|
* Authors: Matthias Clasen <mclasen@redhat.com>
|
|
*/
|
|
|
|
#ifndef __GDK_TOPLEVEL_H__
|
|
#define __GDK_TOPLEVEL_H__
|
|
|
|
#if !defined(__GDK_H_INSIDE__) && !defined(GTK_COMPILATION)
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
#endif
|
|
|
|
#include <gdk/gdkseat.h>
|
|
#include <gdk/gdksurface.h>
|
|
#include <gdk/gdktoplevellayout.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GDK_TYPE_TOPLEVEL (gdk_toplevel_get_type ())
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
G_DECLARE_INTERFACE (GdkToplevel, gdk_toplevel, GDK, TOPLEVEL, GObject)
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gdk_toplevel_present (GdkToplevel *toplevel,
|
|
int width,
|
|
int height,
|
|
GdkToplevelLayout *layout);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gdk_toplevel_minimize (GdkToplevel *toplevel);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gdk_toplevel_lower (GdkToplevel *toplevel);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_focus (GdkToplevel *toplevel,
|
|
guint32 timestamp);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
GdkSurfaceState gdk_toplevel_get_state (GdkToplevel *toplevel);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_title (GdkToplevel *toplevel,
|
|
const char *title);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_startup_id (GdkToplevel *toplevel,
|
|
const char *startup_id);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_transient_for (GdkToplevel *toplevel,
|
|
GdkSurface *parent);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_modal (GdkToplevel *toplevel,
|
|
gboolean modal);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_icon_list (GdkToplevel *toplevel,
|
|
GList *surfaces);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gdk_toplevel_show_window_menu (GdkToplevel *toplevel,
|
|
GdkEvent *event);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_decorated (GdkToplevel *toplevel,
|
|
gboolean decorated);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_set_deletable (GdkToplevel *toplevel,
|
|
gboolean deletable);
|
|
GDK_AVAILABLE_IN_ALL
|
|
gboolean gdk_toplevel_supports_edge_constraints (GdkToplevel *toplevel);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_inhibit_system_shortcuts (GdkToplevel *toplevel,
|
|
GdkEvent *event);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_restore_system_shortcuts (GdkToplevel *toplevel);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_begin_resize (GdkToplevel *toplevel,
|
|
GdkSurfaceEdge edge,
|
|
GdkDevice *device,
|
|
int button,
|
|
double x,
|
|
double y,
|
|
guint32 timestamp);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
void gdk_toplevel_begin_move (GdkToplevel *toplevel,
|
|
GdkDevice *device,
|
|
int button,
|
|
double x,
|
|
double y,
|
|
guint32 timestamp);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GDK_TOPLEVEL_H__ */
|