gtk2/gdk/win32
Jonas Ådahl ca71119a40 gdk/surface: Replace move_to_rect() with GdkPopupLayout based API
Replace the gdk_surface_move_to_rect() API with a new GdkSurface
method called gdk_surface_present_popup() taking a new GdkPopupLayout
object describing how they should be laid out on screen.

The layout properties provided are the same as the ones used with
gdk_surface_move_to_rect(), except they are now set up using
GdkPopupLayout.

Calling gdk_surface_present_popup() will either show the popup at the
position described using the popup layout object and a new unconstrained
size, or reposition it accordingly.

In some situations, such as when a popup is set to autohide, presenting
may immediately fail, in case the grab was not granted by the display
server.

After a successful present, the result of the layout can be queried
using the following methods:

 * gdk_surface_get_position() - to get the position relative to its
   parent
 * gdk_surface_get_width() - to get the current width
 * gdk_surface_get_height() - to get the current height
 * gdk_surface_get_rect_anchor() - to get the anchor point on the anchor
   rectangle the popup was effectively positioned against given
   constraints defined by the environment and the layout rules provided
   via GdkPopupLayout.
 * gdk_surface_get_surface_anchor() - the same as the one above but for
   the surface anchor.

A new signal replaces the old "moved-to-rect" one -
"popup-layout-changed". However, it is only intended to be emitted when
the layout changes implicitly by the windowing system, for example if
the monitor resolution changed, or the parent window moved.
2020-02-19 09:47:18 +01:00
..
rc
bdfcursor.c
cursor.bdf
gdkcairocontext-win32.c win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkcairocontext-win32.h GDK W32: Switch to GdkCairoContext 2018-04-24 23:24:55 +02:00
gdkclipboard-win32.c gdk: Change some async clipboard api 2019-04-02 15:10:53 +00:00
gdkclipboard-win32.h GDK W32: Another massive clipboard and DnD update 2018-03-29 17:43:53 +00:00
gdkclipdrop-win32.c GDK W32: Be honest about supported clipboard formats 2018-10-31 08:40:50 +00:00
gdkclipdrop-win32.h GDK W32: Adapt to GdkDrop and GdkDragContext changes 2018-06-18 23:49:52 +02:00
gdkcursor-win32.c GDK W32: Fix a missing weak referencing 2018-04-11 16:39:34 +00:00
gdkdevice-virtual.c GDK W32: be able to handle NULL cursor 2019-05-28 20:25:16 +00:00
gdkdevice-virtual.h
gdkdevice-win32.c win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkdevice-win32.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdevice-wintab.c win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkdevice-wintab.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdevicemanager-win32.c Rename surface constructors 2019-05-28 20:25:14 +00:00
gdkdevicemanager-win32.h GdkWindow -> GdkSurface initial type rename 2018-03-20 11:40:08 +01:00
gdkdisplay-win32.c Remove primary monitor api 2020-01-30 21:33:37 +01:00
gdkdisplay-win32.h GDK W32: Use the new cursor class 2018-03-29 23:59:23 +00:00
gdkdisplaymanager-win32.c Remove unused functions in W32 backend 2018-06-10 21:21:09 +00:00
gdkdrag-win32.c gdk: Remove gdk_surface_move() 2019-07-25 10:24:50 +02:00
gdkdrop-win32.c win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkevents-win32.c win32: One more build fix 2020-02-09 23:04:10 -05:00
gdkglcontext-win32.c win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkglcontext-win32.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkglobals-win32.c GDK W32: Test for IME correctly 2019-03-22 16:58:59 +00:00
gdkhdataoutputstream-win32.c Use Unicode apostrophes in new strings 2018-09-20 19:01:14 +02:00
gdkhdataoutputstream-win32.h GDK W32: Another massive clipboard and DnD update 2018-03-29 17:43:53 +00:00
gdkkeys-win32.c win32: Fix the build 2020-02-09 22:58:53 -05:00
gdkmain-win32.c Rename "iconify" to "minimize" 2019-11-16 20:07:37 +00:00
gdkmonitor-win32.c win32: Remove outdated workaround 2019-05-21 07:33:57 +02:00
gdkmonitor-win32.h
gdkprivate-win32.h win32: Build fixes 2019-05-28 20:25:15 +00:00
gdkproperty-win32.c GDK W32: Fix property setting to correctly use static strings 2019-03-22 16:59:03 +00:00
gdkscreen-win32.c Remove unused variables (mostly in W32 code) 2018-06-10 21:21:01 +00:00
gdksurface-win32.c gdk/surface: Replace move_to_rect() with GdkPopupLayout based API 2020-02-19 09:47:18 +01:00
gdksurface-win32.h Minor typos in the Documentation (a/an) 2019-08-25 12:52:46 +00:00
gdkvulkancontext-win32.c gdkvulkancontext-win32.c: Suppress layered Windows on Vulkan 2019-11-26 17:00:11 +08:00
gdkvulkancontext-win32.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwin32.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkwin32cursor.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32display.h Remove primary monitor api 2020-01-30 21:33:37 +01:00
gdkwin32displaymanager.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32dnd-private.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32dnd.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32glcontext.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32id.c
gdkwin32keys.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32langnotification.c GDK W32: Test for IME correctly 2019-03-22 16:58:59 +00:00
gdkwin32langnotification.h GDK W32: Test for IME correctly 2019-03-22 16:58:59 +00:00
gdkwin32misc.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32monitor.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32screen.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwin32surface.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
libwntab32x.la
meson.build Use a single compilation symbol 2019-11-27 13:33:43 +00:00
pktdef.h
wintab.h
xcursors.h