pax_global_header00006660000000000000000000000064146752132000014512gustar00rootroot0000000000000052 comment=c261a768580b66dd1e41d6dbcd9ae0bf6637145e rust-libhandy-sys-0.11-0.11.1/000077500000000000000000000000001467521320000155505ustar00rootroot00000000000000rust-libhandy-sys-0.11-0.11.1/.cargo_vcs_info.json000066400000000000000000000001521467521320000215000ustar00rootroot00000000000000{ "git": { "sha1": "6ec68308fde11b2d16fe15f8e25b561301d8b40c" }, "path_in_vcs": "libhandy-sys" }rust-libhandy-sys-0.11-0.11.1/Cargo.toml000066400000000000000000000042241467521320000175020ustar00rootroot00000000000000# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "libhandy-sys" version = "0.11.1" authors = ["Julian Sparber "] build = "build.rs" links = "handy" description = "The sys part of the rust bindings for libhandy" documentation = "https://world.pages.gitlab.gnome.org/Rust/libhandy-rs/stable/latest/docs/libhandy-sys/" keywords = [ "libhandy", "handy", "gtk-rs", "gnome", ] license = "LGPL-2.1-only" repository = "https://gitlab.gnome.org/World/Rust/libhandy-rs" resolver = "1" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", "--generate-link-to-definition", ] [package.metadata.system-deps.libhandy_1] name = "libhandy-1" version = "1" [package.metadata.system-deps.libhandy_1.v1_2] version = "1.2" [package.metadata.system-deps.libhandy_1.v1_4] version = "1.4" [package.metadata.system-deps.libhandy_1.v1_6] version = "1.5" [lib] name = "libhandy_sys" [dependencies.gdk] version = "0.18" package = "gdk-sys" [dependencies.gdk_pixbuf] version = "0.18" package = "gdk-pixbuf-sys" [dependencies.gio] version = "0.18" package = "gio-sys" [dependencies.glib] version = "0.18" package = "glib-sys" [dependencies.gobject] version = "0.18" package = "gobject-sys" [dependencies.gtk] version = "0.18" features = ["v3_24"] package = "gtk-sys" [dependencies.libc] version = "0.2" [dependencies.pango] version = "0.18" package = "pango-sys" [dev-dependencies.shell-words] version = "1.0.0" [dev-dependencies.tempfile] version = "3" [build-dependencies.pkg-config] version = "0.3.7" [build-dependencies.system-deps] version = "6" [features] default = ["v1_0"] v1_0 = [] v1_2 = [] v1_4 = ["v1_2"] v1_6 = ["v1_4"] rust-libhandy-sys-0.11-0.11.1/Cargo.toml.orig000066400000000000000000000037711467521320000204470ustar00rootroot00000000000000[build-dependencies] pkg-config = "0.3.7" system-deps = "6" [dependencies] libc = "0.2" [dependencies.gdk_pixbuf] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk-rs-core.git" package = "gdk-pixbuf-sys" [dependencies.gdk] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk3-rs.git" package = "gdk-sys" [dependencies.gio] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk-rs-core.git" package = "gio-sys" [dependencies.glib] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk-rs-core.git" package = "glib-sys" [dependencies.gobject] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk-rs-core.git" package = "gobject-sys" [dependencies.gtk] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk3-rs.git" features = ["v3_24"] package = "gtk-sys" [dependencies.pango] version = "0.18" branch = "0.18" git = "https://github.com/gtk-rs/gtk-rs-core.git" package = "pango-sys" [dev-dependencies] shell-words = "1.0.0" tempfile = "3" [features] default = ["v1_0"] v1_0 = [] v1_2 = [] v1_4 = ["v1_2"] v1_6 = ["v1_4"] [lib] name = "libhandy_sys" [package] authors = ["Julian Sparber "] build = "build.rs" description = "The sys part of the rust bindings for libhandy" keywords = ["libhandy", "handy", "gtk-rs", "gnome"] license = "LGPL-2.1-only" links = "handy" name = "libhandy-sys" repository = "https://gitlab.gnome.org/World/Rust/libhandy-rs" documentation = "https://world.pages.gitlab.gnome.org/Rust/libhandy-rs/stable/latest/docs/libhandy-sys/" version = "0.11.1" edition = "2021" [package.metadata.docs.rs] all-features = true rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [package.metadata.system-deps.libhandy_1] name = "libhandy-1" version = "1" [package.metadata.system-deps.libhandy_1.v1_2] version = "1.2" [package.metadata.system-deps.libhandy_1.v1_4] version = "1.4" [package.metadata.system-deps.libhandy_1.v1_6] version = "1.5" rust-libhandy-sys-0.11-0.11.1/Gir.toml000066400000000000000000000003521467521320000171660ustar00rootroot00000000000000[options] girs_directories = ["../", "../gir-files"] work_mode = "sys" library = "Handy" version = "1" min_cfg_version = "1.0" external_libraries = [ "GLib", "GObject", "Gdk", "Gio", "Gtk", "Pango", "GdkPixbuf" ] rust-libhandy-sys-0.11-0.11.1/LICENSE000066400000000000000000000635341467521320000165700ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. libhandy-rs Copyright (C) 2021 World / Rust This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! rust-libhandy-sys-0.11-0.11.1/build.rs000066400000000000000000000007101467521320000172130ustar00rootroot00000000000000// 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(not(docsrs))] use std::process; #[cfg(docsrs)] fn main() {} // prevent linking libraries to avoid documentation failure #[cfg(not(docsrs))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={s}"); process::exit(1); } } rust-libhandy-sys-0.11-0.11.1/src/000077500000000000000000000000001467521320000163375ustar00rootroot00000000000000rust-libhandy-sys-0.11-0.11.1/src/lib.rs000066400000000000000000003002051467521320000174530ustar00rootroot00000000000000// 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 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow( clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms )] #![cfg_attr(docsrs, feature(doc_cfg))] #[allow(unused_imports)] use libc::{ c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, intptr_t, size_t, ssize_t, uintptr_t, FILE, }; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Enums pub type HdyCenteringPolicy = c_int; pub const HDY_CENTERING_POLICY_LOOSE: HdyCenteringPolicy = 0; pub const HDY_CENTERING_POLICY_STRICT: HdyCenteringPolicy = 1; pub type HdyColorScheme = c_int; pub const HDY_COLOR_SCHEME_DEFAULT: HdyColorScheme = 0; pub const HDY_COLOR_SCHEME_FORCE_LIGHT: HdyColorScheme = 1; pub const HDY_COLOR_SCHEME_PREFER_LIGHT: HdyColorScheme = 2; pub const HDY_COLOR_SCHEME_PREFER_DARK: HdyColorScheme = 3; pub const HDY_COLOR_SCHEME_FORCE_DARK: HdyColorScheme = 4; pub type HdyDeckTransitionType = c_int; 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 HdyFlapFoldPolicy = c_int; pub const HDY_FLAP_FOLD_POLICY_NEVER: HdyFlapFoldPolicy = 0; pub const HDY_FLAP_FOLD_POLICY_ALWAYS: HdyFlapFoldPolicy = 1; pub const HDY_FLAP_FOLD_POLICY_AUTO: HdyFlapFoldPolicy = 2; pub type HdyFlapTransitionType = c_int; pub const HDY_FLAP_TRANSITION_TYPE_OVER: HdyFlapTransitionType = 0; pub const HDY_FLAP_TRANSITION_TYPE_UNDER: HdyFlapTransitionType = 1; pub const HDY_FLAP_TRANSITION_TYPE_SLIDE: HdyFlapTransitionType = 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; pub const HDY_LEAFLET_TRANSITION_TYPE_SLIDE: HdyLeafletTransitionType = 2; pub type HdyNavigationDirection = c_int; pub const HDY_NAVIGATION_DIRECTION_BACK: HdyNavigationDirection = 0; pub const HDY_NAVIGATION_DIRECTION_FORWARD: HdyNavigationDirection = 1; pub type HdySqueezerTransitionType = c_int; pub const HDY_SQUEEZER_TRANSITION_TYPE_NONE: HdySqueezerTransitionType = 0; pub const HDY_SQUEEZER_TRANSITION_TYPE_CROSSFADE: HdySqueezerTransitionType = 1; pub type HdyViewSwitcherPolicy = c_int; pub const HDY_VIEW_SWITCHER_POLICY_AUTO: HdyViewSwitcherPolicy = 0; pub const HDY_VIEW_SWITCHER_POLICY_NARROW: HdyViewSwitcherPolicy = 1; pub const HDY_VIEW_SWITCHER_POLICY_WIDE: HdyViewSwitcherPolicy = 2; // Callbacks pub type HdyAvatarImageLoadFunc = Option *mut gdk_pixbuf::GdkPixbuf>; pub type HdyComboRowGetEnumValueNameFunc = Option *mut c_char>; pub type HdyComboRowGetNameFunc = Option *mut c_char>; // Records #[derive(Copy, Clone)] #[repr(C)] pub struct HdyActionRowClass { pub parent_class: gtk::GtkListBoxRowClass, pub activate: Option, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyActionRowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyActionRowClass @ {self:p}")) .field("parent_class", &self.parent_class) .field("activate", &self.activate) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyApplicationWindowClass { pub parent_class: gtk::GtkApplicationWindowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyApplicationWindowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyApplicationWindowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyAvatarClass { pub parent_class: gtk::GtkDrawingAreaClass, } impl ::std::fmt::Debug for HdyAvatarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyAvatarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyCarouselClass { pub parent_class: gtk::GtkEventBoxClass, } impl ::std::fmt::Debug for HdyCarouselClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarouselClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyCarouselIndicatorDotsClass { pub parent_class: gtk::GtkDrawingAreaClass, } impl ::std::fmt::Debug for HdyCarouselIndicatorDotsClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarouselIndicatorDotsClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyCarouselIndicatorLinesClass { pub parent_class: gtk::GtkDrawingAreaClass, } impl ::std::fmt::Debug for HdyCarouselIndicatorLinesClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarouselIndicatorLinesClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyClampClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyClampClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyClampClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyComboRowClass { pub parent_class: HdyActionRowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyComboRowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyComboRowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyDeckClass { pub parent_class: gtk::GtkContainerClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyDeckClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyDeckClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyEnumValueObjectClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdyEnumValueObjectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyEnumValueObjectClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyExpanderRowClass { pub parent_class: HdyPreferencesRowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyExpanderRowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyExpanderRowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyFlapClass { pub parent_class: gtk::GtkContainerClass, } impl ::std::fmt::Debug for HdyFlapClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyFlapClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyHeaderBarClass { pub parent_class: gtk::GtkContainerClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyHeaderBarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyHeaderBarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] 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:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyHeaderGroupClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdyHeaderGroupClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyHeaderGroupClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyKeypadClass { pub parent_class: gtk::GtkBinClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyKeypadClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyKeypadClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyLeafletClass { pub parent_class: gtk::GtkContainerClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyLeafletClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyLeafletClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesGroupClass { pub parent_class: gtk::GtkBinClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyPreferencesGroupClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesGroupClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesPageClass { pub parent_class: gtk::GtkBinClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyPreferencesPageClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesPageClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesRowClass { pub parent_class: gtk::GtkListBoxRowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyPreferencesRowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesRowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesWindowClass { pub parent_class: HdyWindowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyPreferencesWindowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesWindowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySearchBarClass { pub parent_class: gtk::GtkBinClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdySearchBarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySearchBarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySqueezerClass { pub parent_class: gtk::GtkContainerClass, } impl ::std::fmt::Debug for HdySqueezerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySqueezerClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyStatusPageClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyStatusPageClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyStatusPageClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyStyleManagerClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdyStyleManagerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyStyleManagerClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySwipeGroupClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdySwipeGroupClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySwipeGroupClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySwipeTrackerClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdySwipeTrackerClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySwipeTrackerClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySwipeableInterface { pub parent: gobject::GTypeInterface, pub switch_child: Option, pub get_swipe_tracker: Option *mut HdySwipeTracker>, pub get_distance: Option c_double>, pub get_snap_points: Option *mut c_double>, pub get_progress: Option c_double>, pub get_cancel_progress: Option c_double>, pub get_swipe_area: Option< unsafe extern "C" fn( *mut HdySwipeable, HdyNavigationDirection, gboolean, *mut gdk::GdkRectangle, ), >, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdySwipeableInterface { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySwipeableInterface @ {self:p}")) .field("parent", &self.parent) .field("switch_child", &self.switch_child) .field("get_swipe_tracker", &self.get_swipe_tracker) .field("get_distance", &self.get_distance) .field("get_snap_points", &self.get_snap_points) .field("get_progress", &self.get_progress) .field("get_cancel_progress", &self.get_cancel_progress) .field("get_swipe_area", &self.get_swipe_area) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyTabBarClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyTabBarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabBarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyTabPageClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdyTabPageClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabPageClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyTabViewClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyTabViewClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabViewClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyTitleBarClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyTitleBarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTitleBarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyValueObjectClass { pub parent_class: gobject::GObjectClass, } impl ::std::fmt::Debug for HdyValueObjectClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyValueObjectClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyViewSwitcherBarClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyViewSwitcherBarClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcherBarClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyViewSwitcherClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyViewSwitcherClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcherClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyViewSwitcherTitleClass { pub parent_class: gtk::GtkBinClass, } impl ::std::fmt::Debug for HdyViewSwitcherTitleClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcherTitleClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyWindowClass { pub parent_class: gtk::GtkWindowClass, pub padding: [gpointer; 4], } impl ::std::fmt::Debug for HdyWindowClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyWindowClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyWindowHandleClass { pub parent_class: gtk::GtkEventBoxClass, } impl ::std::fmt::Debug for HdyWindowHandleClass { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyWindowHandleClass @ {self:p}")) .field("parent_class", &self.parent_class) .finish() } } // Classes #[derive(Copy, Clone)] #[repr(C)] pub struct HdyActionRow { pub parent_instance: HdyPreferencesRow, } impl ::std::fmt::Debug for HdyActionRow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyActionRow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyApplicationWindow { pub parent_instance: gtk::GtkApplicationWindow, } impl ::std::fmt::Debug for HdyApplicationWindow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyApplicationWindow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdyAvatar { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyAvatar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyAvatar @ {self:p}")).finish() } } #[repr(C)] pub struct HdyCarousel { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyCarousel { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarousel @ {self:p}")).finish() } } #[repr(C)] pub struct HdyCarouselIndicatorDots { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyCarouselIndicatorDots { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarouselIndicatorDots @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyCarouselIndicatorLines { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyCarouselIndicatorLines { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyCarouselIndicatorLines @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyClamp { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyClamp { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyClamp @ {self:p}")).finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyComboRow { pub parent_instance: HdyActionRow, } impl ::std::fmt::Debug for HdyComboRow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyComboRow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyDeck { pub parent_instance: gtk::GtkContainer, } impl ::std::fmt::Debug for HdyDeck { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyDeck @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdyEnumValueObject { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyEnumValueObject { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyEnumValueObject @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyExpanderRow { pub parent_instance: HdyPreferencesRow, } impl ::std::fmt::Debug for HdyExpanderRow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyExpanderRow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdyFlap { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyFlap { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyFlap @ {self:p}")).finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyHeaderBar { pub parent_instance: gtk::GtkContainer, } impl ::std::fmt::Debug for HdyHeaderBar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyHeaderBar @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdyHeaderGroup { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyHeaderGroup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyHeaderGroup @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyHeaderGroupChild { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyHeaderGroupChild { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyHeaderGroupChild @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyKeypad { pub parent_instance: gtk::GtkBin, } impl ::std::fmt::Debug for HdyKeypad { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyKeypad @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyLeaflet { pub parent_instance: gtk::GtkContainer, } impl ::std::fmt::Debug for HdyLeaflet { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyLeaflet @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesGroup { pub parent_instance: gtk::GtkBin, } impl ::std::fmt::Debug for HdyPreferencesGroup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesGroup @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesPage { pub parent_instance: gtk::GtkBin, } impl ::std::fmt::Debug for HdyPreferencesPage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesPage @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesRow { pub parent_instance: gtk::GtkListBoxRow, } impl ::std::fmt::Debug for HdyPreferencesRow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesRow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyPreferencesWindow { pub parent_instance: HdyWindow, } impl ::std::fmt::Debug for HdyPreferencesWindow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyPreferencesWindow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdySearchBar { pub parent_instance: gtk::GtkBin, } impl ::std::fmt::Debug for HdySearchBar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySearchBar @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdySqueezer { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdySqueezer { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySqueezer @ {self:p}")).finish() } } #[repr(C)] pub struct HdyStatusPage { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyStatusPage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyStatusPage @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyStyleManager { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyStyleManager { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyStyleManager @ {self:p}")) .finish() } } #[repr(C)] pub struct HdySwipeGroup { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdySwipeGroup { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySwipeGroup @ {self:p}")) .finish() } } #[repr(C)] pub struct HdySwipeTracker { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdySwipeTracker { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdySwipeTracker @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyTabBar { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyTabBar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabBar @ {self:p}")).finish() } } #[repr(C)] pub struct HdyTabPage { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyTabPage { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabPage @ {self:p}")).finish() } } #[repr(C)] pub struct HdyTabView { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyTabView { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTabView @ {self:p}")).finish() } } #[repr(C)] pub struct HdyTitleBar { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyTitleBar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyTitleBar @ {self:p}")).finish() } } #[repr(C)] pub struct HdyValueObject { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyValueObject { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyValueObject @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyViewSwitcher { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyViewSwitcher { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcher @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyViewSwitcherBar { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyViewSwitcherBar { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcherBar @ {self:p}")) .finish() } } #[repr(C)] pub struct HdyViewSwitcherTitle { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyViewSwitcherTitle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyViewSwitcherTitle @ {self:p}")) .finish() } } #[derive(Copy, Clone)] #[repr(C)] pub struct HdyWindow { pub parent_instance: gtk::GtkWindow, } impl ::std::fmt::Debug for HdyWindow { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyWindow @ {self:p}")) .field("parent_instance", &self.parent_instance) .finish() } } #[repr(C)] pub struct HdyWindowHandle { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdyWindowHandle { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { f.debug_struct(&format!("HdyWindowHandle @ {self:p}")) .finish() } } // Interfaces #[repr(C)] pub struct HdySwipeable { _data: [u8; 0], _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, } impl ::std::fmt::Debug for HdySwipeable { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "HdySwipeable @ {self:p}") } } #[link(name = "handy-1")] extern "C" { //========================================================================= // HdyCenteringPolicy //========================================================================= pub fn hdy_centering_policy_get_type() -> GType; //========================================================================= // HdyColorScheme //========================================================================= #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_color_scheme_get_type() -> GType; //========================================================================= // HdyDeckTransitionType //========================================================================= pub fn hdy_deck_transition_type_get_type() -> GType; //========================================================================= // HdyFlapFoldPolicy //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_fold_policy_get_type() -> GType; //========================================================================= // HdyFlapTransitionType //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_transition_type_get_type() -> GType; //========================================================================= // HdyHeaderGroupChildType //========================================================================= pub fn hdy_header_group_child_type_get_type() -> GType; //========================================================================= // HdyLeafletTransitionType //========================================================================= pub fn hdy_leaflet_transition_type_get_type() -> GType; //========================================================================= // HdyNavigationDirection //========================================================================= pub fn hdy_navigation_direction_get_type() -> GType; //========================================================================= // HdySqueezerTransitionType //========================================================================= pub fn hdy_squeezer_transition_type_get_type() -> GType; //========================================================================= // HdyViewSwitcherPolicy //========================================================================= pub fn hdy_view_switcher_policy_get_type() -> GType; //========================================================================= // HdyActionRow //========================================================================= pub fn hdy_action_row_get_type() -> GType; pub fn hdy_action_row_new() -> *mut gtk::GtkWidget; pub fn hdy_action_row_activate(self_: *mut HdyActionRow); pub fn hdy_action_row_add_prefix(self_: *mut HdyActionRow, widget: *mut gtk::GtkWidget); pub fn hdy_action_row_get_activatable_widget(self_: *mut HdyActionRow) -> *mut gtk::GtkWidget; pub fn hdy_action_row_get_icon_name(self_: *mut HdyActionRow) -> *const c_char; pub fn hdy_action_row_get_subtitle(self_: *mut HdyActionRow) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_action_row_get_subtitle_lines(self_: *mut HdyActionRow) -> c_int; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_action_row_get_title_lines(self_: *mut HdyActionRow) -> c_int; pub fn hdy_action_row_get_use_underline(self_: *mut HdyActionRow) -> gboolean; pub fn hdy_action_row_set_activatable_widget( self_: *mut HdyActionRow, widget: *mut gtk::GtkWidget, ); pub fn hdy_action_row_set_icon_name(self_: *mut HdyActionRow, icon_name: *const c_char); pub fn hdy_action_row_set_subtitle(self_: *mut HdyActionRow, subtitle: *const c_char); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_action_row_set_subtitle_lines(self_: *mut HdyActionRow, subtitle_lines: c_int); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_action_row_set_title_lines(self_: *mut HdyActionRow, title_lines: c_int); pub fn hdy_action_row_set_use_underline(self_: *mut HdyActionRow, use_underline: gboolean); //========================================================================= // HdyApplicationWindow //========================================================================= pub fn hdy_application_window_get_type() -> GType; pub fn hdy_application_window_new() -> *mut gtk::GtkWidget; //========================================================================= // HdyAvatar //========================================================================= pub fn hdy_avatar_get_type() -> GType; pub fn hdy_avatar_new( size: c_int, text: *const c_char, show_initials: gboolean, ) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_avatar_draw_to_pixbuf( self_: *mut HdyAvatar, size: c_int, scale_factor: c_int, ) -> *mut gdk_pixbuf::GdkPixbuf; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_avatar_draw_to_pixbuf_async( self_: *mut HdyAvatar, size: c_int, scale_factor: c_int, cancellable: *mut gio::GCancellable, callback: gio::GAsyncReadyCallback, user_data: gpointer, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_avatar_draw_to_pixbuf_finish( self_: *mut HdyAvatar, async_result: *mut gio::GAsyncResult, ) -> *mut gdk_pixbuf::GdkPixbuf; pub fn hdy_avatar_get_icon_name(self_: *mut HdyAvatar) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_avatar_get_loadable_icon(self_: *mut HdyAvatar) -> *mut gio::GLoadableIcon; pub fn hdy_avatar_get_show_initials(self_: *mut HdyAvatar) -> gboolean; pub fn hdy_avatar_get_size(self_: *mut HdyAvatar) -> c_int; pub fn hdy_avatar_get_text(self_: *mut HdyAvatar) -> *const c_char; pub fn hdy_avatar_set_icon_name(self_: *mut HdyAvatar, icon_name: *const c_char); pub fn hdy_avatar_set_image_load_func( self_: *mut HdyAvatar, load_image: HdyAvatarImageLoadFunc, user_data: gpointer, destroy: glib::GDestroyNotify, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_avatar_set_loadable_icon(self_: *mut HdyAvatar, icon: *mut gio::GLoadableIcon); pub fn hdy_avatar_set_show_initials(self_: *mut HdyAvatar, show_initials: gboolean); pub fn hdy_avatar_set_size(self_: *mut HdyAvatar, size: c_int); pub fn hdy_avatar_set_text(self_: *mut HdyAvatar, text: *const c_char); //========================================================================= // HdyCarousel //========================================================================= pub fn hdy_carousel_get_type() -> GType; pub fn hdy_carousel_new() -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_carousel_get_allow_long_swipes(self_: *mut HdyCarousel) -> gboolean; pub fn hdy_carousel_get_allow_mouse_drag(self_: *mut HdyCarousel) -> gboolean; #[cfg(feature = "v1_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))] pub fn hdy_carousel_get_allow_scroll_wheel(self_: *mut HdyCarousel) -> gboolean; pub fn hdy_carousel_get_animation_duration(self_: *mut HdyCarousel) -> c_uint; pub fn hdy_carousel_get_interactive(self_: *mut HdyCarousel) -> gboolean; pub fn hdy_carousel_get_n_pages(self_: *mut HdyCarousel) -> c_uint; pub fn hdy_carousel_get_position(self_: *mut HdyCarousel) -> c_double; pub fn hdy_carousel_get_reveal_duration(self_: *mut HdyCarousel) -> c_uint; pub fn hdy_carousel_get_spacing(self_: *mut HdyCarousel) -> c_uint; pub fn hdy_carousel_insert( self_: *mut HdyCarousel, child: *mut gtk::GtkWidget, position: c_int, ); pub fn hdy_carousel_prepend(self_: *mut HdyCarousel, child: *mut gtk::GtkWidget); pub fn hdy_carousel_reorder( self_: *mut HdyCarousel, child: *mut gtk::GtkWidget, position: c_int, ); pub fn hdy_carousel_scroll_to(self_: *mut HdyCarousel, widget: *mut gtk::GtkWidget); pub fn hdy_carousel_scroll_to_full( self_: *mut HdyCarousel, widget: *mut gtk::GtkWidget, duration: i64, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_carousel_set_allow_long_swipes(self_: *mut HdyCarousel, allow_long_swipes: gboolean); pub fn hdy_carousel_set_allow_mouse_drag(self_: *mut HdyCarousel, allow_mouse_drag: gboolean); #[cfg(feature = "v1_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))] pub fn hdy_carousel_set_allow_scroll_wheel( self_: *mut HdyCarousel, allow_scroll_wheel: gboolean, ); pub fn hdy_carousel_set_animation_duration(self_: *mut HdyCarousel, duration: c_uint); pub fn hdy_carousel_set_interactive(self_: *mut HdyCarousel, interactive: gboolean); pub fn hdy_carousel_set_reveal_duration(self_: *mut HdyCarousel, reveal_duration: c_uint); pub fn hdy_carousel_set_spacing(self_: *mut HdyCarousel, spacing: c_uint); //========================================================================= // HdyCarouselIndicatorDots //========================================================================= pub fn hdy_carousel_indicator_dots_get_type() -> GType; pub fn hdy_carousel_indicator_dots_new() -> *mut gtk::GtkWidget; pub fn hdy_carousel_indicator_dots_get_carousel( self_: *mut HdyCarouselIndicatorDots, ) -> *mut HdyCarousel; pub fn hdy_carousel_indicator_dots_set_carousel( self_: *mut HdyCarouselIndicatorDots, carousel: *mut HdyCarousel, ); //========================================================================= // HdyCarouselIndicatorLines //========================================================================= pub fn hdy_carousel_indicator_lines_get_type() -> GType; pub fn hdy_carousel_indicator_lines_new() -> *mut gtk::GtkWidget; pub fn hdy_carousel_indicator_lines_get_carousel( self_: *mut HdyCarouselIndicatorLines, ) -> *mut HdyCarousel; pub fn hdy_carousel_indicator_lines_set_carousel( self_: *mut HdyCarouselIndicatorLines, carousel: *mut HdyCarousel, ); //========================================================================= // HdyClamp //========================================================================= pub fn hdy_clamp_get_type() -> GType; pub fn hdy_clamp_new() -> *mut gtk::GtkWidget; pub fn hdy_clamp_get_maximum_size(self_: *mut HdyClamp) -> c_int; pub fn hdy_clamp_get_tightening_threshold(self_: *mut HdyClamp) -> c_int; pub fn hdy_clamp_set_maximum_size(self_: *mut HdyClamp, maximum_size: c_int); pub fn hdy_clamp_set_tightening_threshold(self_: *mut HdyClamp, tightening_threshold: c_int); //========================================================================= // HdyComboRow //========================================================================= pub fn hdy_combo_row_get_type() -> GType; pub fn hdy_combo_row_new() -> *mut gtk::GtkWidget; pub fn hdy_combo_row_bind_model( self_: *mut HdyComboRow, model: *mut gio::GListModel, create_list_widget_func: gtk::GtkListBoxCreateWidgetFunc, create_current_widget_func: gtk::GtkListBoxCreateWidgetFunc, user_data: gpointer, user_data_free_func: glib::GDestroyNotify, ); pub fn hdy_combo_row_bind_name_model( self_: *mut HdyComboRow, model: *mut gio::GListModel, get_name_func: HdyComboRowGetNameFunc, user_data: gpointer, user_data_free_func: glib::GDestroyNotify, ); pub fn hdy_combo_row_get_model(self_: *mut HdyComboRow) -> *mut gio::GListModel; pub fn hdy_combo_row_get_selected_index(self_: *mut HdyComboRow) -> c_int; pub fn hdy_combo_row_get_use_subtitle(self_: *mut HdyComboRow) -> gboolean; pub fn hdy_combo_row_set_for_enum( self_: *mut HdyComboRow, enum_type: GType, get_name_func: HdyComboRowGetEnumValueNameFunc, user_data: gpointer, user_data_free_func: glib::GDestroyNotify, ); pub fn hdy_combo_row_set_get_name_func( self_: *mut HdyComboRow, get_name_func: HdyComboRowGetNameFunc, user_data: gpointer, user_data_free_func: glib::GDestroyNotify, ); pub fn hdy_combo_row_set_selected_index(self_: *mut HdyComboRow, selected_index: c_int); pub fn hdy_combo_row_set_use_subtitle(self_: *mut HdyComboRow, use_subtitle: gboolean); //========================================================================= // HdyDeck //========================================================================= pub fn hdy_deck_get_type() -> GType; pub fn hdy_deck_new() -> *mut gtk::GtkWidget; pub fn hdy_deck_get_adjacent_child( self_: *mut HdyDeck, direction: HdyNavigationDirection, ) -> *mut gtk::GtkWidget; pub fn hdy_deck_get_can_swipe_back(self_: *mut HdyDeck) -> gboolean; pub fn hdy_deck_get_can_swipe_forward(self_: *mut HdyDeck) -> gboolean; pub fn hdy_deck_get_child_by_name( self_: *mut HdyDeck, name: *const c_char, ) -> *mut gtk::GtkWidget; pub fn hdy_deck_get_homogeneous( self_: *mut HdyDeck, orientation: gtk::GtkOrientation, ) -> gboolean; pub fn hdy_deck_get_interpolate_size(self_: *mut HdyDeck) -> gboolean; pub fn hdy_deck_get_transition_duration(self_: *mut HdyDeck) -> c_uint; pub fn hdy_deck_get_transition_running(self_: *mut HdyDeck) -> gboolean; pub fn hdy_deck_get_transition_type(self_: *mut HdyDeck) -> HdyDeckTransitionType; pub fn hdy_deck_get_visible_child(self_: *mut HdyDeck) -> *mut gtk::GtkWidget; pub fn hdy_deck_get_visible_child_name(self_: *mut HdyDeck) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_deck_insert_child_after( self_: *mut HdyDeck, child: *mut gtk::GtkWidget, sibling: *mut gtk::GtkWidget, ); pub fn hdy_deck_navigate(self_: *mut HdyDeck, direction: HdyNavigationDirection) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_deck_prepend(self_: *mut HdyDeck, child: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_deck_reorder_child_after( self_: *mut HdyDeck, child: *mut gtk::GtkWidget, sibling: *mut gtk::GtkWidget, ); pub fn hdy_deck_set_can_swipe_back(self_: *mut HdyDeck, can_swipe_back: gboolean); pub fn hdy_deck_set_can_swipe_forward(self_: *mut HdyDeck, can_swipe_forward: gboolean); pub fn hdy_deck_set_homogeneous( self_: *mut HdyDeck, orientation: gtk::GtkOrientation, homogeneous: gboolean, ); pub fn hdy_deck_set_interpolate_size(self_: *mut HdyDeck, interpolate_size: gboolean); pub fn hdy_deck_set_transition_duration(self_: *mut HdyDeck, duration: c_uint); pub fn hdy_deck_set_transition_type(self_: *mut HdyDeck, transition: HdyDeckTransitionType); pub fn hdy_deck_set_visible_child(self_: *mut HdyDeck, visible_child: *mut gtk::GtkWidget); pub fn hdy_deck_set_visible_child_name(self_: *mut HdyDeck, name: *const c_char); //========================================================================= // HdyEnumValueObject //========================================================================= pub fn hdy_enum_value_object_get_type() -> GType; pub fn hdy_enum_value_object_new( enum_value: *mut gobject::GEnumValue, ) -> *mut HdyEnumValueObject; pub fn hdy_enum_value_object_get_name(self_: *mut HdyEnumValueObject) -> *const c_char; pub fn hdy_enum_value_object_get_nick(self_: *mut HdyEnumValueObject) -> *const c_char; pub fn hdy_enum_value_object_get_value(self_: *mut HdyEnumValueObject) -> c_int; //========================================================================= // HdyExpanderRow //========================================================================= pub fn hdy_expander_row_get_type() -> GType; pub fn hdy_expander_row_new() -> *mut gtk::GtkWidget; pub fn hdy_expander_row_add_action(self_: *mut HdyExpanderRow, widget: *mut gtk::GtkWidget); 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; 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; pub fn hdy_expander_row_get_subtitle(self_: *mut HdyExpanderRow) -> *const c_char; 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); 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, ); pub fn hdy_expander_row_set_subtitle(self_: *mut HdyExpanderRow, subtitle: *const c_char); pub fn hdy_expander_row_set_use_underline(self_: *mut HdyExpanderRow, use_underline: gboolean); //========================================================================= // HdyFlap //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_type() -> GType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_new() -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_content(self_: *mut HdyFlap) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_flap(self_: *mut HdyFlap) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_flap_position(self_: *mut HdyFlap) -> gtk::GtkPackType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_fold_duration(self_: *mut HdyFlap) -> c_uint; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_fold_policy(self_: *mut HdyFlap) -> HdyFlapFoldPolicy; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_folded(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_locked(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_modal(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_reveal_duration(self_: *mut HdyFlap) -> c_uint; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_reveal_flap(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_reveal_progress(self_: *mut HdyFlap) -> c_double; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_separator(self_: *mut HdyFlap) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_swipe_to_close(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_swipe_to_open(self_: *mut HdyFlap) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_get_transition_type(self_: *mut HdyFlap) -> HdyFlapTransitionType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_content(self_: *mut HdyFlap, content: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_flap(self_: *mut HdyFlap, flap: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_flap_position(self_: *mut HdyFlap, position: gtk::GtkPackType); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_fold_duration(self_: *mut HdyFlap, duration: c_uint); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_fold_policy(self_: *mut HdyFlap, policy: HdyFlapFoldPolicy); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_locked(self_: *mut HdyFlap, locked: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_modal(self_: *mut HdyFlap, modal: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_reveal_duration(self_: *mut HdyFlap, duration: c_uint); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_reveal_flap(self_: *mut HdyFlap, reveal_flap: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_separator(self_: *mut HdyFlap, separator: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_swipe_to_close(self_: *mut HdyFlap, swipe_to_close: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_swipe_to_open(self_: *mut HdyFlap, swipe_to_open: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_flap_set_transition_type( self_: *mut HdyFlap, transition_type: HdyFlapTransitionType, ); //========================================================================= // HdyHeaderBar //========================================================================= pub fn hdy_header_bar_get_type() -> GType; pub fn hdy_header_bar_new() -> *mut gtk::GtkWidget; pub fn hdy_header_bar_get_centering_policy(self_: *mut HdyHeaderBar) -> HdyCenteringPolicy; pub fn hdy_header_bar_get_custom_title(self_: *mut HdyHeaderBar) -> *mut gtk::GtkWidget; pub fn hdy_header_bar_get_decoration_layout(self_: *mut HdyHeaderBar) -> *const c_char; pub fn hdy_header_bar_get_has_subtitle(self_: *mut HdyHeaderBar) -> gboolean; pub fn hdy_header_bar_get_interpolate_size(self_: *mut HdyHeaderBar) -> gboolean; pub fn hdy_header_bar_get_show_close_button(self_: *mut HdyHeaderBar) -> gboolean; pub fn hdy_header_bar_get_subtitle(self_: *mut HdyHeaderBar) -> *const c_char; pub fn hdy_header_bar_get_title(self_: *mut HdyHeaderBar) -> *const c_char; pub fn hdy_header_bar_get_transition_duration(self_: *mut HdyHeaderBar) -> c_uint; pub fn hdy_header_bar_get_transition_running(self_: *mut HdyHeaderBar) -> gboolean; pub fn hdy_header_bar_pack_end(self_: *mut HdyHeaderBar, child: *mut gtk::GtkWidget); pub fn hdy_header_bar_pack_start(self_: *mut HdyHeaderBar, child: *mut gtk::GtkWidget); pub fn hdy_header_bar_set_centering_policy( self_: *mut HdyHeaderBar, centering_policy: HdyCenteringPolicy, ); pub fn hdy_header_bar_set_custom_title( self_: *mut HdyHeaderBar, title_widget: *mut gtk::GtkWidget, ); pub fn hdy_header_bar_set_decoration_layout(self_: *mut HdyHeaderBar, layout: *const c_char); pub fn hdy_header_bar_set_has_subtitle(self_: *mut HdyHeaderBar, setting: gboolean); pub fn hdy_header_bar_set_interpolate_size( self_: *mut HdyHeaderBar, interpolate_size: gboolean, ); pub fn hdy_header_bar_set_show_close_button(self_: *mut HdyHeaderBar, setting: gboolean); pub fn hdy_header_bar_set_subtitle(self_: *mut HdyHeaderBar, subtitle: *const c_char); pub fn hdy_header_bar_set_title(self_: *mut HdyHeaderBar, title: *const c_char); pub fn hdy_header_bar_set_transition_duration(self_: *mut HdyHeaderBar, duration: c_uint); //========================================================================= // HdyHeaderGroup //========================================================================= 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_remove_header_bar( self_: *mut HdyHeaderGroup, header_bar: *mut HdyHeaderBar, ); pub fn hdy_header_group_remove_header_group( self_: *mut HdyHeaderGroup, 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 //========================================================================= pub fn hdy_keypad_get_type() -> GType; pub fn hdy_keypad_new( symbols_visible: gboolean, letters_visible: gboolean, ) -> *mut gtk::GtkWidget; pub fn hdy_keypad_get_column_spacing(self_: *mut HdyKeypad) -> c_uint; pub fn hdy_keypad_get_end_action(self_: *mut HdyKeypad) -> *mut gtk::GtkWidget; pub fn hdy_keypad_get_entry(self_: *mut HdyKeypad) -> *mut gtk::GtkEntry; pub fn hdy_keypad_get_letters_visible(self_: *mut HdyKeypad) -> gboolean; pub fn hdy_keypad_get_row_spacing(self_: *mut HdyKeypad) -> c_uint; pub fn hdy_keypad_get_start_action(self_: *mut HdyKeypad) -> *mut gtk::GtkWidget; pub fn hdy_keypad_get_symbols_visible(self_: *mut HdyKeypad) -> gboolean; pub fn hdy_keypad_set_column_spacing(self_: *mut HdyKeypad, spacing: c_uint); pub fn hdy_keypad_set_end_action(self_: *mut HdyKeypad, end_action: *mut gtk::GtkWidget); pub fn hdy_keypad_set_entry(self_: *mut HdyKeypad, entry: *mut gtk::GtkEntry); pub fn hdy_keypad_set_letters_visible(self_: *mut HdyKeypad, letters_visible: gboolean); pub fn hdy_keypad_set_row_spacing(self_: *mut HdyKeypad, spacing: c_uint); pub fn hdy_keypad_set_start_action(self_: *mut HdyKeypad, start_action: *mut gtk::GtkWidget); pub fn hdy_keypad_set_symbols_visible(self_: *mut HdyKeypad, symbols_visible: gboolean); //========================================================================= // HdyLeaflet //========================================================================= pub fn hdy_leaflet_get_type() -> GType; pub fn hdy_leaflet_new() -> *mut gtk::GtkWidget; pub fn hdy_leaflet_get_adjacent_child( self_: *mut HdyLeaflet, direction: HdyNavigationDirection, ) -> *mut gtk::GtkWidget; pub fn hdy_leaflet_get_can_swipe_back(self_: *mut HdyLeaflet) -> gboolean; pub fn hdy_leaflet_get_can_swipe_forward(self_: *mut HdyLeaflet) -> gboolean; pub fn hdy_leaflet_get_child_by_name( self_: *mut HdyLeaflet, name: *const c_char, ) -> *mut gtk::GtkWidget; pub fn hdy_leaflet_get_child_transition_duration(self_: *mut HdyLeaflet) -> c_uint; pub fn hdy_leaflet_get_child_transition_running(self_: *mut HdyLeaflet) -> gboolean; pub fn hdy_leaflet_get_folded(self_: *mut HdyLeaflet) -> gboolean; pub fn hdy_leaflet_get_homogeneous( self_: *mut HdyLeaflet, folded: gboolean, orientation: gtk::GtkOrientation, ) -> gboolean; pub fn hdy_leaflet_get_interpolate_size(self_: *mut HdyLeaflet) -> gboolean; pub fn hdy_leaflet_get_mode_transition_duration(self_: *mut HdyLeaflet) -> c_uint; 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(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_leaflet_insert_child_after( self_: *mut HdyLeaflet, child: *mut gtk::GtkWidget, sibling: *mut gtk::GtkWidget, ); pub fn hdy_leaflet_navigate( self_: *mut HdyLeaflet, direction: HdyNavigationDirection, ) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_leaflet_prepend(self_: *mut HdyLeaflet, child: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_leaflet_reorder_child_after( self_: *mut HdyLeaflet, child: *mut gtk::GtkWidget, sibling: *mut gtk::GtkWidget, ); pub fn hdy_leaflet_set_can_swipe_back(self_: *mut HdyLeaflet, can_swipe_back: gboolean); pub fn hdy_leaflet_set_can_swipe_forward(self_: *mut HdyLeaflet, can_swipe_forward: gboolean); pub fn hdy_leaflet_set_child_transition_duration(self_: *mut HdyLeaflet, duration: c_uint); pub fn hdy_leaflet_set_homogeneous( self_: *mut HdyLeaflet, folded: gboolean, orientation: gtk::GtkOrientation, homogeneous: gboolean, ); pub fn hdy_leaflet_set_interpolate_size(self_: *mut HdyLeaflet, interpolate_size: gboolean); pub fn hdy_leaflet_set_mode_transition_duration(self_: *mut HdyLeaflet, duration: c_uint); pub fn hdy_leaflet_set_transition_type( self_: *mut HdyLeaflet, transition: HdyLeafletTransitionType, ); pub fn hdy_leaflet_set_visible_child( self_: *mut HdyLeaflet, visible_child: *mut gtk::GtkWidget, ); pub fn hdy_leaflet_set_visible_child_name(self_: *mut HdyLeaflet, name: *const c_char); //========================================================================= // HdyPreferencesGroup //========================================================================= pub fn hdy_preferences_group_get_type() -> GType; pub fn hdy_preferences_group_new() -> *mut gtk::GtkWidget; pub fn hdy_preferences_group_get_description(self_: *mut HdyPreferencesGroup) -> *const c_char; pub fn hdy_preferences_group_get_title(self_: *mut HdyPreferencesGroup) -> *const c_char; #[cfg(feature = "v1_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))] pub fn hdy_preferences_group_get_use_markup(self_: *mut HdyPreferencesGroup) -> gboolean; pub fn hdy_preferences_group_set_description( self_: *mut HdyPreferencesGroup, description: *const c_char, ); pub fn hdy_preferences_group_set_title(self_: *mut HdyPreferencesGroup, title: *const c_char); #[cfg(feature = "v1_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))] pub fn hdy_preferences_group_set_use_markup( self_: *mut HdyPreferencesGroup, use_markup: gboolean, ); //========================================================================= // HdyPreferencesPage //========================================================================= pub fn hdy_preferences_page_get_type() -> GType; pub fn hdy_preferences_page_new() -> *mut gtk::GtkWidget; pub fn hdy_preferences_page_get_icon_name(self_: *mut HdyPreferencesPage) -> *const c_char; pub fn hdy_preferences_page_get_title(self_: *mut HdyPreferencesPage) -> *const c_char; pub fn hdy_preferences_page_set_icon_name( self_: *mut HdyPreferencesPage, icon_name: *const c_char, ); pub fn hdy_preferences_page_set_title(self_: *mut HdyPreferencesPage, title: *const c_char); //========================================================================= // HdyPreferencesRow //========================================================================= pub fn hdy_preferences_row_get_type() -> GType; pub fn hdy_preferences_row_new() -> *mut gtk::GtkWidget; pub fn hdy_preferences_row_get_title(self_: *mut HdyPreferencesRow) -> *const c_char; pub fn hdy_preferences_row_get_use_underline(self_: *mut HdyPreferencesRow) -> gboolean; pub fn hdy_preferences_row_set_title(self_: *mut HdyPreferencesRow, title: *const c_char); pub fn hdy_preferences_row_set_use_underline( self_: *mut HdyPreferencesRow, use_underline: gboolean, ); //========================================================================= // HdyPreferencesWindow //========================================================================= pub fn hdy_preferences_window_get_type() -> GType; pub fn hdy_preferences_window_new() -> *mut gtk::GtkWidget; pub fn hdy_preferences_window_close_subpage(self_: *mut HdyPreferencesWindow); pub fn hdy_preferences_window_get_can_swipe_back(self_: *mut HdyPreferencesWindow) -> gboolean; pub fn hdy_preferences_window_get_search_enabled(self_: *mut HdyPreferencesWindow) -> gboolean; pub fn hdy_preferences_window_present_subpage( self_: *mut HdyPreferencesWindow, subpage: *mut gtk::GtkWidget, ); pub fn hdy_preferences_window_set_can_swipe_back( self_: *mut HdyPreferencesWindow, can_swipe_back: gboolean, ); pub fn hdy_preferences_window_set_search_enabled( self_: *mut HdyPreferencesWindow, search_enabled: gboolean, ); //========================================================================= // HdySearchBar //========================================================================= pub fn hdy_search_bar_get_type() -> GType; pub fn hdy_search_bar_new() -> *mut gtk::GtkWidget; pub fn hdy_search_bar_connect_entry(self_: *mut HdySearchBar, entry: *mut gtk::GtkEntry); pub fn hdy_search_bar_get_search_mode(self_: *mut HdySearchBar) -> gboolean; pub fn hdy_search_bar_get_show_close_button(self_: *mut HdySearchBar) -> gboolean; pub fn hdy_search_bar_handle_event( self_: *mut HdySearchBar, event: *mut gdk::GdkEvent, ) -> gboolean; pub fn hdy_search_bar_set_search_mode(self_: *mut HdySearchBar, search_mode: gboolean); pub fn hdy_search_bar_set_show_close_button(self_: *mut HdySearchBar, visible: gboolean); //========================================================================= // HdySqueezer //========================================================================= pub fn hdy_squeezer_get_type() -> GType; pub fn hdy_squeezer_new() -> *mut gtk::GtkWidget; pub fn hdy_squeezer_get_child_enabled( self_: *mut HdySqueezer, child: *mut gtk::GtkWidget, ) -> gboolean; pub fn hdy_squeezer_get_homogeneous(self_: *mut HdySqueezer) -> gboolean; pub fn hdy_squeezer_get_interpolate_size(self_: *mut HdySqueezer) -> gboolean; pub fn hdy_squeezer_get_transition_duration(self_: *mut HdySqueezer) -> c_uint; pub fn hdy_squeezer_get_transition_running(self_: *mut HdySqueezer) -> gboolean; pub fn hdy_squeezer_get_transition_type(self_: *mut HdySqueezer) -> HdySqueezerTransitionType; pub fn hdy_squeezer_get_visible_child(self_: *mut HdySqueezer) -> *mut gtk::GtkWidget; pub fn hdy_squeezer_get_xalign(self_: *mut HdySqueezer) -> c_float; pub fn hdy_squeezer_get_yalign(self_: *mut HdySqueezer) -> c_float; pub fn hdy_squeezer_set_child_enabled( self_: *mut HdySqueezer, child: *mut gtk::GtkWidget, enabled: gboolean, ); pub fn hdy_squeezer_set_homogeneous(self_: *mut HdySqueezer, homogeneous: gboolean); pub fn hdy_squeezer_set_interpolate_size(self_: *mut HdySqueezer, interpolate_size: gboolean); pub fn hdy_squeezer_set_transition_duration(self_: *mut HdySqueezer, duration: c_uint); pub fn hdy_squeezer_set_transition_type( self_: *mut HdySqueezer, transition: HdySqueezerTransitionType, ); pub fn hdy_squeezer_set_xalign(self_: *mut HdySqueezer, xalign: c_float); pub fn hdy_squeezer_set_yalign(self_: *mut HdySqueezer, yalign: c_float); //========================================================================= // HdyStatusPage //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_get_type() -> GType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_new() -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_get_description(self_: *mut HdyStatusPage) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_get_icon_name(self_: *mut HdyStatusPage) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_get_title(self_: *mut HdyStatusPage) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_set_description(self_: *mut HdyStatusPage, description: *const c_char); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_set_icon_name(self_: *mut HdyStatusPage, icon_name: *const c_char); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_status_page_set_title(self_: *mut HdyStatusPage, title: *const c_char); //========================================================================= // HdyStyleManager //========================================================================= #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_type() -> GType; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_default() -> *mut HdyStyleManager; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_for_display(display: *mut gdk::GdkDisplay) -> *mut HdyStyleManager; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_color_scheme(self_: *mut HdyStyleManager) -> HdyColorScheme; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_dark(self_: *mut HdyStyleManager) -> gboolean; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_display(self_: *mut HdyStyleManager) -> *mut gdk::GdkDisplay; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_high_contrast(self_: *mut HdyStyleManager) -> gboolean; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_get_system_supports_color_schemes( self_: *mut HdyStyleManager, ) -> gboolean; #[cfg(feature = "v1_6")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_6")))] pub fn hdy_style_manager_set_color_scheme( self_: *mut HdyStyleManager, color_scheme: HdyColorScheme, ); //========================================================================= // HdySwipeGroup //========================================================================= pub fn hdy_swipe_group_get_type() -> GType; pub fn hdy_swipe_group_new() -> *mut HdySwipeGroup; pub fn hdy_swipe_group_add_swipeable(self_: *mut HdySwipeGroup, swipeable: *mut HdySwipeable); pub fn hdy_swipe_group_get_swipeables(self_: *mut HdySwipeGroup) -> *mut glib::GSList; pub fn hdy_swipe_group_remove_swipeable( self_: *mut HdySwipeGroup, swipeable: *mut HdySwipeable, ); //========================================================================= // HdySwipeTracker //========================================================================= pub fn hdy_swipe_tracker_get_type() -> GType; pub fn hdy_swipe_tracker_new(swipeable: *mut HdySwipeable) -> *mut HdySwipeTracker; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_swipe_tracker_get_allow_long_swipes(self_: *mut HdySwipeTracker) -> gboolean; pub fn hdy_swipe_tracker_get_allow_mouse_drag(self_: *mut HdySwipeTracker) -> gboolean; pub fn hdy_swipe_tracker_get_enabled(self_: *mut HdySwipeTracker) -> gboolean; pub fn hdy_swipe_tracker_get_reversed(self_: *mut HdySwipeTracker) -> gboolean; pub fn hdy_swipe_tracker_get_swipeable(self_: *mut HdySwipeTracker) -> *mut HdySwipeable; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_swipe_tracker_set_allow_long_swipes( self_: *mut HdySwipeTracker, allow_long_swipes: gboolean, ); pub fn hdy_swipe_tracker_set_allow_mouse_drag( self_: *mut HdySwipeTracker, allow_mouse_drag: gboolean, ); pub fn hdy_swipe_tracker_set_enabled(self_: *mut HdySwipeTracker, enabled: gboolean); pub fn hdy_swipe_tracker_set_reversed(self_: *mut HdySwipeTracker, reversed: gboolean); pub fn hdy_swipe_tracker_shift_position(self_: *mut HdySwipeTracker, delta: c_double); //========================================================================= // HdyTabBar //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_type() -> GType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_new() -> *mut HdyTabBar; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_autohide(self_: *mut HdyTabBar) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_end_action_widget(self_: *mut HdyTabBar) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_expand_tabs(self_: *mut HdyTabBar) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_extra_drag_dest_targets( self_: *mut HdyTabBar, ) -> *mut gtk::GtkTargetList; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_inverted(self_: *mut HdyTabBar) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_is_overflowing(self_: *mut HdyTabBar) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_start_action_widget(self_: *mut HdyTabBar) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_tabs_revealed(self_: *mut HdyTabBar) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_get_view(self_: *mut HdyTabBar) -> *mut HdyTabView; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_autohide(self_: *mut HdyTabBar, autohide: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_end_action_widget(self_: *mut HdyTabBar, widget: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_expand_tabs(self_: *mut HdyTabBar, expand_tabs: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_extra_drag_dest_targets( self_: *mut HdyTabBar, extra_drag_dest_targets: *mut gtk::GtkTargetList, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_inverted(self_: *mut HdyTabBar, inverted: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_start_action_widget(self_: *mut HdyTabBar, widget: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_bar_set_view(self_: *mut HdyTabBar, view: *mut HdyTabView); //========================================================================= // HdyTabPage //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_type() -> GType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_child(self_: *mut HdyTabPage) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_icon(self_: *mut HdyTabPage) -> *mut gio::GIcon; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_indicator_activatable(self_: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_indicator_icon(self_: *mut HdyTabPage) -> *mut gio::GIcon; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_loading(self_: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_needs_attention(self_: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_parent(self_: *mut HdyTabPage) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_pinned(self_: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_selected(self_: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_title(self_: *mut HdyTabPage) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_get_tooltip(self_: *mut HdyTabPage) -> *const c_char; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_icon(self_: *mut HdyTabPage, icon: *mut gio::GIcon); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_indicator_activatable(self_: *mut HdyTabPage, activatable: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_indicator_icon(self_: *mut HdyTabPage, indicator_icon: *mut gio::GIcon); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_loading(self_: *mut HdyTabPage, loading: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_needs_attention(self_: *mut HdyTabPage, needs_attention: gboolean); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_title(self_: *mut HdyTabPage, title: *const c_char); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_page_set_tooltip(self_: *mut HdyTabPage, tooltip: *const c_char); //========================================================================= // HdyTabView //========================================================================= #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_type() -> GType; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_new() -> *mut HdyTabView; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_add_page( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, parent: *mut HdyTabPage, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_append( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_append_pinned( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_close_other_pages(self_: *mut HdyTabView, page: *mut HdyTabPage); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_close_page(self_: *mut HdyTabView, page: *mut HdyTabPage); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_close_page_finish( self_: *mut HdyTabView, page: *mut HdyTabPage, confirm: gboolean, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_close_pages_after(self_: *mut HdyTabView, page: *mut HdyTabPage); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_close_pages_before(self_: *mut HdyTabView, page: *mut HdyTabPage); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_default_icon(self_: *mut HdyTabView) -> *mut gio::GIcon; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_is_transferring_page(self_: *mut HdyTabView) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_menu_model(self_: *mut HdyTabView) -> *mut gio::GMenuModel; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_n_pages(self_: *mut HdyTabView) -> c_int; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_n_pinned_pages(self_: *mut HdyTabView) -> c_int; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_nth_page(self_: *mut HdyTabView, position: c_int) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_page( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_page_position(self_: *mut HdyTabView, page: *mut HdyTabPage) -> c_int; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_pages(self_: *mut HdyTabView) -> *mut gio::GListModel; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_selected_page(self_: *mut HdyTabView) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_get_shortcut_widget(self_: *mut HdyTabView) -> *mut gtk::GtkWidget; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_insert( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, position: c_int, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_insert_pinned( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, position: c_int, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_prepend( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_prepend_pinned( self_: *mut HdyTabView, child: *mut gtk::GtkWidget, ) -> *mut HdyTabPage; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_reorder_backward(self_: *mut HdyTabView, page: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_reorder_first(self_: *mut HdyTabView, page: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_reorder_forward(self_: *mut HdyTabView, page: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_reorder_last(self_: *mut HdyTabView, page: *mut HdyTabPage) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_reorder_page( self_: *mut HdyTabView, page: *mut HdyTabPage, position: c_int, ) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_select_next_page(self_: *mut HdyTabView) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_select_previous_page(self_: *mut HdyTabView) -> gboolean; #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_set_default_icon(self_: *mut HdyTabView, default_icon: *mut gio::GIcon); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_set_menu_model(self_: *mut HdyTabView, menu_model: *mut gio::GMenuModel); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_set_page_pinned( self_: *mut HdyTabView, page: *mut HdyTabPage, pinned: gboolean, ); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_set_selected_page(self_: *mut HdyTabView, selected_page: *mut HdyTabPage); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_set_shortcut_widget(self_: *mut HdyTabView, widget: *mut gtk::GtkWidget); #[cfg(feature = "v1_2")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))] pub fn hdy_tab_view_transfer_page( self_: *mut HdyTabView, page: *mut HdyTabPage, other_view: *mut HdyTabView, position: c_int, ); //========================================================================= // HdyTitleBar //========================================================================= pub fn hdy_title_bar_get_type() -> GType; pub fn hdy_title_bar_new() -> *mut gtk::GtkWidget; pub fn hdy_title_bar_get_selection_mode(self_: *mut HdyTitleBar) -> gboolean; pub fn hdy_title_bar_set_selection_mode(self_: *mut HdyTitleBar, selection_mode: gboolean); //========================================================================= // HdyValueObject //========================================================================= pub fn hdy_value_object_get_type() -> GType; pub fn hdy_value_object_new(value: *const gobject::GValue) -> *mut HdyValueObject; pub fn hdy_value_object_new_collect(type_: GType, ...) -> *mut HdyValueObject; pub fn hdy_value_object_new_string(string: *const c_char) -> *mut HdyValueObject; pub fn hdy_value_object_new_take_string(string: *mut c_char) -> *mut HdyValueObject; pub fn hdy_value_object_copy_value(value: *mut HdyValueObject, dest: *mut gobject::GValue); pub fn hdy_value_object_dup_string(value: *mut HdyValueObject) -> *mut c_char; pub fn hdy_value_object_get_string(value: *mut HdyValueObject) -> *const c_char; pub fn hdy_value_object_get_value(value: *mut HdyValueObject) -> *const gobject::GValue; //========================================================================= // HdyViewSwitcher //========================================================================= pub fn hdy_view_switcher_get_type() -> GType; pub fn hdy_view_switcher_new() -> *mut gtk::GtkWidget; pub fn hdy_view_switcher_get_narrow_ellipsize( self_: *mut HdyViewSwitcher, ) -> pango::PangoEllipsizeMode; pub fn hdy_view_switcher_get_policy(self_: *mut HdyViewSwitcher) -> HdyViewSwitcherPolicy; pub fn hdy_view_switcher_get_stack(self_: *mut HdyViewSwitcher) -> *mut gtk::GtkStack; pub fn hdy_view_switcher_set_narrow_ellipsize( self_: *mut HdyViewSwitcher, mode: pango::PangoEllipsizeMode, ); pub fn hdy_view_switcher_set_policy(self_: *mut HdyViewSwitcher, policy: HdyViewSwitcherPolicy); pub fn hdy_view_switcher_set_stack(self_: *mut HdyViewSwitcher, stack: *mut gtk::GtkStack); //========================================================================= // HdyViewSwitcherBar //========================================================================= pub fn hdy_view_switcher_bar_get_type() -> GType; pub fn hdy_view_switcher_bar_new() -> *mut gtk::GtkWidget; pub fn hdy_view_switcher_bar_get_policy( self_: *mut HdyViewSwitcherBar, ) -> HdyViewSwitcherPolicy; pub fn hdy_view_switcher_bar_get_reveal(self_: *mut HdyViewSwitcherBar) -> gboolean; pub fn hdy_view_switcher_bar_get_stack(self_: *mut HdyViewSwitcherBar) -> *mut gtk::GtkStack; pub fn hdy_view_switcher_bar_set_policy( self_: *mut HdyViewSwitcherBar, policy: HdyViewSwitcherPolicy, ); pub fn hdy_view_switcher_bar_set_reveal(self_: *mut HdyViewSwitcherBar, reveal: gboolean); pub fn hdy_view_switcher_bar_set_stack( self_: *mut HdyViewSwitcherBar, stack: *mut gtk::GtkStack, ); //========================================================================= // HdyViewSwitcherTitle //========================================================================= pub fn hdy_view_switcher_title_get_type() -> GType; pub fn hdy_view_switcher_title_new() -> *mut HdyViewSwitcherTitle; pub fn hdy_view_switcher_title_get_policy( self_: *mut HdyViewSwitcherTitle, ) -> HdyViewSwitcherPolicy; pub fn hdy_view_switcher_title_get_stack( self_: *mut HdyViewSwitcherTitle, ) -> *mut gtk::GtkStack; pub fn hdy_view_switcher_title_get_subtitle(self_: *mut HdyViewSwitcherTitle) -> *const c_char; pub fn hdy_view_switcher_title_get_title(self_: *mut HdyViewSwitcherTitle) -> *const c_char; pub fn hdy_view_switcher_title_get_title_visible(self_: *mut HdyViewSwitcherTitle) -> gboolean; pub fn hdy_view_switcher_title_get_view_switcher_enabled( self_: *mut HdyViewSwitcherTitle, ) -> gboolean; pub fn hdy_view_switcher_title_set_policy( self_: *mut HdyViewSwitcherTitle, policy: HdyViewSwitcherPolicy, ); pub fn hdy_view_switcher_title_set_stack( self_: *mut HdyViewSwitcherTitle, stack: *mut gtk::GtkStack, ); pub fn hdy_view_switcher_title_set_subtitle( self_: *mut HdyViewSwitcherTitle, subtitle: *const c_char, ); pub fn hdy_view_switcher_title_set_title( self_: *mut HdyViewSwitcherTitle, title: *const c_char, ); pub fn hdy_view_switcher_title_set_view_switcher_enabled( self_: *mut HdyViewSwitcherTitle, enabled: gboolean, ); //========================================================================= // HdyWindow //========================================================================= pub fn hdy_window_get_type() -> GType; pub fn hdy_window_new() -> *mut gtk::GtkWidget; //========================================================================= // HdyWindowHandle //========================================================================= pub fn hdy_window_handle_get_type() -> GType; pub fn hdy_window_handle_new() -> *mut gtk::GtkWidget; //========================================================================= // HdySwipeable //========================================================================= pub fn hdy_swipeable_get_type() -> GType; pub fn hdy_swipeable_emit_child_switched( self_: *mut HdySwipeable, index: c_uint, duration: i64, ); pub fn hdy_swipeable_get_cancel_progress(self_: *mut HdySwipeable) -> c_double; pub fn hdy_swipeable_get_distance(self_: *mut HdySwipeable) -> c_double; pub fn hdy_swipeable_get_progress(self_: *mut HdySwipeable) -> c_double; pub fn hdy_swipeable_get_snap_points( self_: *mut HdySwipeable, n_snap_points: *mut c_int, ) -> *mut c_double; pub fn hdy_swipeable_get_swipe_area( self_: *mut HdySwipeable, navigation_direction: HdyNavigationDirection, is_drag: gboolean, rect: *mut gdk::GdkRectangle, ); pub fn hdy_swipeable_get_swipe_tracker(self_: *mut HdySwipeable) -> *mut HdySwipeTracker; pub fn hdy_swipeable_switch_child(self_: *mut HdySwipeable, index: c_uint, duration: i64); //========================================================================= // Other functions //========================================================================= pub fn hdy_ease_out_cubic(t: c_double) -> c_double; pub fn hdy_enum_value_row_name( value: *mut HdyEnumValueObject, user_data: gpointer, ) -> *mut c_char; pub fn hdy_get_enable_animations(widget: *mut gtk::GtkWidget) -> gboolean; pub fn hdy_init(); } rust-libhandy-sys-0.11-0.11.1/tests/000077500000000000000000000000001467521320000167125ustar00rootroot00000000000000rust-libhandy-sys-0.11-0.11.1/tests/abi.rs000066400000000000000000000443241467521320000200220ustar00rootroot00000000000000// 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 libhandy_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] = &["libhandy-1"]; #[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)] = &[ ( "HdyActionRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyActionRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyApplicationWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyApplicationWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyAvatarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyCarouselClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyCarouselIndicatorDotsClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyCarouselIndicatorLinesClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyCenteringPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyClampClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyColorScheme", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyComboRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyComboRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyDeck", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyDeckClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyDeckTransitionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyEnumValueObjectClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyExpanderRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyExpanderRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyFlapClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyFlapFoldPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyFlapTransitionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyHeaderBar", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyHeaderBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyHeaderGroupChildClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyHeaderGroupChildType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyHeaderGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyKeypad", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyKeypadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyLeaflet", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyLeafletClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyLeafletTransitionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyNavigationDirection", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesGroup", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesPage", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesPageClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesRow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesRowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyPreferencesWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySearchBar", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySearchBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySqueezerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySqueezerTransitionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyStatusPageClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyStyleManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySwipeGroupClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySwipeTrackerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdySwipeableInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyTabBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyTabPageClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyTabViewClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyTitleBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyValueObjectClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyViewSwitcherBarClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyViewSwitcherClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyViewSwitcherPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyViewSwitcherTitleClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyWindow", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyWindowClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "HdyWindowHandleClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) HDY_CENTERING_POLICY_LOOSE", "0"), ("(gint) HDY_CENTERING_POLICY_STRICT", "1"), ("(gint) HDY_COLOR_SCHEME_DEFAULT", "0"), ("(gint) HDY_COLOR_SCHEME_FORCE_DARK", "4"), ("(gint) HDY_COLOR_SCHEME_FORCE_LIGHT", "1"), ("(gint) HDY_COLOR_SCHEME_PREFER_DARK", "3"), ("(gint) HDY_COLOR_SCHEME_PREFER_LIGHT", "2"), ("(gint) HDY_DECK_TRANSITION_TYPE_OVER", "0"), ("(gint) HDY_DECK_TRANSITION_TYPE_SLIDE", "2"), ("(gint) HDY_DECK_TRANSITION_TYPE_UNDER", "1"), ("(gint) HDY_FLAP_FOLD_POLICY_ALWAYS", "1"), ("(gint) HDY_FLAP_FOLD_POLICY_AUTO", "2"), ("(gint) HDY_FLAP_FOLD_POLICY_NEVER", "0"), ("(gint) HDY_FLAP_TRANSITION_TYPE_OVER", "0"), ("(gint) HDY_FLAP_TRANSITION_TYPE_SLIDE", "2"), ("(gint) HDY_FLAP_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"), ("(gint) HDY_NAVIGATION_DIRECTION_BACK", "0"), ("(gint) HDY_NAVIGATION_DIRECTION_FORWARD", "1"), ("(gint) HDY_SQUEEZER_TRANSITION_TYPE_CROSSFADE", "1"), ("(gint) HDY_SQUEEZER_TRANSITION_TYPE_NONE", "0"), ("(gint) HDY_VIEW_SWITCHER_POLICY_AUTO", "0"), ("(gint) HDY_VIEW_SWITCHER_POLICY_NARROW", "1"), ("(gint) HDY_VIEW_SWITCHER_POLICY_WIDE", "2"), ]; rust-libhandy-sys-0.11-0.11.1/tests/constant.c000066400000000000000000000053251467521320000207140ustar00rootroot00000000000000// 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 #include "manual.h" #include #define PRINT_CONSTANT(CONSTANT_NAME) \ printf("%s;", #CONSTANT_NAME); \ printf(_Generic((CONSTANT_NAME), \ char *: "%s", \ const char *: "%s", \ char: "%c", \ signed char: "%hhd", \ unsigned char: "%hhu", \ short int: "%hd", \ unsigned short int: "%hu", \ int: "%d", \ unsigned int: "%u", \ long: "%ld", \ unsigned long: "%lu", \ long long: "%lld", \ unsigned long long: "%llu", \ float: "%f", \ double: "%f", \ long double: "%ld"), \ CONSTANT_NAME); \ printf("\n"); int main() { PRINT_CONSTANT((gint) HDY_CENTERING_POLICY_LOOSE); PRINT_CONSTANT((gint) HDY_CENTERING_POLICY_STRICT); PRINT_CONSTANT((gint) HDY_COLOR_SCHEME_DEFAULT); PRINT_CONSTANT((gint) HDY_COLOR_SCHEME_FORCE_DARK); PRINT_CONSTANT((gint) HDY_COLOR_SCHEME_FORCE_LIGHT); PRINT_CONSTANT((gint) HDY_COLOR_SCHEME_PREFER_DARK); PRINT_CONSTANT((gint) HDY_COLOR_SCHEME_PREFER_LIGHT); PRINT_CONSTANT((gint) HDY_DECK_TRANSITION_TYPE_OVER); PRINT_CONSTANT((gint) HDY_DECK_TRANSITION_TYPE_SLIDE); PRINT_CONSTANT((gint) HDY_DECK_TRANSITION_TYPE_UNDER); PRINT_CONSTANT((gint) HDY_FLAP_FOLD_POLICY_ALWAYS); PRINT_CONSTANT((gint) HDY_FLAP_FOLD_POLICY_AUTO); PRINT_CONSTANT((gint) HDY_FLAP_FOLD_POLICY_NEVER); PRINT_CONSTANT((gint) HDY_FLAP_TRANSITION_TYPE_OVER); PRINT_CONSTANT((gint) HDY_FLAP_TRANSITION_TYPE_SLIDE); PRINT_CONSTANT((gint) HDY_FLAP_TRANSITION_TYPE_UNDER); PRINT_CONSTANT((gint) HDY_HEADER_GROUP_CHILD_TYPE_GTK_HEADER_BAR); PRINT_CONSTANT((gint) HDY_HEADER_GROUP_CHILD_TYPE_HEADER_BAR); PRINT_CONSTANT((gint) HDY_HEADER_GROUP_CHILD_TYPE_HEADER_GROUP); PRINT_CONSTANT((gint) HDY_LEAFLET_TRANSITION_TYPE_OVER); PRINT_CONSTANT((gint) HDY_LEAFLET_TRANSITION_TYPE_SLIDE); PRINT_CONSTANT((gint) HDY_LEAFLET_TRANSITION_TYPE_UNDER); PRINT_CONSTANT((gint) HDY_NAVIGATION_DIRECTION_BACK); PRINT_CONSTANT((gint) HDY_NAVIGATION_DIRECTION_FORWARD); PRINT_CONSTANT((gint) HDY_SQUEEZER_TRANSITION_TYPE_CROSSFADE); PRINT_CONSTANT((gint) HDY_SQUEEZER_TRANSITION_TYPE_NONE); PRINT_CONSTANT((gint) HDY_VIEW_SWITCHER_POLICY_AUTO); PRINT_CONSTANT((gint) HDY_VIEW_SWITCHER_POLICY_NARROW); PRINT_CONSTANT((gint) HDY_VIEW_SWITCHER_POLICY_WIDE); return 0; } rust-libhandy-sys-0.11-0.11.1/tests/layout.c000066400000000000000000000153541467521320000204030ustar00rootroot00000000000000// 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 #include "manual.h" #include #include int main() { printf("%s;%zu;%zu\n", "HdyActionRow", sizeof(HdyActionRow), alignof(HdyActionRow)); printf("%s;%zu;%zu\n", "HdyActionRowClass", sizeof(HdyActionRowClass), alignof(HdyActionRowClass)); printf("%s;%zu;%zu\n", "HdyApplicationWindow", sizeof(HdyApplicationWindow), alignof(HdyApplicationWindow)); printf("%s;%zu;%zu\n", "HdyApplicationWindowClass", sizeof(HdyApplicationWindowClass), alignof(HdyApplicationWindowClass)); printf("%s;%zu;%zu\n", "HdyAvatarClass", sizeof(HdyAvatarClass), alignof(HdyAvatarClass)); printf("%s;%zu;%zu\n", "HdyCarouselClass", sizeof(HdyCarouselClass), alignof(HdyCarouselClass)); printf("%s;%zu;%zu\n", "HdyCarouselIndicatorDotsClass", sizeof(HdyCarouselIndicatorDotsClass), alignof(HdyCarouselIndicatorDotsClass)); printf("%s;%zu;%zu\n", "HdyCarouselIndicatorLinesClass", sizeof(HdyCarouselIndicatorLinesClass), alignof(HdyCarouselIndicatorLinesClass)); printf("%s;%zu;%zu\n", "HdyCenteringPolicy", sizeof(HdyCenteringPolicy), alignof(HdyCenteringPolicy)); printf("%s;%zu;%zu\n", "HdyClampClass", sizeof(HdyClampClass), alignof(HdyClampClass)); printf("%s;%zu;%zu\n", "HdyColorScheme", sizeof(HdyColorScheme), alignof(HdyColorScheme)); printf("%s;%zu;%zu\n", "HdyComboRow", sizeof(HdyComboRow), alignof(HdyComboRow)); printf("%s;%zu;%zu\n", "HdyComboRowClass", sizeof(HdyComboRowClass), alignof(HdyComboRowClass)); printf("%s;%zu;%zu\n", "HdyDeck", sizeof(HdyDeck), alignof(HdyDeck)); printf("%s;%zu;%zu\n", "HdyDeckClass", sizeof(HdyDeckClass), alignof(HdyDeckClass)); printf("%s;%zu;%zu\n", "HdyDeckTransitionType", sizeof(HdyDeckTransitionType), alignof(HdyDeckTransitionType)); printf("%s;%zu;%zu\n", "HdyEnumValueObjectClass", sizeof(HdyEnumValueObjectClass), alignof(HdyEnumValueObjectClass)); printf("%s;%zu;%zu\n", "HdyExpanderRow", sizeof(HdyExpanderRow), alignof(HdyExpanderRow)); printf("%s;%zu;%zu\n", "HdyExpanderRowClass", sizeof(HdyExpanderRowClass), alignof(HdyExpanderRowClass)); printf("%s;%zu;%zu\n", "HdyFlapClass", sizeof(HdyFlapClass), alignof(HdyFlapClass)); printf("%s;%zu;%zu\n", "HdyFlapFoldPolicy", sizeof(HdyFlapFoldPolicy), alignof(HdyFlapFoldPolicy)); printf("%s;%zu;%zu\n", "HdyFlapTransitionType", sizeof(HdyFlapTransitionType), alignof(HdyFlapTransitionType)); printf("%s;%zu;%zu\n", "HdyHeaderBar", sizeof(HdyHeaderBar), alignof(HdyHeaderBar)); printf("%s;%zu;%zu\n", "HdyHeaderBarClass", sizeof(HdyHeaderBarClass), alignof(HdyHeaderBarClass)); printf("%s;%zu;%zu\n", "HdyHeaderGroupChildClass", sizeof(HdyHeaderGroupChildClass), alignof(HdyHeaderGroupChildClass)); printf("%s;%zu;%zu\n", "HdyHeaderGroupChildType", sizeof(HdyHeaderGroupChildType), alignof(HdyHeaderGroupChildType)); printf("%s;%zu;%zu\n", "HdyHeaderGroupClass", sizeof(HdyHeaderGroupClass), alignof(HdyHeaderGroupClass)); printf("%s;%zu;%zu\n", "HdyKeypad", sizeof(HdyKeypad), alignof(HdyKeypad)); printf("%s;%zu;%zu\n", "HdyKeypadClass", sizeof(HdyKeypadClass), alignof(HdyKeypadClass)); printf("%s;%zu;%zu\n", "HdyLeaflet", sizeof(HdyLeaflet), alignof(HdyLeaflet)); printf("%s;%zu;%zu\n", "HdyLeafletClass", sizeof(HdyLeafletClass), alignof(HdyLeafletClass)); printf("%s;%zu;%zu\n", "HdyLeafletTransitionType", sizeof(HdyLeafletTransitionType), alignof(HdyLeafletTransitionType)); printf("%s;%zu;%zu\n", "HdyNavigationDirection", sizeof(HdyNavigationDirection), alignof(HdyNavigationDirection)); printf("%s;%zu;%zu\n", "HdyPreferencesGroup", sizeof(HdyPreferencesGroup), alignof(HdyPreferencesGroup)); printf("%s;%zu;%zu\n", "HdyPreferencesGroupClass", sizeof(HdyPreferencesGroupClass), alignof(HdyPreferencesGroupClass)); printf("%s;%zu;%zu\n", "HdyPreferencesPage", sizeof(HdyPreferencesPage), alignof(HdyPreferencesPage)); printf("%s;%zu;%zu\n", "HdyPreferencesPageClass", sizeof(HdyPreferencesPageClass), alignof(HdyPreferencesPageClass)); printf("%s;%zu;%zu\n", "HdyPreferencesRow", sizeof(HdyPreferencesRow), alignof(HdyPreferencesRow)); printf("%s;%zu;%zu\n", "HdyPreferencesRowClass", sizeof(HdyPreferencesRowClass), alignof(HdyPreferencesRowClass)); printf("%s;%zu;%zu\n", "HdyPreferencesWindow", sizeof(HdyPreferencesWindow), alignof(HdyPreferencesWindow)); printf("%s;%zu;%zu\n", "HdyPreferencesWindowClass", sizeof(HdyPreferencesWindowClass), alignof(HdyPreferencesWindowClass)); printf("%s;%zu;%zu\n", "HdySearchBar", sizeof(HdySearchBar), alignof(HdySearchBar)); printf("%s;%zu;%zu\n", "HdySearchBarClass", sizeof(HdySearchBarClass), alignof(HdySearchBarClass)); printf("%s;%zu;%zu\n", "HdySqueezerClass", sizeof(HdySqueezerClass), alignof(HdySqueezerClass)); printf("%s;%zu;%zu\n", "HdySqueezerTransitionType", sizeof(HdySqueezerTransitionType), alignof(HdySqueezerTransitionType)); printf("%s;%zu;%zu\n", "HdyStatusPageClass", sizeof(HdyStatusPageClass), alignof(HdyStatusPageClass)); printf("%s;%zu;%zu\n", "HdyStyleManagerClass", sizeof(HdyStyleManagerClass), alignof(HdyStyleManagerClass)); printf("%s;%zu;%zu\n", "HdySwipeGroupClass", sizeof(HdySwipeGroupClass), alignof(HdySwipeGroupClass)); printf("%s;%zu;%zu\n", "HdySwipeTrackerClass", sizeof(HdySwipeTrackerClass), alignof(HdySwipeTrackerClass)); printf("%s;%zu;%zu\n", "HdySwipeableInterface", sizeof(HdySwipeableInterface), alignof(HdySwipeableInterface)); printf("%s;%zu;%zu\n", "HdyTabBarClass", sizeof(HdyTabBarClass), alignof(HdyTabBarClass)); printf("%s;%zu;%zu\n", "HdyTabPageClass", sizeof(HdyTabPageClass), alignof(HdyTabPageClass)); printf("%s;%zu;%zu\n", "HdyTabViewClass", sizeof(HdyTabViewClass), alignof(HdyTabViewClass)); printf("%s;%zu;%zu\n", "HdyTitleBarClass", sizeof(HdyTitleBarClass), alignof(HdyTitleBarClass)); printf("%s;%zu;%zu\n", "HdyValueObjectClass", sizeof(HdyValueObjectClass), alignof(HdyValueObjectClass)); printf("%s;%zu;%zu\n", "HdyViewSwitcherBarClass", sizeof(HdyViewSwitcherBarClass), alignof(HdyViewSwitcherBarClass)); printf("%s;%zu;%zu\n", "HdyViewSwitcherClass", sizeof(HdyViewSwitcherClass), alignof(HdyViewSwitcherClass)); printf("%s;%zu;%zu\n", "HdyViewSwitcherPolicy", sizeof(HdyViewSwitcherPolicy), alignof(HdyViewSwitcherPolicy)); printf("%s;%zu;%zu\n", "HdyViewSwitcherTitleClass", sizeof(HdyViewSwitcherTitleClass), alignof(HdyViewSwitcherTitleClass)); printf("%s;%zu;%zu\n", "HdyWindow", sizeof(HdyWindow), alignof(HdyWindow)); printf("%s;%zu;%zu\n", "HdyWindowClass", sizeof(HdyWindowClass), alignof(HdyWindowClass)); printf("%s;%zu;%zu\n", "HdyWindowHandleClass", sizeof(HdyWindowHandleClass), alignof(HdyWindowHandleClass)); return 0; } rust-libhandy-sys-0.11-0.11.1/tests/manual.h000066400000000000000000000002141467521320000203350ustar00rootroot00000000000000// Feel free to edit this file, it won't be regenerated by gir generator unless removed. #define HANDY_USE_UNSTABLE_API #include rust-libhandy-sys-0.11-0.11.1/versions.txt000066400000000000000000000001731467521320000201620ustar00rootroot00000000000000Generated by gir (https://github.com/gtk-rs/gir @ 1825132+) from gir-files (https://github.com/gtk-rs/gir-files @ 47c69e6)