Learning_GTK4_tree/gtk/ui/gtkvideo.ui

68 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2023-12-12 11:36:42 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk40">
<template class="GtkVideo" parent="GtkWidget">
<child>
<object class="GtkOverlay" id="box">
<child>
<object class="GtkGraphicsOffload" id="graphics_offload">
<property name="enabled">disabled</property>
<property name="child"><object class="GtkPicture" id="video_picture"/></property>
</object>
</child>
<child type="overlay">
<object class="GtkImage" id="overlay_icon">
<style>
<class name="osd"/>
<class name="circular"/>
</style>
<property name="halign">3</property>
<property name="valign">3</property>
<property name="icon-name">media-playback-start-symbolic</property>
<property name="icon-size">2</property>
<property name="accessible-role">button</property>
<accessibility>
<property name="label" translatable="1">Play</property>
</accessibility>
<child>
<object class="GtkGestureClick">
<signal name="pressed" handler="overlay_clicked_cb"/>
</object>
</child>
<layout>
<property name="measure">1</property>
</layout>
</object>
</child>
<child type="overlay">
<object class="GtkRevealer" id="controls_revealer">
<property name="valign">2</property>
<property name="transition-type">1</property>
<child>
<object class="GtkMediaControls" id="controls">
<style>
<class name="osd"/>
<class name="bottom"/>
</style>
</object>
</child>
<layout>
<property name="measure">1</property>
</layout>
</object>
</child>
</object>
</child>
<child>
<object class="GtkEventControllerMotion">
<signal name="motion" handler="gtk_video_motion" swapped="no"/>
</object>
</child>
<child>
<object class="GtkGestureClick">
<property name="touch-only">1</property>
<signal name="pressed" handler="gtk_video_pressed" swapped="yes"/>
</object>
</child>
</template>
</interface>