[gnome-games/wip/exalm/views: 15/17] ui: Add UiView



commit 6c9d507ae053c8f3aea3747bca06bd83db1e5ad0
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Wed Oct 3 22:36:44 2018 +0500

    ui: Add UiView
    
    This will be used in the subsequent commits to represent different views
    in the main window.

 src/meson.build     |  1 +
 src/ui/ui-view.vala | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index 94bb1055..eea378ec 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -177,6 +177,7 @@ vala_sources = [
   'ui/sidebar-list-item.vala',
   'ui/sidebar-view.vala',
   'ui/ui-state.vala',
+  'ui/ui-view.vala',
 
   'utils/composite-cover.vala',
   'utils/composite-title.vala',
diff --git a/src/ui/ui-view.vala b/src/ui/ui-view.vala
new file mode 100644
index 00000000..f5e19ab0
--- /dev/null
+++ b/src/ui/ui-view.vala
@@ -0,0 +1,19 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+private interface Games.UiView : Object {
+       public abstract Gtk.Widget content_box { get; }
+
+       public abstract Gtk.Widget title_bar { get; }
+
+       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);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]