regenerate with handy 0.84
This commit is contained in:
parent
8e83a51344
commit
9a6ea45320
4621
Handy-1.gir
4621
Handy-1.gir
File diff suppressed because it is too large
Load diff
|
@ -15,7 +15,7 @@ libc = "0.2"
|
|||
gdk-pixbuf-sys = "0.10"
|
||||
|
||||
[dev-dependencies]
|
||||
shell-words = "1.0.0"
|
||||
shell-words = "0.1.0"
|
||||
tempfile = "3"
|
||||
|
||||
[features]
|
||||
|
@ -39,7 +39,7 @@ version = "1.0.0"
|
|||
features = ["dox"]
|
||||
[package.metadata.system-deps.libhandy_1]
|
||||
name = "libhandy-1"
|
||||
version = "0.80"
|
||||
version = "1"
|
||||
|
||||
[package.metadata.system-deps.libhandy_1.feature-versions]
|
||||
v1_0 = "0.83"
|
||||
|
|
|
@ -42,6 +42,11 @@ pub const HDY_DECK_TRANSITION_TYPE_OVER: HdyDeckTransitionType = 0;
|
|||
pub const HDY_DECK_TRANSITION_TYPE_UNDER: HdyDeckTransitionType = 1;
|
||||
pub const HDY_DECK_TRANSITION_TYPE_SLIDE: HdyDeckTransitionType = 2;
|
||||
|
||||
pub type HdyHeaderGroupChildType = c_int;
|
||||
pub const HDY_HEADER_GROUP_CHILD_TYPE_HEADER_BAR: HdyHeaderGroupChildType = 0;
|
||||
pub const HDY_HEADER_GROUP_CHILD_TYPE_GTK_HEADER_BAR: HdyHeaderGroupChildType = 1;
|
||||
pub const HDY_HEADER_GROUP_CHILD_TYPE_HEADER_GROUP: HdyHeaderGroupChildType = 2;
|
||||
|
||||
pub type HdyLeafletTransitionType = c_int;
|
||||
pub const HDY_LEAFLET_TRANSITION_TYPE_OVER: HdyLeafletTransitionType = 0;
|
||||
pub const HDY_LEAFLET_TRANSITION_TYPE_UNDER: HdyLeafletTransitionType = 1;
|
||||
|
@ -214,6 +219,23 @@ impl ::std::fmt::Debug for HdyHeaderBarClass {
|
|||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyHeaderGroupChildClass {
|
||||
pub parent_class: gobject::GObjectClass,
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for HdyHeaderGroupChildClass {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!(
|
||||
"HdyHeaderGroupChildClass @ {:?}",
|
||||
self as *const _
|
||||
))
|
||||
.field("parent_class", &self.parent_class)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyHeaderGroupClass {
|
||||
|
@ -534,15 +556,11 @@ impl ::std::fmt::Debug for HdyApplicationWindow {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyAvatar {
|
||||
pub parent_instance: gtk::GtkDrawingArea,
|
||||
}
|
||||
pub struct HdyAvatar(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyAvatar {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyAvatar @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
@ -634,15 +652,21 @@ impl ::std::fmt::Debug for HdyHeaderBar {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyHeaderGroup {
|
||||
pub parent_instance: gobject::GObject,
|
||||
}
|
||||
pub struct HdyHeaderGroup(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyHeaderGroup {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyHeaderGroup @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct HdyHeaderGroupChild(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyHeaderGroupChild {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyHeaderGroupChild @ {:?}", self as *const _))
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
@ -746,15 +770,11 @@ impl ::std::fmt::Debug for HdySearchBar {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdySqueezer {
|
||||
pub parent_instance: gtk::GtkContainer,
|
||||
}
|
||||
pub struct HdySqueezer(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdySqueezer {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdySqueezer @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
@ -800,43 +820,31 @@ impl ::std::fmt::Debug for HdyValueObject {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyViewSwitcher {
|
||||
pub parent_instance: gtk::GtkBin,
|
||||
}
|
||||
pub struct HdyViewSwitcher(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyViewSwitcher {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyViewSwitcher @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyViewSwitcherBar {
|
||||
pub parent_instance: gtk::GtkBin,
|
||||
}
|
||||
pub struct HdyViewSwitcherBar(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyViewSwitcherBar {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyViewSwitcherBar @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyViewSwitcherTitle {
|
||||
pub parent_instance: gtk::GtkBin,
|
||||
}
|
||||
pub struct HdyViewSwitcherTitle(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyViewSwitcherTitle {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyViewSwitcherTitle @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
@ -856,15 +864,11 @@ impl ::std::fmt::Debug for HdyWindow {
|
|||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct HdyWindowHandle {
|
||||
pub parent_instance: gtk::GtkEventBox,
|
||||
}
|
||||
pub struct HdyWindowHandle(c_void);
|
||||
|
||||
impl ::std::fmt::Debug for HdyWindowHandle {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(&format!("HdyWindowHandle @ {:?}", self as *const _))
|
||||
.field("parent_instance", &self.parent_instance)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
@ -894,9 +898,13 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// HdyDeckTransitionType
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_transition_type_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// HdyHeaderGroupChildType
|
||||
//=========================================================================
|
||||
pub fn hdy_header_group_child_type_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// HdyLeafletTransitionType
|
||||
//=========================================================================
|
||||
|
@ -905,7 +913,6 @@ extern "C" {
|
|||
//=========================================================================
|
||||
// HdyNavigationDirection
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_navigation_direction_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -943,7 +950,6 @@ extern "C" {
|
|||
// HdyApplicationWindow
|
||||
//=========================================================================
|
||||
pub fn hdy_application_window_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_application_window_new() -> *mut gtk::GtkWidget;
|
||||
|
||||
//=========================================================================
|
||||
|
@ -972,83 +978,54 @@ extern "C" {
|
|||
// HdyCarousel
|
||||
//=========================================================================
|
||||
pub fn hdy_carousel_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_allow_mouse_drag(self_: *mut HdyCarousel) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_animation_duration(self_: *mut HdyCarousel) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_center_content(self_: *mut HdyCarousel) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_indicator_spacing(self_: *mut HdyCarousel) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_indicator_style(self_: *mut HdyCarousel) -> HdyCarouselIndicatorStyle;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_interactive(self_: *mut HdyCarousel) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_n_pages(self_: *mut HdyCarousel) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_position(self_: *mut HdyCarousel) -> c_double;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_reveal_duration(self_: *mut HdyCarousel) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_get_spacing(self_: *mut HdyCarousel) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_insert(
|
||||
self_: *mut HdyCarousel,
|
||||
child: *mut gtk::GtkWidget,
|
||||
position: c_int,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_prepend(self_: *mut HdyCarousel, child: *mut gtk::GtkWidget);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_reorder(
|
||||
self_: *mut HdyCarousel,
|
||||
child: *mut gtk::GtkWidget,
|
||||
position: c_int,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_scroll_to(self_: *mut HdyCarousel, widget: *mut gtk::GtkWidget);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_scroll_to_full(
|
||||
self_: *mut HdyCarousel,
|
||||
widget: *mut gtk::GtkWidget,
|
||||
duration: i64,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_allow_mouse_drag(self_: *mut HdyCarousel, allow_mouse_drag: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_animation_duration(self_: *mut HdyCarousel, duration: c_uint);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_center_content(self_: *mut HdyCarousel, center_content: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_indicator_spacing(self_: *mut HdyCarousel, spacing: c_uint);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_indicator_style(
|
||||
self_: *mut HdyCarousel,
|
||||
style: HdyCarouselIndicatorStyle,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_interactive(self_: *mut HdyCarousel, interactive: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_reveal_duration(self_: *mut HdyCarousel, reveal_duration: c_uint);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_carousel_set_spacing(self_: *mut HdyCarousel, spacing: c_uint);
|
||||
|
||||
//=========================================================================
|
||||
// HdyClamp
|
||||
//=========================================================================
|
||||
pub fn hdy_clamp_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_clamp_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_clamp_get_maximum_size(self_: *mut HdyClamp) -> c_int;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_clamp_get_tightening_threshold(self_: *mut HdyClamp) -> c_int;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_clamp_set_maximum_size(self_: *mut HdyClamp, maximum_size: c_int);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_clamp_set_tightening_threshold(self_: *mut HdyClamp, tightening_threshold: c_int);
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1095,53 +1072,34 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn hdy_deck_get_type() -> GType;
|
||||
pub fn hdy_deck_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_adjacent_child(
|
||||
self_: *mut HdyDeck,
|
||||
direction: HdyNavigationDirection,
|
||||
) -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_can_swipe_back(self_: *mut HdyDeck) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_can_swipe_forward(self_: *mut HdyDeck) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_homogeneous(
|
||||
self_: *mut HdyDeck,
|
||||
orientation: gtk::GtkOrientation,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_interpolate_size(self_: *mut HdyDeck) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_transition_duration(self_: *mut HdyDeck) -> c_uint;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_transition_running(self_: *mut HdyDeck) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_transition_type(self_: *mut HdyDeck) -> HdyDeckTransitionType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_visible_child(self_: *mut HdyDeck) -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_get_visible_child_name(self_: *mut HdyDeck) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_navigate(self_: *mut HdyDeck, direction: HdyNavigationDirection) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_can_swipe_back(self_: *mut HdyDeck, can_swipe_back: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_can_swipe_forward(self_: *mut HdyDeck, can_swipe_forward: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_homogeneous(
|
||||
self_: *mut HdyDeck,
|
||||
orientation: gtk::GtkOrientation,
|
||||
homogeneous: gboolean,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_interpolate_size(self_: *mut HdyDeck, interpolate_size: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_transition_duration(self_: *mut HdyDeck, duration: c_uint);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_transition_type(self_: *mut HdyDeck, transition: HdyDeckTransitionType);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_visible_child(self_: *mut HdyDeck, visible_child: *mut gtk::GtkWidget);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_deck_set_visible_child_name(self_: *mut HdyDeck, name: *const c_char);
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1160,37 +1118,27 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn hdy_expander_row_get_type() -> GType;
|
||||
pub fn hdy_expander_row_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_add_action(self_: *mut HdyExpanderRow, widget: *mut gtk::GtkWidget);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_add_prefix(self_: *mut HdyExpanderRow, widget: *mut gtk::GtkWidget);
|
||||
pub fn hdy_expander_row_get_enable_expansion(self_: *mut HdyExpanderRow) -> gboolean;
|
||||
pub fn hdy_expander_row_get_expanded(self_: *mut HdyExpanderRow) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_get_icon_name(self_: *mut HdyExpanderRow) -> *const c_char;
|
||||
pub fn hdy_expander_row_get_show_enable_switch(self_: *mut HdyExpanderRow) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_get_subtitle(self_: *mut HdyExpanderRow) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_get_title(self_: *mut HdyExpanderRow) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_get_use_underline(self_: *mut HdyExpanderRow) -> gboolean;
|
||||
pub fn hdy_expander_row_set_enable_expansion(
|
||||
self_: *mut HdyExpanderRow,
|
||||
enable_expansion: gboolean,
|
||||
);
|
||||
pub fn hdy_expander_row_set_expanded(self_: *mut HdyExpanderRow, expanded: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_set_icon_name(self_: *mut HdyExpanderRow, icon_name: *const c_char);
|
||||
pub fn hdy_expander_row_set_show_enable_switch(
|
||||
self_: *mut HdyExpanderRow,
|
||||
show_enable_switch: gboolean,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_set_subtitle(self_: *mut HdyExpanderRow, subtitle: *const c_char);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_set_title(self_: *mut HdyExpanderRow, title: *const c_char);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_expander_row_set_use_underline(self_: *mut HdyExpanderRow, use_underline: gboolean);
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1234,20 +1182,54 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn hdy_header_group_get_type() -> GType;
|
||||
pub fn hdy_header_group_new() -> *mut HdyHeaderGroup;
|
||||
pub fn hdy_header_group_add_gtk_header_bar(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_bar: *mut gtk::GtkHeaderBar,
|
||||
);
|
||||
pub fn hdy_header_group_add_header_bar(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_bar: *mut HdyHeaderBar,
|
||||
);
|
||||
pub fn hdy_header_group_add_header_group(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_group: *mut HdyHeaderGroup,
|
||||
);
|
||||
pub fn hdy_header_group_get_children(self_: *mut HdyHeaderGroup) -> *mut glib::GSList;
|
||||
pub fn hdy_header_group_get_decorate_all(self_: *mut HdyHeaderGroup) -> gboolean;
|
||||
pub fn hdy_header_group_remove_child(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
child: *mut HdyHeaderGroupChild,
|
||||
);
|
||||
pub fn hdy_header_group_remove_gtk_header_bar(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_bar: *mut gtk::GtkHeaderBar,
|
||||
);
|
||||
pub fn hdy_header_group_get_focus(self_: *mut HdyHeaderGroup) -> *mut gtk::GtkHeaderBar;
|
||||
pub fn hdy_header_group_get_header_bars(self_: *mut HdyHeaderGroup) -> *mut glib::GSList;
|
||||
pub fn hdy_header_group_remove_header_bar(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_bar: *mut gtk::GtkHeaderBar,
|
||||
header_bar: *mut HdyHeaderBar,
|
||||
);
|
||||
pub fn hdy_header_group_set_focus(
|
||||
pub fn hdy_header_group_remove_header_group(
|
||||
self_: *mut HdyHeaderGroup,
|
||||
header_bar: *mut gtk::GtkHeaderBar,
|
||||
header_group: *mut HdyHeaderGroup,
|
||||
);
|
||||
pub fn hdy_header_group_set_decorate_all(self_: *mut HdyHeaderGroup, decorate_all: gboolean);
|
||||
|
||||
//=========================================================================
|
||||
// HdyHeaderGroupChild
|
||||
//=========================================================================
|
||||
pub fn hdy_header_group_child_get_type() -> GType;
|
||||
pub fn hdy_header_group_child_get_child_type(
|
||||
self_: *mut HdyHeaderGroupChild,
|
||||
) -> HdyHeaderGroupChildType;
|
||||
pub fn hdy_header_group_child_get_gtk_header_bar(
|
||||
self_: *mut HdyHeaderGroupChild,
|
||||
) -> *mut gtk::GtkHeaderBar;
|
||||
pub fn hdy_header_group_child_get_header_bar(
|
||||
self_: *mut HdyHeaderGroupChild,
|
||||
) -> *mut HdyHeaderBar;
|
||||
pub fn hdy_header_group_child_get_header_group(
|
||||
self_: *mut HdyHeaderGroupChild,
|
||||
) -> *mut HdyHeaderGroup;
|
||||
|
||||
//=========================================================================
|
||||
// HdyKeypad
|
||||
|
@ -1269,7 +1251,6 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn hdy_leaflet_get_type() -> GType;
|
||||
pub fn hdy_leaflet_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_leaflet_get_adjacent_child(
|
||||
self_: *mut HdyLeaflet,
|
||||
direction: HdyNavigationDirection,
|
||||
|
@ -1289,7 +1270,6 @@ extern "C" {
|
|||
pub fn hdy_leaflet_get_transition_type(self_: *mut HdyLeaflet) -> HdyLeafletTransitionType;
|
||||
pub fn hdy_leaflet_get_visible_child(self_: *mut HdyLeaflet) -> *mut gtk::GtkWidget;
|
||||
pub fn hdy_leaflet_get_visible_child_name(self_: *mut HdyLeaflet) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_leaflet_navigate(
|
||||
self_: *mut HdyLeaflet,
|
||||
direction: HdyNavigationDirection,
|
||||
|
@ -1359,9 +1339,7 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn hdy_preferences_window_get_type() -> GType;
|
||||
pub fn hdy_preferences_window_new() -> *mut gtk::GtkWidget;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_preferences_window_get_search_enabled(self_: *mut HdyPreferencesWindow) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_preferences_window_set_search_enabled(
|
||||
self_: *mut HdyPreferencesWindow,
|
||||
search_enabled: gboolean,
|
||||
|
@ -1426,26 +1404,17 @@ extern "C" {
|
|||
// HdySwipeTracker
|
||||
//=========================================================================
|
||||
pub fn hdy_swipe_tracker_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_new(swipeable: *mut HdySwipeable) -> *mut HdySwipeTracker;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_get_allow_mouse_drag(self_: *mut HdySwipeTracker) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_get_enabled(self_: *mut HdySwipeTracker) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_get_reversed(self_: *mut HdySwipeTracker) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_get_swipeable(self_: *mut HdySwipeTracker) -> *mut HdySwipeable;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_set_allow_mouse_drag(
|
||||
self_: *mut HdySwipeTracker,
|
||||
allow_mouse_drag: gboolean,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_set_enabled(self_: *mut HdySwipeTracker, enabled: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_set_reversed(self_: *mut HdySwipeTracker, reversed: gboolean);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipe_tracker_shift_position(self_: *mut HdySwipeTracker, delta: c_double);
|
||||
|
||||
//=========================================================================
|
||||
|
@ -1520,56 +1489,42 @@ extern "C" {
|
|||
// HdyViewSwitcherTitle
|
||||
//=========================================================================
|
||||
pub fn hdy_view_switcher_title_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_new() -> *mut HdyViewSwitcherTitle;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_icon_size(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
) -> gtk::GtkIconSize;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_policy(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
) -> HdyViewSwitcherPolicy;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_stack(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
) -> *mut gtk::GtkStack;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_subtitle(self_: *mut HdyViewSwitcherTitle) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_title(self_: *mut HdyViewSwitcherTitle) -> *const c_char;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_title_visible(self_: *mut HdyViewSwitcherTitle) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_get_view_switcher_enabled(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
) -> gboolean;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_icon_size(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
icon_size: gtk::GtkIconSize,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_policy(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
policy: HdyViewSwitcherPolicy,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_stack(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
stack: *mut gtk::GtkStack,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_subtitle(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
subtitle: *const c_char,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_title(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
title: *const c_char,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_view_switcher_title_set_view_switcher_enabled(
|
||||
self_: *mut HdyViewSwitcherTitle,
|
||||
enabled: gboolean,
|
||||
|
@ -1579,42 +1534,32 @@ extern "C" {
|
|||
// HdyWindow
|
||||
//=========================================================================
|
||||
pub fn hdy_window_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_window_new() -> *mut gtk::GtkWidget;
|
||||
|
||||
//=========================================================================
|
||||
// HdyWindowHandle
|
||||
//=========================================================================
|
||||
pub fn hdy_window_handle_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_window_handle_new() -> *mut gtk::GtkWidget;
|
||||
|
||||
//=========================================================================
|
||||
// HdySwipeable
|
||||
//=========================================================================
|
||||
pub fn hdy_swipeable_get_type() -> GType;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_emit_child_switched(
|
||||
self_: *mut HdySwipeable,
|
||||
index: c_uint,
|
||||
duration: i64,
|
||||
);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_cancel_progress(self_: *mut HdySwipeable) -> c_double;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_distance(self_: *mut HdySwipeable) -> c_double;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_progress(self_: *mut HdySwipeable) -> c_double;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_snap_points(
|
||||
self_: *mut HdySwipeable,
|
||||
n_snap_points: *mut c_int,
|
||||
) -> *mut c_double;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_swipe_area(self_: *mut HdySwipeable, rect: *mut gdk::GdkRectangle);
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_get_swipe_tracker(self_: *mut HdySwipeable) -> *mut HdySwipeTracker;
|
||||
#[cfg(any(feature = "v1_0", feature = "dox"))]
|
||||
pub fn hdy_swipeable_switch_child(self_: *mut HdySwipeable, index: c_uint, duration: i64);
|
||||
|
||||
//=========================================================================
|
||||
|
|
|
@ -280,13 +280,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<HdyApplicationWindowClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyAvatar",
|
||||
Layout {
|
||||
size: size_of::<HdyAvatar>(),
|
||||
alignment: align_of::<HdyAvatar>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyAvatarClass",
|
||||
Layout {
|
||||
|
@ -393,10 +386,17 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
},
|
||||
),
|
||||
(
|
||||
"HdyHeaderGroup",
|
||||
"HdyHeaderGroupChildClass",
|
||||
Layout {
|
||||
size: size_of::<HdyHeaderGroup>(),
|
||||
alignment: align_of::<HdyHeaderGroup>(),
|
||||
size: size_of::<HdyHeaderGroupChildClass>(),
|
||||
alignment: align_of::<HdyHeaderGroupChildClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyHeaderGroupChildType",
|
||||
Layout {
|
||||
size: size_of::<HdyHeaderGroupChildType>(),
|
||||
alignment: align_of::<HdyHeaderGroupChildType>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
|
@ -518,13 +518,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<HdySearchBarClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdySqueezer",
|
||||
Layout {
|
||||
size: size_of::<HdySqueezer>(),
|
||||
alignment: align_of::<HdySqueezer>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdySqueezerClass",
|
||||
Layout {
|
||||
|
@ -574,20 +567,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<HdyValueObjectClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyViewSwitcher",
|
||||
Layout {
|
||||
size: size_of::<HdyViewSwitcher>(),
|
||||
alignment: align_of::<HdyViewSwitcher>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyViewSwitcherBar",
|
||||
Layout {
|
||||
size: size_of::<HdyViewSwitcherBar>(),
|
||||
alignment: align_of::<HdyViewSwitcherBar>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyViewSwitcherBarClass",
|
||||
Layout {
|
||||
|
@ -609,13 +588,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<HdyViewSwitcherPolicy>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyViewSwitcherTitle",
|
||||
Layout {
|
||||
size: size_of::<HdyViewSwitcherTitle>(),
|
||||
alignment: align_of::<HdyViewSwitcherTitle>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyViewSwitcherTitleClass",
|
||||
Layout {
|
||||
|
@ -637,13 +609,6 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[
|
|||
alignment: align_of::<HdyWindowClass>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyWindowHandle",
|
||||
Layout {
|
||||
size: size_of::<HdyWindowHandle>(),
|
||||
alignment: align_of::<HdyWindowHandle>(),
|
||||
},
|
||||
),
|
||||
(
|
||||
"HdyWindowHandleClass",
|
||||
Layout {
|
||||
|
@ -662,6 +627,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
|
|||
("(gint) HDY_DECK_TRANSITION_TYPE_OVER", "0"),
|
||||
("(gint) HDY_DECK_TRANSITION_TYPE_SLIDE", "2"),
|
||||
("(gint) HDY_DECK_TRANSITION_TYPE_UNDER", "1"),
|
||||
("(gint) HDY_HEADER_GROUP_CHILD_TYPE_GTK_HEADER_BAR", "1"),
|
||||
("(gint) HDY_HEADER_GROUP_CHILD_TYPE_HEADER_BAR", "0"),
|
||||
("(gint) HDY_HEADER_GROUP_CHILD_TYPE_HEADER_GROUP", "2"),
|
||||
("(gint) HDY_LEAFLET_TRANSITION_TYPE_OVER", "0"),
|
||||
("(gint) HDY_LEAFLET_TRANSITION_TYPE_SLIDE", "2"),
|
||||
("(gint) HDY_LEAFLET_TRANSITION_TYPE_UNDER", "1"),
|
||||
|
|
|
@ -24,6 +24,8 @@ generate = [
|
|||
"Handy.CarouselIndicatorStyle",
|
||||
"Handy.CenteringPolicy",
|
||||
"Handy.DeckTransitionType",
|
||||
"Handy.HeaderGroupChild",
|
||||
"Handy.HeaderGroupChildType",
|
||||
"Handy.LeafletTransitionType",
|
||||
"Handy.NavigationDirection",
|
||||
"Handy.SqueezerTransitionType",
|
||||
|
@ -42,6 +44,8 @@ manual = [
|
|||
"Gdk.Event",
|
||||
"Gdk.EventMask",
|
||||
"Gdk.Rectangle",
|
||||
"Gio.ActionGroup",
|
||||
"Gio.ActionMap",
|
||||
"Gio.ListModel",
|
||||
"Gtk.Actionable",
|
||||
"Gtk.Adjustment",
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
use gio;
|
||||
use glib::object::Cast;
|
||||
use glib::translate::*;
|
||||
use gtk;
|
||||
|
@ -9,7 +10,7 @@ use handy_sys;
|
|||
use std::fmt;
|
||||
|
||||
glib_wrapper! {
|
||||
pub struct ApplicationWindow(Object<handy_sys::HdyApplicationWindow, handy_sys::HdyApplicationWindowClass, ApplicationWindowClass>) @extends gtk::ApplicationWindow, gtk::Window, gtk::Bin, gtk::Container, gtk::Widget, @implements gtk::Buildable;
|
||||
pub struct ApplicationWindow(Object<handy_sys::HdyApplicationWindow, handy_sys::HdyApplicationWindowClass, ApplicationWindowClass>) @extends gtk::ApplicationWindow, gtk::Window, gtk::Bin, gtk::Container, gtk::Widget, @implements gtk::Buildable, gio::ActionGroup, gio::ActionMap;
|
||||
|
||||
match fn {
|
||||
get_type => || handy_sys::hdy_application_window_get_type(),
|
||||
|
|
|
@ -237,6 +237,86 @@ impl SetValue for DeckTransitionType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum HeaderGroupChildType {
|
||||
HeaderBar,
|
||||
GtkHeaderBar,
|
||||
HeaderGroup,
|
||||
#[doc(hidden)]
|
||||
__Unknown(i32),
|
||||
}
|
||||
|
||||
impl fmt::Display for HeaderGroupChildType {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"HeaderGroupChildType::{}",
|
||||
match *self {
|
||||
HeaderGroupChildType::HeaderBar => "HeaderBar",
|
||||
HeaderGroupChildType::GtkHeaderBar => "GtkHeaderBar",
|
||||
HeaderGroupChildType::HeaderGroup => "HeaderGroup",
|
||||
_ => "Unknown",
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
impl ToGlib for HeaderGroupChildType {
|
||||
type GlibType = handy_sys::HdyHeaderGroupChildType;
|
||||
|
||||
fn to_glib(&self) -> handy_sys::HdyHeaderGroupChildType {
|
||||
match *self {
|
||||
HeaderGroupChildType::HeaderBar => handy_sys::HDY_HEADER_GROUP_CHILD_TYPE_HEADER_BAR,
|
||||
HeaderGroupChildType::GtkHeaderBar => {
|
||||
handy_sys::HDY_HEADER_GROUP_CHILD_TYPE_GTK_HEADER_BAR
|
||||
}
|
||||
HeaderGroupChildType::HeaderGroup => {
|
||||
handy_sys::HDY_HEADER_GROUP_CHILD_TYPE_HEADER_GROUP
|
||||
}
|
||||
HeaderGroupChildType::__Unknown(value) => value,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
impl FromGlib<handy_sys::HdyHeaderGroupChildType> for HeaderGroupChildType {
|
||||
fn from_glib(value: handy_sys::HdyHeaderGroupChildType) -> Self {
|
||||
skip_assert_initialized!();
|
||||
match value {
|
||||
0 => HeaderGroupChildType::HeaderBar,
|
||||
1 => HeaderGroupChildType::GtkHeaderBar,
|
||||
2 => HeaderGroupChildType::HeaderGroup,
|
||||
value => HeaderGroupChildType::__Unknown(value),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl StaticType for HeaderGroupChildType {
|
||||
fn static_type() -> Type {
|
||||
unsafe { from_glib(handy_sys::hdy_header_group_child_type_get_type()) }
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValueOptional<'a> for HeaderGroupChildType {
|
||||
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
|
||||
Some(FromValue::from_value(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromValue<'a> for HeaderGroupChildType {
|
||||
unsafe fn from_value(value: &Value) -> Self {
|
||||
from_glib(gobject_sys::g_value_get_enum(value.to_glib_none().0))
|
||||
}
|
||||
}
|
||||
|
||||
impl SetValue for HeaderGroupChildType {
|
||||
unsafe fn set_value(value: &mut Value, this: &Self) {
|
||||
gobject_sys::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
#[non_exhaustive]
|
||||
pub enum LeafletTransitionType {
|
||||
|
|
|
@ -15,6 +15,8 @@ use handy_sys;
|
|||
use std::boxed::Box as Box_;
|
||||
use std::fmt;
|
||||
use std::mem::transmute;
|
||||
use HeaderBar;
|
||||
use HeaderGroupChild;
|
||||
|
||||
glib_wrapper! {
|
||||
pub struct HeaderGroup(Object<handy_sys::HdyHeaderGroup, handy_sys::HdyHeaderGroupClass, HeaderGroupClass>) @implements gtk::Buildable;
|
||||
|
@ -39,7 +41,7 @@ impl Default for HeaderGroup {
|
|||
|
||||
#[derive(Clone, Default)]
|
||||
pub struct HeaderGroupBuilder {
|
||||
focus: Option<gtk::HeaderBar>,
|
||||
decorate_all: Option<bool>,
|
||||
}
|
||||
|
||||
impl HeaderGroupBuilder {
|
||||
|
@ -49,8 +51,8 @@ impl HeaderGroupBuilder {
|
|||
|
||||
pub fn build(self) -> HeaderGroup {
|
||||
let mut properties: Vec<(&str, &dyn ToValue)> = vec![];
|
||||
if let Some(ref focus) = self.focus {
|
||||
properties.push(("focus", focus));
|
||||
if let Some(ref decorate_all) = self.decorate_all {
|
||||
properties.push(("decorate-all", decorate_all));
|
||||
}
|
||||
let ret = glib::Object::new(HeaderGroup::static_type(), &properties)
|
||||
.expect("object new")
|
||||
|
@ -59,8 +61,8 @@ impl HeaderGroupBuilder {
|
|||
ret
|
||||
}
|
||||
|
||||
pub fn focus<P: IsA<gtk::HeaderBar>>(mut self, focus: &P) -> Self {
|
||||
self.focus = Some(focus.clone().upcast());
|
||||
pub fn decorate_all(mut self, decorate_all: bool) -> Self {
|
||||
self.decorate_all = Some(decorate_all);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
@ -68,21 +70,43 @@ impl HeaderGroupBuilder {
|
|||
pub const NONE_HEADER_GROUP: Option<&HeaderGroup> = None;
|
||||
|
||||
pub trait HeaderGroupExt: 'static {
|
||||
fn add_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P);
|
||||
fn add_gtk_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P);
|
||||
|
||||
fn get_focus(&self) -> Option<gtk::HeaderBar>;
|
||||
fn add_header_bar<P: IsA<HeaderBar>>(&self, header_bar: &P);
|
||||
|
||||
fn get_header_bars(&self) -> Vec<gtk::HeaderBar>;
|
||||
fn add_header_group<P: IsA<HeaderGroup>>(&self, header_group: &P);
|
||||
|
||||
fn remove_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P);
|
||||
fn get_children(&self) -> Vec<HeaderGroupChild>;
|
||||
|
||||
fn set_focus<P: IsA<gtk::HeaderBar>>(&self, header_bar: Option<&P>);
|
||||
fn get_decorate_all(&self) -> bool;
|
||||
|
||||
fn connect_property_focus_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
fn remove_child<P: IsA<HeaderGroupChild>>(&self, child: &P);
|
||||
|
||||
fn remove_gtk_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P);
|
||||
|
||||
fn remove_header_bar<P: IsA<HeaderBar>>(&self, header_bar: &P);
|
||||
|
||||
fn remove_header_group<P: IsA<HeaderGroup>>(&self, header_group: &P);
|
||||
|
||||
fn set_decorate_all(&self, decorate_all: bool);
|
||||
|
||||
fn connect_update_decoration_layouts<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
||||
|
||||
fn connect_property_decorate_all_notify<F: Fn(&Self) + 'static>(&self, f: F)
|
||||
-> SignalHandlerId;
|
||||
}
|
||||
|
||||
impl<O: IsA<HeaderGroup>> HeaderGroupExt for O {
|
||||
fn add_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P) {
|
||||
fn add_gtk_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_add_gtk_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
header_bar.as_ref().to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn add_header_bar<P: IsA<HeaderBar>>(&self, header_bar: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_add_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -91,23 +115,50 @@ impl<O: IsA<HeaderGroup>> HeaderGroupExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_focus(&self) -> Option<gtk::HeaderBar> {
|
||||
fn add_header_group<P: IsA<HeaderGroup>>(&self, header_group: &P) {
|
||||
unsafe {
|
||||
from_glib_none(handy_sys::hdy_header_group_get_focus(
|
||||
handy_sys::hdy_header_group_add_header_group(
|
||||
self.as_ref().to_glib_none().0,
|
||||
header_group.as_ref().to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn get_children(&self) -> Vec<HeaderGroupChild> {
|
||||
unsafe {
|
||||
FromGlibPtrContainer::from_glib_none(handy_sys::hdy_header_group_get_children(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn get_header_bars(&self) -> Vec<gtk::HeaderBar> {
|
||||
fn get_decorate_all(&self) -> bool {
|
||||
unsafe {
|
||||
FromGlibPtrContainer::from_glib_none(handy_sys::hdy_header_group_get_header_bars(
|
||||
from_glib(handy_sys::hdy_header_group_get_decorate_all(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn remove_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P) {
|
||||
fn remove_child<P: IsA<HeaderGroupChild>>(&self, child: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_remove_child(
|
||||
self.as_ref().to_glib_none().0,
|
||||
child.as_ref().to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn remove_gtk_header_bar<P: IsA<gtk::HeaderBar>>(&self, header_bar: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_remove_gtk_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
header_bar.as_ref().to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn remove_header_bar<P: IsA<HeaderBar>>(&self, header_bar: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_remove_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -116,17 +167,52 @@ impl<O: IsA<HeaderGroup>> HeaderGroupExt for O {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_focus<P: IsA<gtk::HeaderBar>>(&self, header_bar: Option<&P>) {
|
||||
fn remove_header_group<P: IsA<HeaderGroup>>(&self, header_group: &P) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_set_focus(
|
||||
handy_sys::hdy_header_group_remove_header_group(
|
||||
self.as_ref().to_glib_none().0,
|
||||
header_bar.map(|p| p.as_ref()).to_glib_none().0,
|
||||
header_group.as_ref().to_glib_none().0,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn connect_property_focus_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_focus_trampoline<P, F: Fn(&P) + 'static>(
|
||||
fn set_decorate_all(&self, decorate_all: bool) {
|
||||
unsafe {
|
||||
handy_sys::hdy_header_group_set_decorate_all(
|
||||
self.as_ref().to_glib_none().0,
|
||||
decorate_all.to_glib(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn connect_update_decoration_layouts<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
||||
unsafe extern "C" fn update_decoration_layouts_trampoline<P, F: Fn(&P) + 'static>(
|
||||
this: *mut handy_sys::HdyHeaderGroup,
|
||||
f: glib_sys::gpointer,
|
||||
) where
|
||||
P: IsA<HeaderGroup>,
|
||||
{
|
||||
let f: &F = &*(f as *const F);
|
||||
f(&HeaderGroup::from_glib_borrow(this).unsafe_cast_ref())
|
||||
}
|
||||
unsafe {
|
||||
let f: Box_<F> = Box_::new(f);
|
||||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"update-decoration-layouts\0".as_ptr() as *const _,
|
||||
Some(transmute::<_, unsafe extern "C" fn()>(
|
||||
update_decoration_layouts_trampoline::<Self, F> as *const (),
|
||||
)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fn connect_property_decorate_all_notify<F: Fn(&Self) + 'static>(
|
||||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId {
|
||||
unsafe extern "C" fn notify_decorate_all_trampoline<P, F: Fn(&P) + 'static>(
|
||||
this: *mut handy_sys::HdyHeaderGroup,
|
||||
_param_spec: glib_sys::gpointer,
|
||||
f: glib_sys::gpointer,
|
||||
|
@ -140,9 +226,9 @@ impl<O: IsA<HeaderGroup>> HeaderGroupExt for O {
|
|||
let f: Box_<F> = Box_::new(f);
|
||||
connect_raw(
|
||||
self.as_ptr() as *mut _,
|
||||
b"notify::focus\0".as_ptr() as *const _,
|
||||
b"notify::decorate-all\0".as_ptr() as *const _,
|
||||
Some(transmute::<_, unsafe extern "C" fn()>(
|
||||
notify_focus_trampoline::<Self, F> as *const (),
|
||||
notify_decorate_all_trampoline::<Self, F> as *const (),
|
||||
)),
|
||||
Box_::into_raw(f),
|
||||
)
|
||||
|
|
72
libhandy/src/auto/header_group_child.rs
Normal file
72
libhandy/src/auto/header_group_child.rs
Normal file
|
@ -0,0 +1,72 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files)
|
||||
// DO NOT EDIT
|
||||
|
||||
use glib::object::IsA;
|
||||
use glib::translate::*;
|
||||
use gtk;
|
||||
use handy_sys;
|
||||
use std::fmt;
|
||||
use HeaderBar;
|
||||
use HeaderGroup;
|
||||
use HeaderGroupChildType;
|
||||
|
||||
glib_wrapper! {
|
||||
pub struct HeaderGroupChild(Object<handy_sys::HdyHeaderGroupChild, handy_sys::HdyHeaderGroupChildClass, HeaderGroupChildClass>);
|
||||
|
||||
match fn {
|
||||
get_type => || handy_sys::hdy_header_group_child_get_type(),
|
||||
}
|
||||
}
|
||||
|
||||
pub const NONE_HEADER_GROUP_CHILD: Option<&HeaderGroupChild> = None;
|
||||
|
||||
pub trait HeaderGroupChildExt: 'static {
|
||||
fn get_child_type(&self) -> HeaderGroupChildType;
|
||||
|
||||
fn get_gtk_header_bar(&self) -> Option<gtk::HeaderBar>;
|
||||
|
||||
fn get_header_bar(&self) -> Option<HeaderBar>;
|
||||
|
||||
fn get_header_group(&self) -> Option<HeaderGroup>;
|
||||
}
|
||||
|
||||
impl<O: IsA<HeaderGroupChild>> HeaderGroupChildExt for O {
|
||||
fn get_child_type(&self) -> HeaderGroupChildType {
|
||||
unsafe {
|
||||
from_glib(handy_sys::hdy_header_group_child_get_child_type(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn get_gtk_header_bar(&self) -> Option<gtk::HeaderBar> {
|
||||
unsafe {
|
||||
from_glib_none(handy_sys::hdy_header_group_child_get_gtk_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn get_header_bar(&self) -> Option<HeaderBar> {
|
||||
unsafe {
|
||||
from_glib_none(handy_sys::hdy_header_group_child_get_header_bar(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fn get_header_group(&self) -> Option<HeaderGroup> {
|
||||
unsafe {
|
||||
from_glib_none(handy_sys::hdy_header_group_child_get_header_group(
|
||||
self.as_ref().to_glib_none().0,
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for HeaderGroupChild {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "HeaderGroupChild")
|
||||
}
|
||||
}
|
|
@ -52,6 +52,12 @@ pub use self::header_group::HeaderGroupBuilder;
|
|||
pub use self::header_group::HeaderGroupExt;
|
||||
pub use self::header_group::{HeaderGroup, HeaderGroupClass, NONE_HEADER_GROUP};
|
||||
|
||||
mod header_group_child;
|
||||
pub use self::header_group_child::HeaderGroupChildExt;
|
||||
pub use self::header_group_child::{
|
||||
HeaderGroupChild, HeaderGroupChildClass, NONE_HEADER_GROUP_CHILD,
|
||||
};
|
||||
|
||||
mod keypad;
|
||||
pub use self::keypad::KeypadBuilder;
|
||||
pub use self::keypad::KeypadExt;
|
||||
|
@ -145,6 +151,7 @@ mod enums;
|
|||
pub use self::enums::CarouselIndicatorStyle;
|
||||
pub use self::enums::CenteringPolicy;
|
||||
pub use self::enums::DeckTransitionType;
|
||||
pub use self::enums::HeaderGroupChildType;
|
||||
pub use self::enums::LeafletTransitionType;
|
||||
pub use self::enums::NavigationDirection;
|
||||
pub use self::enums::SqueezerTransitionType;
|
||||
|
@ -162,6 +169,7 @@ pub mod traits {
|
|||
pub use super::DeckExt;
|
||||
pub use super::ExpanderRowExt;
|
||||
pub use super::HeaderBarExt;
|
||||
pub use super::HeaderGroupChildExt;
|
||||
pub use super::HeaderGroupExt;
|
||||
pub use super::KeypadExt;
|
||||
pub use super::LeafletExt;
|
||||
|
|
|
@ -2,7 +2,10 @@ use glib::subclass::prelude::*;
|
|||
|
||||
use ApplicationWindowClass;
|
||||
|
||||
pub trait ApplicationWindowImpl: gtk::subclass::application_window::ApplicationWindowImpl + 'static {}
|
||||
pub trait ApplicationWindowImpl:
|
||||
gtk::subclass::application_window::ApplicationWindowImpl + 'static
|
||||
{
|
||||
}
|
||||
|
||||
unsafe impl<T: ObjectSubclass + ApplicationWindowImpl> IsSubclassable<T>
|
||||
for ApplicationWindowClass
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[wrap-git]
|
||||
url = https://gitlab.gnome.org/GNOME/libhandy.git
|
||||
revision = 0.83.0
|
||||
revision = 0.84.0
|
||||
|
|
Loading…
Reference in a new issue