[gnome-games/wip/exalm/views: 1/17] ui: Add ApplicationView
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/views: 1/17] ui: Add ApplicationView
- Date: Mon, 8 Oct 2018 10:25:01 +0000 (UTC)
commit 97cd84c76f6287c217270946bcea0a459a9f208d
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Wed Oct 3 22:36:44 2018 +0500
ui: Add ApplicationView
This will be used in the subsequent commits to represent different views
in the main window.
src/meson.build | 1 +
src/ui/application-view.vala | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index 9a886051..7e5cc74b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -124,6 +124,7 @@ vala_sources = [
'tracker/tracker-uri-source.vala',
'ui/application.vala',
+ 'ui/application-view.vala',
'ui/application-window.vala',
'ui/checkmark-item.vala',
'ui/collection-box.vala',
diff --git a/src/ui/application-view.vala b/src/ui/application-view.vala
new file mode 100644
index 00000000..f06358d4
--- /dev/null
+++ b/src/ui/application-view.vala
@@ -0,0 +1,19 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+private interface Games.ApplicationView: Gtk.Widget {
+ public abstract Gtk.Widget titlebar { get; }
+
+ public abstract bool selection_mode { get; set; }
+
+ public abstract bool is_view_active { get; set; }
+
+ public abstract bool on_button_pressed (Gdk.EventButton event);
+
+ public abstract bool on_key_pressed (Gdk.EventKey event);
+
+ public abstract bool gamepad_button_press_event (Manette.Event event);
+
+ public abstract bool gamepad_button_release_event (Manette.Event event);
+
+ public abstract bool gamepad_absolute_axis_event (Manette.Event event);
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]