Commit 5c80f4ba authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko
Browse files

Introduce HdyNavigationDirection


Signed-off-by: Alexander Mikhaylenko's avatarAlexander Mikhaylenko <alexm@gnome.org>
parent e6006456
......@@ -47,6 +47,7 @@
<xi:include href="xml/hdy-header-group.xml"/>
<xi:include href="xml/hdy-keypad.xml"/>
<xi:include href="xml/hdy-leaflet.xml"/>
<xi:include href="xml/hdy-navigation-direction.xml"/>
<xi:include href="xml/hdy-preferences-group.xml"/>
<xi:include href="xml/hdy-preferences-page.xml"/>
<xi:include href="xml/hdy-preferences-row.xml"/>
......
......@@ -39,6 +39,7 @@ G_BEGIN_DECLS
#include "hdy-keypad.h"
#include "hdy-leaflet.h"
#include "hdy-list-box.h"
#include "hdy-navigation-direction.h"
#include "hdy-preferences-group.h"
#include "hdy-preferences-page.h"
#include "hdy-preferences-row.h"
......
......@@ -5,6 +5,7 @@
#include "hdy-enums.h"
#include "hdy-header-bar.h"
#include "hdy-leaflet.h"
#include "hdy-navigation-direction.h"
#include "hdy-squeezer.h"
#include "hdy-view-switcher.h"
......
/*
* Copyright (C) 2019 Alexander Mikhaylenko <exalm7659@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#include "config.h"
#include "hdy-navigation-direction.h"
/**
* SECTION:hdy-navigation-direction
* @short_description: Swipe navigation directions.
* @title: HdyNavigationDirection
*/
/**
* HdyNavigationDirection:
* @HDY_NAVIGATION_DIRECTION_BACK: Corresponds to start or top, depending on orientation and text direction
* @HDY_NAVIGATION_DIRECTION_FORWARD: Corresponds to end or bottom, depending on orientation and text direction
*
* Represents direction of a swipe navigation gesture in #HdyLeaflet.
*
* Since: 1.0
*/
/*
* Copyright (C) 2019 Alexander Mikhaylenko <exalm7659@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#if !defined(_HANDY_INSIDE) && !defined(HANDY_COMPILATION)
#error "Only <handy.h> can be included directly."
#endif
#include <glib-object.h>
#include "hdy-enums.h"
G_BEGIN_DECLS
typedef enum {
HDY_NAVIGATION_DIRECTION_BACK,
HDY_NAVIGATION_DIRECTION_FORWARD,
} HdyNavigationDirection;
G_END_DECLS
......@@ -10,6 +10,7 @@ libhandy_resources = gnome.compile_resources(
hdy_enum_headers = ['hdy-carousel.h',
'hdy-header-bar.h',
'hdy-leaflet.h',
'hdy-navigation-direction.h',
'hdy-squeezer.h',
'hdy-view-switcher.h',
]
......@@ -64,6 +65,7 @@ src_headers = [
'hdy-keypad.h',
'hdy-leaflet.h',
'hdy-list-box.h',
'hdy-navigation-direction.h',
'hdy-preferences-group.h',
'hdy-preferences-page.h',
'hdy-preferences-row.h',
......@@ -108,6 +110,7 @@ src_sources = [
'hdy-leaflet.c',
'hdy-list-box.c',
'hdy-main.c',
'hdy-navigation-direction.c',
'hdy-preferences-group.c',
'hdy-preferences-page.c',
'hdy-preferences-row.c',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment