// Generated by gir (https://github.com/gtk-rs/gir @ 23d7c100187c) // from // from gir-files (https://github.com/gtk-rs/gir-files.git @ 6415239ef435) // DO NOT EDIT #![cfg(unix)] use libdazzle_sys::*; use std::env; use std::error::Error; use std::ffi::OsString; use std::mem::{align_of, size_of}; use std::path::Path; use std::process::Command; use std::str; use tempfile::Builder; static PACKAGES: &[&str] = &["libdazzle-1.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic args.push("-std=c11".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {cmd:?} failed, {status}").into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{name} {err}").into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); let out = cmd.output()?; if !out.status.success() { return Err(format!("command {cmd:?} returned {}", out.status).into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn summary(&self) -> String { format!("{} passed; {} failed", self.passed, self.failed) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let mut c_constants: Vec<(String, String)> = Vec::new(); for l in get_c_output("constant").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing ';' separator"); c_constants.push((name.to_owned(), value.to_owned())); } let mut results = Results::default(); for ((rust_name, rust_value), (c_name, c_value)) in RUST_CONSTANTS.iter().zip(c_constants.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_value != c_value { results.record_failed(); eprintln!( "Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}", ); continue; } results.record_passed(); } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let mut c_layouts = Vec::new(); for l in get_c_output("layout").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing first ';' separator"); let (size, alignment) = value.split_once(';').expect("Missing second ';' separator"); let size = size.parse().expect("Failed to parse size"); let alignment = alignment.parse().expect("Failed to parse alignment"); c_layouts.push((name.to_owned(), Layout { size, alignment })); } let mut results = Results::default(); for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_layout != c_layout { results.record_failed(); eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",); continue; } results.record_passed(); } results.expect_total_success(); } fn get_c_output(name: &str) -> Result> { let tmpdir = Builder::new().prefix("abi").tempdir()?; let exe = tmpdir.path().join(name); let c_file = Path::new("tests").join(name).with_extension("c"); let cc = Compiler::new().expect("configured compiler"); cc.compile(&c_file, &exe)?; let mut abi_cmd = Command::new(exe); let output = abi_cmd.output()?; if !output.status.success() { return Err(format!("command {abi_cmd:?} failed, {output:?}").into()); } Ok(String::from_utf8(output.stdout)?) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ( "DzlAnimationClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlAnimationMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlApplication", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlApplicationClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlApplicationWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlApplicationWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBin", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBinClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBindingGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBoldingLabelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBox", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlBoxTheatricClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCenteringBin", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCenteringBinClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlChildPropertyActionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlColumnLayout", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlColumnLayoutClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCounter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCounterValue", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCountersWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCountersWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCpuGraphClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCpuModelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlCssProviderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDirectoryModelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDirectoryReaperClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockBin", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockBinClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockBinEdge", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockBinEdgeClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockItemInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockManager", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockOverlay", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockOverlayClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockOverlayEdgeClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockPaned", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockPanedClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockRevealer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockRevealerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockRevealerTransitionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockStack", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockStackClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockTransientGrabClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockWidget", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockWidgetClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlDockWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlElasticBin", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlElasticBinClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlEmptyState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlEmptyStateClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlEntryBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileChooserEntry", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileChooserEntryClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileTransfer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileTransferClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileTransferFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFileTransferStat", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFuzzyIndexBuilderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFuzzyIndexClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFuzzyIndexCursorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFuzzyIndexMatchClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlFuzzyMutableIndexMatch", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphColumnClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphLineRendererClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphModel", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphModelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphModelIter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphRendererInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphView", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlGraphViewClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlHeap", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlJoinedMenuClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListBox", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListBoxRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListBoxRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListModelFilterClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListStoreAdapter", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlListStoreAdapterClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlMenuButton", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlMenuButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlMenuManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlMultiPaned", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlMultiPanedClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPathBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPathClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPathElementClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPillBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesBin", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesBinClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesEntry", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesEntryClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesFileChooserButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesFlowBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesFontButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesPageClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesSpinButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesSwitchClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesView", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPreferencesViewClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPriorityBox", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPriorityBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlProgressButton", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlProgressButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlProgressIconClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlProgressMenuButton", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlProgressMenuButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPropertiesFlags", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlPropertiesGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlRadioBox", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlRadioBoxClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlReadOnlyListModelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlRecursiveFileMonitorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlRing", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlScrolledWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSearchBar", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSearchBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSettingsFlagActionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSettingsSandwichClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutAccelDialogClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutContextClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutControllerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutEntry", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutLabelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutManager", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutMatch", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutModelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutPhase", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutSimpleLabelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutTheme", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutThemeClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutThemeEditor", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutThemeEditorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutTooltipClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutsWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlShortcutsWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSignalGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSimpleLabelClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSimplePopover", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSimplePopoverClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSlider", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSliderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSliderPosition", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlStackList", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlStackListClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlStateMachine", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlStateMachineClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestion", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionButton", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionButtonClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionEntry", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionEntryBuffer", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionEntryBufferClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionEntryClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionPopoverClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlSuggestionRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTabClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTabStrip", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTabStripClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTabStyle", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTaskCacheClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlThemeManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlThreeGrid", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlThreeGridClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlThreeGridColumn", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTitlebarAnimation", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTree", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTreeBuilder", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTreeBuilderClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTreeClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTreeDropPosition", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlTreeNodeClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "DzlWidgetActionGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) DZL_ANIMATION_EASE_IN_CUBIC", "4"), ("(gint) DZL_ANIMATION_EASE_IN_OUT_CUBIC", "6"), ("(gint) DZL_ANIMATION_EASE_IN_OUT_QUAD", "3"), ("(gint) DZL_ANIMATION_EASE_IN_QUAD", "1"), ("(gint) DZL_ANIMATION_EASE_OUT_CUBIC", "5"), ("(gint) DZL_ANIMATION_EASE_OUT_QUAD", "2"), ("(gint) DZL_ANIMATION_LINEAR", "0"), ("DZL_DOCK_BIN_STYLE_CLASS_PINNED", "pinned"), ("(gint) DZL_DOCK_REVEALER_TRANSITION_TYPE_NONE", "0"), ("(gint) DZL_DOCK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN", "4"), ("(gint) DZL_DOCK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT", "2"), ("(gint) DZL_DOCK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT", "1"), ("(gint) DZL_DOCK_REVEALER_TRANSITION_TYPE_SLIDE_UP", "3"), ("DZL_ENABLE_TRACE", "0"), ("(guint) DZL_FILE_TRANSFER_FLAGS_MOVE", "1"), ("(guint) DZL_FILE_TRANSFER_FLAGS_NONE", "0"), ("(guint) DZL_PROPERTIES_FLAGS_NONE", "0"), ("(guint) DZL_PROPERTIES_FLAGS_STATEFUL_BOOLEANS", "1"), ("(gint) DZL_SHORTCUT_ACCELERATOR", "0"), ("(gint) DZL_SHORTCUT_GESTURE", "7"), ("(gint) DZL_SHORTCUT_GESTURE_PINCH", "1"), ("(gint) DZL_SHORTCUT_GESTURE_ROTATE_CLOCKWISE", "3"), ("(gint) DZL_SHORTCUT_GESTURE_ROTATE_COUNTERCLOCKWISE", "4"), ("(gint) DZL_SHORTCUT_GESTURE_STRETCH", "2"), ("(gint) DZL_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_LEFT", "5"), ("(gint) DZL_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_RIGHT", "6"), ("(gint) DZL_SHORTCUT_MATCH_EQUAL", "1"), ("(gint) DZL_SHORTCUT_MATCH_NONE", "0"), ("(gint) DZL_SHORTCUT_MATCH_PARTIAL", "2"), ("(guint) DZL_SHORTCUT_PHASE_BUBBLE", "2"), ("(guint) DZL_SHORTCUT_PHASE_CAPTURE", "1"), ("(guint) DZL_SHORTCUT_PHASE_DISPATCH", "0"), ("(guint) DZL_SHORTCUT_PHASE_GLOBAL", "4"), ("(gint) DZL_SLIDER_BOTTOM", "3"), ("(gint) DZL_SLIDER_LEFT", "4"), ("(gint) DZL_SLIDER_NONE", "0"), ("(gint) DZL_SLIDER_RIGHT", "2"), ("(gint) DZL_SLIDER_TOP", "1"), ("(guint) DZL_TAB_BOTH", "3"), ("(guint) DZL_TAB_ICONS", "2"), ("(guint) DZL_TAB_TEXT", "1"), ("(gint) DZL_THREE_GRID_COLUMN_CENTER", "1"), ("(gint) DZL_THREE_GRID_COLUMN_LEFT", "0"), ("(gint) DZL_THREE_GRID_COLUMN_RIGHT", "2"), ("(gint) DZL_TITLEBAR_ANIMATION_HIDDEN", "0"), ("(gint) DZL_TITLEBAR_ANIMATION_HIDING", "3"), ("(gint) DZL_TITLEBAR_ANIMATION_SHOWING", "1"), ("(gint) DZL_TITLEBAR_ANIMATION_SHOWN", "2"), ("(gint) DZL_TREE_DROP_AFTER", "2"), ("(gint) DZL_TREE_DROP_BEFORE", "1"), ("(gint) DZL_TREE_DROP_INTO", "0"), ];