libmks/lib/mks-display.ui
Christian Hergert a8505e1245 lib: remove use of GtkPicture
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.
2023-02-15 06:47:10 -08:00

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>