Commit ab34eef8 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas

App HdyPaginatorBox

This will be used in the next commit as an internal part of a paginator
widget.
parent 932286ae
......@@ -7,6 +7,7 @@ private_headers = [
'gtkprogresstrackerprivate.h',
'gtk-window-private.h',
'hdy-main-private.h',
'hdy-paginator-box-private.h',
'hdy-preferences-group-private.h',
'hdy-preferences-page-private.h',
'hdy-style-private.h',
......
/*
* 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 <gtk/gtk.h>
G_BEGIN_DECLS
#define HDY_TYPE_PAGINATOR_BOX (hdy_paginator_box_get_type())
G_DECLARE_FINAL_TYPE (HdyPaginatorBox, hdy_paginator_box, HDY, PAGINATOR_BOX, GtkContainer)
HdyPaginatorBox *hdy_paginator_box_new (void);
void hdy_paginator_box_insert (HdyPaginatorBox *self,
GtkWidget *child,
gint position);
void hdy_paginator_box_reorder (HdyPaginatorBox *self,
GtkWidget *child,
gint position);
void hdy_paginator_box_animate (HdyPaginatorBox *self,
gdouble position,
gint64 duration);
gboolean hdy_paginator_box_is_animating (HdyPaginatorBox *self);
void hdy_paginator_box_stop_animation (HdyPaginatorBox *self);
void hdy_paginator_box_scroll_to (HdyPaginatorBox *self,
GtkWidget *widget,
gint64 duration);
guint hdy_paginator_box_get_n_pages (HdyPaginatorBox *self);
gdouble hdy_paginator_box_get_distance (HdyPaginatorBox *self);
gdouble hdy_paginator_box_get_position (HdyPaginatorBox *self);
void hdy_paginator_box_set_position (HdyPaginatorBox *self,
gdouble position);
guint hdy_paginator_box_get_spacing (HdyPaginatorBox *self);
void hdy_paginator_box_set_spacing (HdyPaginatorBox *self,
guint spacing);
G_END_DECLS
This diff is collapsed.
......@@ -118,6 +118,7 @@ src_sources = [
'hdy-leaflet.c',
'hdy-list-box.c',
'hdy-main.c',
'hdy-paginator-box.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