Blame gdk/win32/gdkwindow-win32.h

Packit 98cdb6
/* GDK - The GIMP Drawing Kit
Packit 98cdb6
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
Packit 98cdb6
 * file for a list of people on the GTK+ Team.  See the ChangeLog
Packit 98cdb6
 * files for a list of changes.  These files are distributed with
Packit 98cdb6
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GDK_WINDOW_WIN32_H__
Packit 98cdb6
#define __GDK_WINDOW_WIN32_H__
Packit 98cdb6
Packit 98cdb6
#include <gdk/win32/gdkdrawable-win32.h>
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
typedef struct _GdkWin32PositionInfo    GdkWin32PositionInfo;
Packit 98cdb6
Packit 98cdb6
#if 0
Packit 98cdb6
struct _GdkWin32PositionInfo
Packit 98cdb6
{
Packit 98cdb6
  gint x;
Packit 98cdb6
  gint y;
Packit 98cdb6
  gint width;
Packit 98cdb6
  gint height;
Packit 98cdb6
  gint x_offset;		/* Offsets to add to Win32 coordinates */
Packit 98cdb6
  gint y_offset;		/* within window to get GDK coodinates */
Packit 98cdb6
  guint big : 1;
Packit 98cdb6
  guint mapped : 1;
Packit 98cdb6
  guint no_bg : 1;	        /* Set when the window background
Packit 98cdb6
				 * is temporarily unset during resizing
Packit 98cdb6
				 * and scaling
Packit 98cdb6
				 */
Packit 98cdb6
  GdkRectangle clip_rect;	/* visible rectangle of window */
Packit 98cdb6
};
Packit 98cdb6
#endif
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
/* Window implementation for Win32
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
typedef struct _GdkWindowImplWin32 GdkWindowImplWin32;
Packit 98cdb6
typedef struct _GdkWindowImplWin32Class GdkWindowImplWin32Class;
Packit 98cdb6
Packit 98cdb6
#define GDK_TYPE_WINDOW_IMPL_WIN32              (_gdk_window_impl_win32_get_type ())
Packit 98cdb6
#define GDK_WINDOW_IMPL_WIN32(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WINDOW_IMPL_WIN32, GdkWindowImplWin32))
Packit 98cdb6
#define GDK_WINDOW_IMPL_WIN32_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WINDOW_IMPL_WIN32, GdkWindowImplWin32Class))
Packit 98cdb6
#define GDK_IS_WINDOW_IMPL_WIN32(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW_IMPL_WIN32))
Packit 98cdb6
#define GDK_IS_WINDOW_IMPL_WIN32_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW_IMPL_WIN32))
Packit 98cdb6
#define GDK_WINDOW_IMPL_WIN32_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW_IMPL_WIN32, GdkWindowImplWin32Class))
Packit 98cdb6
Packit 98cdb6
struct _GdkWindowImplWin32
Packit 98cdb6
{
Packit 98cdb6
  GdkDrawableImplWin32 parent_instance;
Packit 98cdb6
Packit 98cdb6
  gint8 toplevel_window_type;
Packit 98cdb6
Packit 98cdb6
  HCURSOR hcursor;
Packit 98cdb6
  HICON   hicon_big;
Packit 98cdb6
  HICON   hicon_small;
Packit 98cdb6
Packit 98cdb6
  /* When VK_PACKET sends us a leading surrogate, it's stashed here.
Packit 98cdb6
   * Later, when another VK_PACKET sends a tailing surrogate, we make up
Packit 98cdb6
   * a full unicode character from them, or discard the leading surrogate,
Packit 98cdb6
   * if the next key is not a tailing surrogate.
Packit 98cdb6
   */
Packit 98cdb6
  wchar_t leading_surrogate_keydown;
Packit 98cdb6
  wchar_t leading_surrogate_keyup;
Packit 98cdb6
Packit 98cdb6
  /* Window size hints */
Packit 98cdb6
  gint hint_flags;
Packit 98cdb6
  GdkGeometry hints;
Packit 98cdb6
Packit 98cdb6
  GdkEventMask native_event_mask;
Packit 98cdb6
Packit 98cdb6
  GdkWindowTypeHint type_hint;
Packit 98cdb6
Packit 98cdb6
  GdkEventMask extension_events_mask;
Packit 98cdb6
Packit 98cdb6
  GdkWindow *transient_owner;
Packit 98cdb6
  GSList    *transient_children;
Packit 98cdb6
  gint       num_transients;
Packit 98cdb6
  gboolean   changing_state;
Packit 98cdb6
Packit 98cdb6
  gint initial_x;
Packit 98cdb6
  gint initial_y;
Packit 98cdb6
Packit 98cdb6
  guint no_bg : 1;
Packit 98cdb6
  guint inhibit_configure : 1;
Packit 98cdb6
  guint override_redirect : 1;
Packit 98cdb6
};
Packit 98cdb6
 
Packit 98cdb6
struct _GdkWindowImplWin32Class 
Packit 98cdb6
{
Packit 98cdb6
  GdkDrawableImplWin32Class parent_class;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
GType _gdk_window_impl_win32_get_type (void);
Packit 98cdb6
Packit 98cdb6
void  _gdk_win32_window_tmp_unset_bg  (GdkWindow *window,
Packit 98cdb6
				       gboolean   recurse);
Packit 98cdb6
void  _gdk_win32_window_tmp_reset_bg  (GdkWindow *window,
Packit 98cdb6
				       gboolean   recurse);
Packit 98cdb6
Packit 98cdb6
void  _gdk_win32_window_tmp_unset_parent_bg (GdkWindow *window);
Packit 98cdb6
void  _gdk_win32_window_tmp_reset_parent_bg (GdkWindow *window);
Packit 98cdb6
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __GDK_WINDOW_WIN32_H__ */