gtk2/gdk/broadway
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
..
broadway-output.c broadway: Change events and ops enums to straight ints 2019-03-29 14:30:13 +01:00
broadway-output.h broadway: Initial restructuring of node tree diffing 2019-03-29 14:30:13 +01:00
broadway-protocol.h broadway: Change events and ops enums to straight ints 2019-03-29 14:30:13 +01:00
broadway-server.c broadway: Change events and ops enums to straight ints 2019-03-29 14:30:13 +01:00
broadway-server.h broadway: Keep track of surface owner and only send input to that client 2019-03-29 14:30:13 +01:00
broadway.js broadway: Optionally support data: uris instead of blobs 2019-03-29 14:30:13 +01:00
broadwayd.c broadway: Keep track of surface owner and only send input to that client 2019-03-29 14:30:13 +01:00
client.html Issue #1633 - Ensure focus on click 2019-02-04 17:46:09 +01:00
gdkbroadway-server.c broadway: Fix handling of input with multiple in-process GdkDisplays 2019-03-29 14:30:13 +01:00
gdkbroadway-server.h broadway: Fix handling of input with multiple in-process GdkDisplays 2019-03-29 14:30:13 +01:00
gdkbroadway.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkbroadwaycursor.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkbroadwaydisplay.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkbroadwaydisplaymanager.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkbroadwaymonitor.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkbroadwaysurface.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkcairocontext-broadway.c broadway: Add basic GdkCairoContext implementation 2018-04-24 23:17:14 +02:00
gdkcairocontext-broadway.h broadway: Add basic GdkCairoContext implementation 2018-04-24 23:17:14 +02:00
gdkcursor-broadway.c gdk: Drop some unused cursor apis 2018-01-16 23:32:01 -05:00
gdkdevice-broadway.c Initialise out variable 2020-02-11 13:39:52 +00:00
gdkdevice-broadway.h
gdkdisplay-broadway.c Remove primary monitor api 2020-01-30 21:33:37 +01:00
gdkdisplay-broadway.h broadway: More multi-display fixes 2019-03-29 14:30:13 +01:00
gdkdnd-broadway.c Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkdrawcontext-broadway.c Broadway: Add id for nodes and reuse old ones 2019-03-26 17:07:47 +01:00
gdkdrawcontext-broadway.h broadway: Add and use GdkBroadwayDrawContext 2018-04-24 23:24:55 +02:00
gdkeventsource.c broadway: Track popups 2019-05-28 20:25:14 +00:00
gdkeventsource.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkglobals-broadway.c
gdkkeys-broadway.c gdkkeys: Add support to _get_scroll_lock_state() 2015-04-27 20:07:52 -03:00
gdkmonitor-broadway.c broadway: No more screen 2017-11-01 19:44:28 -04:00
gdkmonitor-broadway.h broadway: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-broadway.h gdk: Remove gdk_surface_move_resize() API 2019-07-25 10:35:43 +02:00
gdkselection-broadway.c Drop gdk_atom_intern 2017-12-13 23:39:03 -05:00
gdksurface-broadway.c gdk/surface: Replace move_to_rect() with GdkPopupLayout based API 2020-02-19 09:47:18 +01:00
gdksurface-broadway.h gdk: Maintain popup tree in the frontend 2019-05-28 20:25:17 +00:00
gen-c-array.py Rewrite toarray Perl script to Python 2018-02-14 15:51:45 +00:00
meson.build Use a single compilation symbol 2019-11-27 13:33:43 +00:00
TODO.broadway broadway: Make /dev/shm names nicer 2013-01-10 23:59:23 +01:00