mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-11-05 00:11:16 +00:00
a8505e1245
We want a bit more control over things than we can get with GtkPicture so do the snapshot/measure internally. This allows us to know where the picture is to be allocated so that we can translate pointer events to the location within the console.
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="MksDisplay" parent="GtkWidget">
|
|
<property name="focusable">true</property>
|
|
<child>
|
|
<object class="GtkEventControllerMotion" id="motion">
|
|
<signal name="enter" handler="mks_display_motion_enter_cb" swapped="true"/>
|
|
<signal name="leave" handler="mks_display_motion_leave_cb" swapped="true"/>
|
|
<signal name="motion" handler="mks_display_motion_motion_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkGestureClick" id="click">
|
|
<property name="button">0</property>
|
|
<property name="exclusive">true</property>
|
|
<signal name="pressed" handler="mks_display_click_pressed_cb" swapped="true"/>
|
|
<signal name="released" handler="mks_display_click_released_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEventControllerKey" id="key">
|
|
<signal name="key-pressed" handler="mks_display_key_key_pressed_cb" swapped="true"/>
|
|
<signal name="key-released" handler="mks_display_key_key_released_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|