2010-12-18 01:41:16 +00:00
|
|
|
|
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2010 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2010-12-18 01:41:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_WINDOW_PRIVATE_H__
|
|
|
|
#define __GTK_WINDOW_PRIVATE_H__
|
|
|
|
|
2011-01-28 13:35:49 +00:00
|
|
|
#include <gdk/gdk.h>
|
|
|
|
|
2010-12-18 01:41:16 +00:00
|
|
|
#include "gtkwindow.h"
|
2017-03-31 15:31:20 +00:00
|
|
|
#include "gtkpointerfocusprivate.h"
|
2010-12-18 01:41:16 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
void _gtk_window_group_add_grab (GtkWindowGroup *window_group,
|
|
|
|
GtkWidget *widget);
|
|
|
|
void _gtk_window_group_remove_grab (GtkWindowGroup *window_group,
|
|
|
|
GtkWidget *widget);
|
|
|
|
|
|
|
|
void _gtk_window_unset_focus_and_default (GtkWindow *window,
|
|
|
|
GtkWidget *widget);
|
|
|
|
|
2021-11-05 13:07:35 +00:00
|
|
|
void _gtk_window_update_focus_visible (GtkWindow *window,
|
|
|
|
guint keyval,
|
|
|
|
GdkModifierType state,
|
|
|
|
gboolean visible);
|
|
|
|
|
2018-08-16 04:53:03 +00:00
|
|
|
void _gtk_window_set_allocation (GtkWindow *window,
|
|
|
|
int width,
|
|
|
|
int height,
|
|
|
|
GtkAllocation *allocation_out);
|
2012-01-20 06:01:08 +00:00
|
|
|
|
2010-12-18 01:41:16 +00:00
|
|
|
typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window,
|
|
|
|
guint keyval,
|
|
|
|
GdkModifierType modifiers,
|
|
|
|
gpointer data);
|
|
|
|
|
2018-06-07 14:47:44 +00:00
|
|
|
gboolean gtk_window_emit_close_request (GtkWindow *window);
|
|
|
|
|
2010-12-18 01:41:16 +00:00
|
|
|
/* --- internal (GtkAcceleratable) --- */
|
2013-04-02 19:56:31 +00:00
|
|
|
void _gtk_window_schedule_mnemonics_visible (GtkWindow *window);
|
2012-08-20 23:28:25 +00:00
|
|
|
|
2013-07-10 03:44:51 +00:00
|
|
|
void _gtk_window_notify_keys_changed (GtkWindow *window);
|
|
|
|
|
2013-12-11 06:26:34 +00:00
|
|
|
void _gtk_window_toggle_maximized (GtkWindow *window);
|
|
|
|
|
2014-06-06 21:59:38 +00:00
|
|
|
void _gtk_window_request_csd (GtkWindow *window);
|
|
|
|
|
2014-06-04 10:18:03 +00:00
|
|
|
/* Window groups */
|
|
|
|
|
|
|
|
GtkWindowGroup *_gtk_window_get_window_group (GtkWindow *window);
|
|
|
|
|
|
|
|
void _gtk_window_set_window_group (GtkWindow *window,
|
|
|
|
GtkWindowGroup *group);
|
|
|
|
|
2015-06-15 12:05:00 +00:00
|
|
|
|
2019-08-30 20:58:41 +00:00
|
|
|
GdkPaintable * gtk_window_get_icon_for_size (GtkWindow *window,
|
|
|
|
int size);
|
2014-01-24 20:40:37 +00:00
|
|
|
|
2016-07-26 19:46:41 +00:00
|
|
|
/* Exported handles */
|
|
|
|
|
|
|
|
typedef void (*GtkWindowHandleExported) (GtkWindow *window,
|
|
|
|
const char *handle,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
gboolean gtk_window_export_handle (GtkWindow *window,
|
|
|
|
GtkWindowHandleExported callback,
|
|
|
|
gpointer user_data);
|
|
|
|
void gtk_window_unexport_handle (GtkWindow *window);
|
|
|
|
|
2017-03-31 15:31:20 +00:00
|
|
|
GtkWidget * gtk_window_lookup_pointer_focus_widget (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkEventSequence *sequence);
|
|
|
|
GtkWidget * gtk_window_lookup_effective_pointer_focus_widget (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkEventSequence *sequence);
|
2017-05-24 23:57:22 +00:00
|
|
|
GtkWidget * gtk_window_lookup_pointer_focus_implicit_grab (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkEventSequence *sequence);
|
2017-03-31 15:31:20 +00:00
|
|
|
|
|
|
|
void gtk_window_update_pointer_focus (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkEventSequence *sequence,
|
|
|
|
GtkWidget *target,
|
2020-07-24 20:32:16 +00:00
|
|
|
double x,
|
|
|
|
double y);
|
2017-03-31 15:55:49 +00:00
|
|
|
void gtk_window_set_pointer_focus_grab (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GdkEventSequence *sequence,
|
|
|
|
GtkWidget *grab_widget);
|
2017-03-31 15:31:20 +00:00
|
|
|
|
2017-03-31 15:49:21 +00:00
|
|
|
void gtk_window_update_pointer_focus_on_state_change (GtkWindow *window,
|
|
|
|
GtkWidget *widget);
|
|
|
|
|
2017-04-01 20:38:02 +00:00
|
|
|
void gtk_window_maybe_revoke_implicit_grab (GtkWindow *window,
|
|
|
|
GdkDevice *device,
|
|
|
|
GtkWidget *grab_widget);
|
2017-04-04 15:08:48 +00:00
|
|
|
void gtk_window_maybe_update_cursor (GtkWindow *window,
|
|
|
|
GtkWidget *widget,
|
|
|
|
GdkDevice *device);
|
2019-04-07 17:19:09 +00:00
|
|
|
GtkWidget * gtk_window_pick_popover (GtkWindow *window,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
GtkPickFlags flags);
|
2020-06-24 09:14:52 +00:00
|
|
|
GdkDevice** gtk_window_get_foci_on_widget (GtkWindow *window,
|
|
|
|
GtkWidget *widget,
|
|
|
|
guint *n_devices);
|
2020-06-24 15:19:57 +00:00
|
|
|
void gtk_window_grab_notify (GtkWindow *window,
|
|
|
|
GtkWidget *old_grab_widget,
|
|
|
|
GtkWidget *new_grab_widget,
|
|
|
|
gboolean from_grab);
|
2017-04-01 20:38:02 +00:00
|
|
|
|
2010-12-18 01:41:16 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_WINDOW_PRIVATE_H__ */
|