diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 018f365..69c2cf2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,53 +18,22 @@ jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest + container: + image: registry.fedoraproject.org/fedora-minimal:40 steps: - - uses: actions/checkout@v3 - with: - submodules: "recursive" - - uses: actions/setup-node@v3 - with: - node-version: 14 - - run: npm install -g sass - - - name: Update repos - run: sudo apt update + - name: Install required packages + run: | + dnf5 update -y --setopt=install_weak_deps=False + dnf5 install -y --setopt=install_weak_deps=False dnf5-plugins + dnf5 config-manager addrepo --from-repofile='https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo' + dnf5 install -y libhelium-devel libbismuth-devel sass git rust cargo rustdoc rustfmt meson ninja vala 'pkgconfig(gnome-desktop-4)' 'pkgconfig(accountsservice)' 'pkgconfig(udisks2)' 'pkgconfig(gudev-1.0)' 'pkgconfig(libgtop-2.0)' 'pkgconfig(gexiv2)' 'pkgconfig(gweather4)' 'pkgconfig(libpulse)' 'pkgconfig(ibus-1.0)' 'pkgconfig(gl)' desktop-file-utils - - name: Install system level libraries - run: sudo apt install libpango1.0-dev libgtk-4-dev libgee-0.8-dev libgexiv2-dev meson ninja-build valac valadoc libpulse-dev libgnome-desktop-4-dev libgweather-4-dev libaccountsservice-dev libudisks2-dev libgudev-1.0-dev libgtop2-dev libxml2-dev libibus-1.0-dev desktop-file-utils - - - name: Checkout libhelium - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: - repository: tau-OS/libhelium - path: libhelium-src - - name: Install libhelium - run: meson build -Ddemo=false - working-directory: ./libhelium-src - - name: Build libhelium with Ninja - run: ninja - working-directory: ./libhelium-src/build - - name: Install libhelium globally - run: sudo ninja install - working-directory: ./libhelium-src/build - - - name: Checkout libbismuth - uses: actions/checkout@v3 - with: - repository: tau-OS/libbismuth - path: libbismuth-src - - name: Install libbismuth - run: meson build - working-directory: ./libbismuth-src - - name: Build libbismuth with Ninja - run: ninja - working-directory: ./libbismuth-src/build - - name: Install libbismuth globally - run: sudo ninja install - working-directory: ./libbismuth-src/build + submodules: "recursive" - name: Checkout fusebox - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: tau-OS/fusebox path: fusebox-src @@ -75,28 +44,21 @@ jobs: run: ninja working-directory: ./fusebox-src/build - name: Install fusebox globally - run: sudo ninja install + run: ninja install working-directory: ./fusebox-src/build - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - default: true - components: rustfmt, clippy - - name: Generate docs run: cargo install rustdoc-stripper - - run: ./generator.py --embed-docs + - run: PATH="$HOME/.cargo/bin:$PATH" ./generator.py --embed-docs - run: cargo doc --no-deps - run: mv target/doc/ docs - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: "docs/" - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/Cargo.lock b/Cargo.lock index 43b984d..b31a726 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,7 +88,7 @@ dependencies = [ [[package]] name = "fusebox" -version = "0.3.0" +version = "0.4.0" dependencies = [ "bitflags", "fusebox-sys", @@ -105,7 +105,7 @@ dependencies = [ [[package]] name = "fusebox-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "gdk4-sys", "gio-sys", @@ -456,7 +456,7 @@ dependencies = [ [[package]] name = "libbismuth" -version = "0.3.0" +version = "0.4.0" dependencies = [ "bitflags", "futures-channel", @@ -473,7 +473,7 @@ dependencies = [ [[package]] name = "libbismuth-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "gdk4-sys", "gio-sys", @@ -495,7 +495,7 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libhelium" -version = "0.3.0" +version = "0.4.0" dependencies = [ "bitflags", "futures-channel", @@ -512,7 +512,7 @@ dependencies = [ [[package]] name = "libhelium-sys" -version = "0.3.0" +version = "0.4.0" dependencies = [ "gdk4-sys", "gio-sys", diff --git a/He-1.gir b/He-1.gir index ad1c2d9..93a7574 100755 --- a/He-1.gir +++ b/He-1.gir @@ -6,6 +6,7 @@ + @@ -321,6 +322,19 @@ + + + + + + + + + + + + + @@ -755,6 +769,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -1350,6 +1384,17 @@ Since: 1.0 + + + + + + + + + + + <para>An enum that maps colors to internal CSS classes as per HIG.</para> @@ -1390,2221 +1435,4133 @@ Since: 1.0 - - <para>An application.</para> + + <para>A TipViewStyle changes the visual look of a tip.</para> + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - <para>Creates a new application.</para> + - + - - <para>The application ID in reverse domain name notation </para> - - - - <para>The application flags, as defined in GIO.ApplicationFlags </para> - + + + + + - - - - - - - + + + + - + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - + + - - - + + + - + - + - + - - + + - - + + - + - + - + - + - + - + - + - + - - - <para>A helper class for subclassing custom widgets.</para> - + + - + - + - - <para>Add a child to the Bin, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.</para> + - + - - - - - - - - - - - <para>Add a child to the Bin, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.</para> + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + - - <para>Create a new Bin.</para> - - - - - - + + - + - + - + - + - + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - - - + - - + + + + + + + + + + + - - + + - - - <para>A helper class to derive Buttons from.</para> - -Since: 1.0 - + + - + - + - - <para>The color of the button.</para> - -Since: 1.0 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + + + + - - + + + + + + + + + + + + + + + - + - + - + + + + + + + + + + + + + + - + - + - - - <para>The icon of the Button.</para> - -Since: 1.0 - + + + - - - + + + - + - + - + - + - + - + - - - <para>A helper class to derive Buttons from.</para> - -Since: 1.0 - + + - + - - - - + - - - + + + + + + + + + + + + + + + + + + + + - - <para>The icon of the Button.</para> - -Since: 1.0 - + + - - - + + + - + - + - + - + - - <para>The label of the Button.</para> - -Since: 1.0 - + + - - - + + + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <para>A class that manages the style of the application in conjunction with the provided preferences. This is a low-level class that should not be -used directly. Instead, let the `He.Application` class manage this for you.</para> - - - - - - - - <para>The preferred accent color. If null, a default accent color will be chosen based on the color scheme.</para> - - - - <para>The preferred font weight.</para> - - - - <para>The preferred UI roundness.</para> + - - - <para>Whether to apply styles for dark mode.</para> - - - - <para>Whether to apply styles for high contrast mode.</para> - - - - <para>A function that returns a color scheme from a given accent color and whether dark mode is enabled.</para> - - - - <para>Runs all the necessary updates to apply the current style. If is_registered is false, this will do nothing.</para> - - - - - - - - - - - <para>Register the style manager with GTK. This will also call update.</para> - - + + + + - + - - <para>Unregister the style manager with GTK.</para> - + + - + + + + - - - - - - - <para>Whether the style manager has been registered. Unregistered style managers will not apply their styles.</para> + - + - + - - <para>The base style provider for application provided styles. In this case user refers to the application, not the user of the application.</para> - - - + - + - + + + + - - <para>The dark style provider for application provided styles. This will be applied in addition to the base style provider when dark mode is enabled. -</para> - + + - + - + - + - - - - - - - - - <para>A helper widget that implements a View that displays items.</para> - - - - - - - - - <para>Add a child to the welcome screen, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in -code.</para> - + + - + - - - - - - - - + + - - <para>Add a child to the welcome screen, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in -code.</para> - - + + + + + + - + - - - - - - - - - - - - <para>Add a child directly to the view. Used only in code.</para> - -Since: 1.0 - + + + - + - - + + - - <para>The title of the view.</para> - + + - + - + - + - + - + - + - - <para>The stack of the view.</para> - + + - + - + - + - + - + - + - - <para>The subtitle of the view.</para> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - - <para>Whether the view child has margins or is full-bleed.</para> - + + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <para>A Window is a container that has an <type>HeAppBar</type> and can be moved, resized, and closed. It may be a top-level window or a dialog. The -title bar can be made always visible. Has an optional back button. The back button is only visible if has_back_button is true.</para> - - - - - - - - - - - - - <para>The parent window of this window. If this is null, then this is a top-level window.</para> - + + - - - + + + - + - + - + - - + + - - <para>If the window has a title bar.</para> - + + - + - + - + - + - + - + - - <para>If the window has a back button.</para> - -Since: 1.0 - + + - + - + - + - + - + - + - - - - - - - - - <para>Helper class to deal with desktop-specific settings.</para> - - - - - - - - - - - - - + + - + - + - + - + - + - + - - + + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + <para>An application.</para> + + + + + + + + <para>Creates a new application.</para> + + + + + + <para>The application ID in reverse domain name notation </para> + + + + <para>The application flags, as defined in GIO.ApplicationFlags </para> + + + + + - + - + - + - + - - + + - + - + - + - + - + - + - - + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - - + + - + - + - - - <para>The color scheme preference enum, which is used to determine the color scheme of the desktop.</para> - - - - - - <para>The contrast scheme preference enum, which is used to determine the contrast scheme of the desktop.</para> - - - - - - <para>The Ensor scheme preference enum, which is used to determine the Ensor scheme of the desktop.</para> - - - - - - - - - - - - - - - - - + + + <para>A helper class for subclassing custom widgets.</para> + - + - + - + + <para>Add a child to the Bin, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.</para> - + - + - - - - + + - - + + - - + + - + + <para>Add a child to the Bin, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.</para> - + - + - - - - + + - - + + - - + + + + <para>Create a new Bin.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + - + - + - - - - + + - - + + - - + + - - + + + <para>A helper class to derive Buttons from.</para> + +Since: 1.0 + - - - - + - + - - - + + + + + + - + + <para>The icon of the Button.</para> + +Since: 1.0 + + + - - - - + - + - - - - - - - - - - - - - - - - - - - - <para>Creates a dictionary with keys of colors, and values of count of the color</para> - - - - - - - - - - - - + + + - + + + + + + + + <para>The label of the Button.</para> + +Since: 1.0 + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + - + - - + + + - - - - - - - + - + - + - - - - - - - - - + - - + + + - + - + - - - - + - - - - - - - - - - - - - - - - - - - - - - + - + - - - <para>An image quantizer that divides the image&apos;s pixels into clusters by recursively cutting an RGB cube, based on the weight of pixels in each -area of the cube.</para> -<para>&lt;p&gt;The algorithm was described by Xiaolin Wu in Graphic Gems II, published in 1991.</para> + + + - + - + - + - + - + - + - - + + + - - - - + - + - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - - + + + - - - - + - - - - - - - - - - + - - + + + + + + + + + - - + + + + + + - - + + - + - + - + - + - - + + + <para>A class that manages the style of the application in conjunction with the provided preferences. This is a low-level class that should not be +used directly. Instead, let the `He.Application` class manage this for you.</para> - + - - + + <para>The preferred accent color. If null, a default accent color will be chosen based on the color scheme.</para> + - - - - + + <para>The preferred font weight.</para> + - - + + <para>The preferred UI roundness.</para> + - + + <para>Whether to apply styles for dark mode.</para> + + + + <para>Whether to apply styles for contrast modes. 1.0 = low, 2.0 = default, 3.0 = medium, 4.0 = high</para> + + + + <para>A function that returns a color scheme from a given accent color and whether dark mode is enabled.</para> + + + + <para>Runs all the necessary updates to apply the current style. If is_registered is false, this will do nothing.</para> - + - - - - + + + + + + + <para>Register the style manager with GTK. This will also call update.</para> + + + + + + + + + + + <para>Unregister the style manager with GTK.</para> + + + + + + + + + + + + + + + + <para>Whether the style manager has been registered. Unregistered style managers will not apply their styles.</para> + + + + + + + + + + + + + + <para>The base style provider for application provided styles. In this case user refers to the application, not the user of the application.</para> + + + + + + + + + + + + + + <para>The dark style provider for application provided styles. This will be applied in addition to the base style provider when dark mode is enabled. +</para> + + + + + + + + + + + + + + + + + + + + + <para>A Tip is a helper object for onboarding flow tips in an app&apos;s first launch.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>A helper widget that implements a View that displays items.</para> + + + + + + + + + <para>Add a child to the welcome screen, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in +code.</para> + + + + + + + + + + + + + + + + + + + + <para>Add a child to the welcome screen, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in +code.</para> + + + + + + + + + + + + + + + + + + + + <para>Add a child directly to the view. Used only in code.</para> + +Since: 1.0 + + + + + + + + + + + + + + <para>The title of the view.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The stack of the view.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The subtitle of the view.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>Whether the view child has margins or is full-bleed.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>A Window is a container that has an <type>HeAppBar</type> and can be moved, resized, and closed. It may be a top-level window or a dialog. The +title bar can be made always visible. Has an optional back button. The back button is only visible if has_back_button is true.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>Helper class to deal with desktop-specific settings.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The color scheme preference enum, which is used to determine the color scheme of the desktop.</para> + + + + + + <para>The Ensor scheme preference enum, which is used to determine the Ensor scheme of the desktop.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>Creates a dictionary with keys of colors, and values of count of the color</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>An image quantizer that divides the image&apos;s pixels into clusters by recursively cutting an RGB cube, based on the weight of pixels in each +area of the cube.</para> +<para>&lt;p&gt;The algorithm was described by Xiaolin Wu in Graphic Gems II, published in 1991.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + <para>An AboutWindow is a window that displays information about the application.</para> + + + + + + + + <para>Creates a new AboutWindow.</para> + +Since: 1.0 + + + + + + <para>The parent window. </para> + + + + <para>Your application&apos;s name. </para> + + + + <para>Your application&apos;s reverse-domain name. </para> + + + + <para>Your application&apos;s version. </para> + + + + <para>Your application&apos;s icon. </para> + + + + <para>A URL where contributors can help translate the application. </para> + + + + <para>A URL where users can report a problem with the application. </para> + + + + <para>A URL where users can get more information about the application. </para> + + + + <para>Your application&apos;s translators. </para> + + + + + + + + + <para>Your application&apos;s developers. </para> + + + + + + + + + <para>Your application&apos;s copyright year. </para> + + + + <para>Your application&apos;s license. </para> + + + + <para>The color of the AboutWindow. </para> + + + + + + <para>The theme color of the AboutWindow.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The license shown in the AboutWindow.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The version shown in the AboutWindow.</para> + + + + + + + + + + + + + + + + + + + + + + - - - - + + + <para>The name of the application shown in the AboutWindow.</para> + + + + + - - - + + + + + + + + + + + + + + + + + + + + <para>The icon shown in the AboutWindow.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>The translators shown in the AboutWindow.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - + + + + <para>The developers shown in the AboutWindow.</para> + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + - - + + - - - - + + + <para>The copyright year shown in the AboutWindow.</para> + + + + + - - + + + + + + + + + + + + + + + - - - + + + <para>Your application&apos;s reverse-domain name.</para> + - + - + - + - + - + - + - - + + <para>A URL where contributors can help translate the application.</para> + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>A URL where users can report a problem with the application.</para> + - - - + + + - + - + - + - - + + - - + + <para>A URL where users can get more information about the application.</para> + - - - + + + - + - + - + - - + + - - - - - - + + + + + + + + + <para>An enum of commonly used licenses to be used in AboutWindow.</para> + + + + + + + + + + <para>Returns the license url for the license.</para> + + + + + + + + + + + <para>Returns the license name for the license.</para> + + + + + + + + + + + <para>An AppBar is the header bar of an Window. It usually provides controls to manage the window, as well as optional children for more granular +control.</para> + + + + + + + + <para>The button to go back one view displayed in the AppBar.</para> + + + + <para>The button box in the AppBar, shows below and to the right side of the title, or alongside the window controls, based on scrollers.</para> + + + + <para>Append a child to the AppBar. Please note that an AppBar should only have at most three children.</para> + + - + + + <para>The child to append. </para> + + - - + + <para>Append a togglebutton child to the AppBar. Please note that an AppBar should only have at most three children.</para> + - + - - + + <para>The child to append. </para> + - - - - - - + + <para>Append a menubutton child to the AppBar. Please note that an AppBar should only have at most three children.</para> + + - + + + <para>The child to append. </para> + + - - + + <para>Remove a child from the AppBar.</para> + +Since: 1.0 + - + - - + + <para>The child to remove. </para> + - - + + <para>Creates a new AppBar.</para> + + + + + + <para>The stack that the AppBar is associated with. This is used to determine the back button&apos;s functionality.</para> + - + - + - + - + - + - + - - + + <para>The ScrolledWindow that the AppBar is associated with. This is used to move the view&apos;s title to the AppBar and unsetting flatness.</para> + - + - + - + - + - + - + - - + + <para>The title to the left on the AppBar.</para> + - + - + - + - + - + - + - - + + <para>The title widget to the left on the AppBar. If this is set, the other title &lpar;not subtitle&rpar; props won&apos;t work, and the mini title +on collapsed state won&apos;t show.</para> + - - - + + + - + - + - + - - + + - - - - - - - - - <para>An AboutWindow is a window that displays information about the application.</para> - - - - - - - - <para>Creates a new AboutWindow.</para> - -Since: 1.0 + + <para>The subtitle to the left on the AppBar.</para> + + + + + + + + + + + + + - + - - <para>The parent window. </para> - - - - <para>Your application&apos;s name. </para> - - - - <para>Your application&apos;s reverse-domain name. </para> - - - - <para>Your application&apos;s version. </para> - - - - <para>Your application&apos;s icon. </para> - - - - <para>A URL where contributors can help translate the application. </para> - - - - <para>A URL where users can report a problem with the application. </para> - - - - <para>A URL where users can get more information about the application. </para> + + + + - - <para>Your application&apos;s translators. </para> - - - - - - - - - <para>Your application&apos;s developers. </para> - - - - - - - - - <para>Your application&apos;s copyright year. </para> - - - - <para>Your application&apos;s license. </para> - - - - <para>The color of the AboutWindow. </para> - - - - - <para>The theme color of the AboutWindow.</para> - + + + <para>Whether the close, minimize and maximize buttons are shown.</para> + - + - + - + - + - + - + - - <para>The license shown in the AboutWindow.</para> - + + <para>Whether the close, minimize and maximize buttons are shown.</para> + - + - + - + - + - + - + - - <para>The version shown in the AboutWindow.</para> + + <para>The layout of the window buttons a.k.a. where to put close, maximize, minimize. It is a string in the format &quot;&lt;left&gt;:&lt;right&gt; +&quot;.</para> - + - + - + - + - - <para>The name of the application shown in the AboutWindow.</para> - + + <para>Whether the back button is shown.</para> + - + - + - + - + - + - + - - <para>The icon shown in the AboutWindow.</para> - + + + + + + + + + <para>An ApplicationWindow is a Window for holding the main content of an application.</para> + + + + + + + + <para>Creates a new ApplicationWindow.</para> + +Since: 1.0 + + + + + + <para>The application associated with this window. </para> + + + + + + - + - + - + - + - + - + - - <para>The translators shown in the AboutWindow.</para> - - - + + - + - - - + - + - - - - + - + - - - + - + + + + + + + + + + + <para>An Avatar is an element that displays an image that represents a person.</para> + + + + + + + + <para>Creates a new Avatar.</para> + +Since: 1.1 + + + + + + + <para>The image to display </para> + + + + + + + + - - - <para>The developers shown in the AboutWindow.</para> - - - + + + <para>The size of the avatar.</para> + - + - - - + - + - - - - + - + - - - - - - - <para>The copyright year shown in the AboutWindow.</para> - + + <para>The text of the avatar.</para> + - - - + + + - + - + - + - - + + - - <para>Your application&apos;s reverse-domain name.</para> - + + <para>The status shown on top of the avatar with a badge. e.g. when the user is offline, set it to false.</para> + - + - + - + - + - + - + - - <para>A URL where contributors can help translate the application.</para> + + <para>The image of the avatar.</para> - + - + - + - + - - <para>A URL where users can report a problem with the application.</para> - + + + + + + + + + <para>A Badge is a small status indicator that can be used to provide additional information about an object.</para> + + + + + + + + <para>Creates a new badge.</para> + + + + + + <para>The child of the badge.</para> + +Since: 1.0 + - + - + - + - + - + - + - - <para>A URL where users can get more information about the application.</para> + + <para>Text to display in the badge.</para> - + - + - + - + @@ -3612,426 +5569,417 @@ Since: 1.0 - + - + - - - <para>An enum of commonly used licenses to be used in AboutWindow.</para> - - - - - - - - - - <para>Returns the license url for the license.</para> - - - - - - - - - - - <para>Returns the license name for the license.</para> - - - - - - - - - - - <para>An AppBar is the header bar of an Window. It usually provides controls to manage the window, as well as optional children for more granular -control.</para> + + + <para>A Banner is a widget that displays a message to the user and provides a way for the user to act on the message.</para> + - - - - <para>The flatness of the He.AppBar</para> -<para>Deprecated for code use. Will break if set manually!</para> - - - - <para>The button to go back one view displayed in the AppBar.</para> - - - - <para>The button box in the AppBar, shows below and to the right side of the title, or alongside the window controls, based on scrollers.</para> - + - - <para>Append a child to the AppBar. Please note that an AppBar should only have at most three children.</para> + + <para>Add a button to the banner.</para> - + - - <para>The child to append. </para> + + <para>The button to add to the banner. </para> - - <para>Remove a child from the AppBar.</para> - -Since: 1.0 + + <para>Remove a button from the banner.</para> - + - - <para>The child to remove. </para> + + <para>The button to remove. </para> - - <para>Creates a new AppBar.</para> - - - - - - <para>The stack that the AppBar is associated with. This is used to determine the back button&apos;s functionality.</para> - - - - - + + <para>Set the banner style.</para> + + - + + + <para>The style to set the banner to. </para> + + - + + <para>Construct a new banner.</para> + +Since: 1.0 - + - - - - - + + <para>The title of the banner. </para> + + + + <para>The description of the banner. </para> + - - - <para>The ScrolledWindow that the AppBar is associated with. This is used to move the view&apos;s title to the AppBar and unsetting flatness.</para> - + + + <para>The title of the banner</para> + - + - + - + - + - + - + - - <para>The title to the left on the AppBar.</para> + + <para>The description of the banner</para> - + - + - + - + - - <para>The title widget to the left on the AppBar. If this is set, the other title &lpar;not subtitle&rpar; props won&apos;t work, and the mini title -on collapsed state won&apos;t show.</para> - + + <para>The style of the banner</para> + - - - + + + - + - + - + - - + + - - <para>The subtitle to the left on the AppBar.</para> - - - + + + + + + + + + <para>An enum representing the style of the banner.</para> + + + + + + <para>A BottomBar is a toolbar made to make actions on content more visible. It may have up to 5 actions on each side. It has title and description +labels, which can be part of a menu&apos;s label.</para> + + + + + + + + + <para>Create a new bottom bar.</para> - + - - - + + <para>The title of the bottom bar. </para> + + + + <para>The description of the bottom bar. </para> + + - - + + + <para>Create a new bottom bar.</para> + + + + + <para>Add an action to the bottom bar on the end of the bar.</para> + - + - - + + <para>The iconicbutton of the action. </para> + + + + <para>The position of the action. </para> + - - <para>Whether the close, minimize and maximize buttons are shown.</para> - - - - - + + <para>Add an action to the bottom bar on the start of the bar.</para> + + - + + + <para>The iconicbutton of the action. </para> + + + + <para>The position of the action. </para> + + - - + + <para>Remove an action of the bottom bar.</para> + - + - - + + <para>The iconicbutton of the action. </para> + + + + <para>The position of the action. </para> + - - <para>Whether the close, minimize and maximize buttons are shown.</para> - - - - - + + <para>Insert an action after another action.</para> + + - + + + <para>The iconicbutton of the action. </para> + + + + <para>The iconicbutton of the action after which the action is. </para> + + + + <para>The position of the action. </para> + + - - + + <para>Reorder an action based on another action.</para> + +Since: 1.0 + - + - - + + <para>The iconicbutton of the action. </para> + + + + <para>The iconicbutton of the action after which the action is. </para> + + + + <para>The position of the action. </para> + - - <para>The layout of the window buttons a.k.a. where to put close, maximize, minimize. It is a string in the format &quot;&lt;left&gt;:&lt;right&gt; -&quot;.</para> + + <para>The title of the bottom bar.</para> - + - + - + - + - - <para>Whether the back button is shown.</para> - + + <para>The description of the bottom bar.</para> + - + - + - + - + - + - - - - - - - - - - - - - <para>An ApplicationWindow is a Window for holding the main content of an application.</para> - - - - - - - - <para>Creates a new ApplicationWindow.</para> - -Since: 1.0 - - - - - - <para>The application associated with this window. </para> - + - - - <para>Whether this window should display a title.</para> - + + + <para>The menu_model of the bottom bar. If a menu_model is set, show it on the center widget of the bottom bar.</para> + - + - + - + - + - + - + - - <para>Whether this window should display a back button.</para> + + <para>Whether to collapse actions into a menu.</para> - + - + - + - + @@ -4039,658 +5987,516 @@ Since: 1.0 - + - + - - - <para>An Avatar is an element that displays an image that represents a person.</para> + + + <para>An enum to define the position of the bottom bar actions.</para> + + + + + <para>A BottomSheet is a UI component made to showcase accessory actions. It may have an action button. It has a title label and contents.</para> - + - + - - <para>Creates a new Avatar.</para> - -Since: 1.1 + - + - - - - - - <para>The image to display </para> - - - - - - - - - - - <para>The size of the avatar.</para> - + + - - - + + + - + - + - + - - + + - - <para>The text of the avatar.</para> - + + - + - + - + - + - + - + - - <para>The status shown on top of the avatar with a badge. e.g. when the user is offline, set it to false.</para> - + + - - - + + + - + - + - + - - + + - - <para>The image of the avatar.</para> - + + - - - + + + - + - + - + - - + + - - - - - - - - - <para>A Badge is a small status indicator that can be used to provide additional information about an object.</para> - - - - - - - - <para>Creates a new badge.</para> - - - - - - <para>The child of the badge.</para> - -Since: 1.0 - + + - - - + + + - + - + - + - - + + - - <para>Text to display in the badge.</para> - + + - - - + + + - + - + - + - - + + - - - - - - - - - <para>A Banner is a widget that displays a message to the user and provides a way for the user to act on the message.</para> - - - - - - - - - <para>Add a button to the banner.</para> - - + + + + + + - + - - <para>The button to add to the banner. </para> - - - - <para>Remove a button from the banner.</para> - + + - + - - <para>The button to remove. </para> - + + - - <para>Set the banner style.</para> + + <para>The hidden signal fires when the sheet is hidden.</para> - - - - - - <para>The style to set the banner to. </para> - - - - - - <para>Construct a new banner.</para> + + + + + + + + + + <para>A class to derive UI Buttons from.</para> Since: 1.0 + + + + + + + + - + - - <para>The title of the banner. </para> + - - <para>The description of the banner. </para> + - - <para>The title of the banner</para> - + + - + - + - + - + - + - + - - <para>The description of the banner</para> - + + - + - + - + - + - + - + - - <para>The style of the banner</para> - + + - + - + - + - + - + - + - - - - - - - - - <para>An enum representing the style of the banner.</para> - - - - - - <para>A BottomBar is a toolbar made to make actions on content more visible. It may have up to 5 actions on each side. It has title and description -labels, which can be part of a menu&apos;s label.</para> - - - - - - - - - <para>Create a new bottom bar.</para> + + + + - + - - <para>The title of the bottom bar. </para> - - - - <para>The description of the bottom bar. </para> - - + + + - - - <para>Create a new bottom bar.</para> + + - - - - - <para>Add an action to the bottom bar on the end of the bar.</para> - - + - - <para>The iconicbutton of the action. </para> - - - - <para>The position of the action. </para> - + + - - <para>Add an action to the bottom bar on the start of the bar.</para> - - + + + + + + - + - - <para>The iconicbutton of the action. </para> - - - - <para>The position of the action. </para> - - - - <para>Remove an action of the bottom bar.</para> - + + - + - - <para>The iconicbutton of the action. </para> - - - - <para>The position of the action. </para> - + + - - <para>Insert an action after another action.</para> - - + + + + + + - + - - <para>The iconicbutton of the action. </para> - - - - <para>The iconicbutton of the action after which the action is. </para> - - - - <para>The position of the action. </para> - - - - <para>Reorder an action based on another action.</para> - -Since: 1.0 - + + - + - - <para>The iconicbutton of the action. </para> - - - - <para>The iconicbutton of the action after which the action is. </para> - - - - <para>The position of the action. </para> - + + - - <para>The title of the bottom bar.</para> - + + - + - + - + - + - + - + - - <para>The description of the bottom bar.</para> - + + - + - + - + - + - + - + - - <para>The menu_model of the bottom bar. If a menu_model is set, show it on the center widget of the bottom bar.</para> - + + - - - + + + - + - + - + - - + + - - <para>Whether to collapse actions into a menu.</para> - + + - + - + - + - + - + - + - + - + - - - <para>An enum to define the position of the bottom bar actions.</para> - - - + <para>A Chip is an element that can facilitate entering information, making selections, filtering content, or triggering actions.</para> @@ -5504,7 +7310,7 @@ Since: 1.0 <para>The cancel button in the dialog.</para> - + <para>Add a child directly to the Dialog. Used only in code.</para> @@ -5556,11 +7362,11 @@ Since: 1.0 <para>The primary button of the dialog. </para> - + <para>The secondary button of the dialog. </para> - + @@ -5647,11 +7453,11 @@ Since: 1.0 <para>Sets the secondary button of the dialog.</para> - + - + @@ -5668,17 +7474,17 @@ Since: 1.0 - + <para>Sets the primary button of the dialog.</para> - + - + @@ -5695,7 +7501,7 @@ Since: 1.0 - + @@ -5706,92 +7512,50 @@ Since: 1.0 - - <para>A Disclosure Button is a view-based button that acts on said view.</para> + + <para>A Divider is a thin line that groups content in a view, can be full-width &lpar;default&rpar; or inset</para> - + - + - - <para>Creates a new DisclosureButton.</para> - - - - - - <para>The name of the icon to use. </para> - - - - - - <para>Create a new DisclosureButton from an icon.</para> - -Since: 1.0 + + <para>Creates a new Divider.</para> - + - - - <para>The icon to display on the button. </para> - - - - - <para>Sets the icon of the button.</para> - + + - + - + - + - + - + - + - - - - - - - - - <para>A Divider is a thin line that groups content in a view, can be full-width &lpar;default&rpar; or inset</para> - - - - - - - - <para>Creates a new Divider.</para> - - - - - + - + @@ -5801,7 +7565,7 @@ Since: 1.0 - + @@ -5821,257 +7585,376 @@ Since: 1.0 - - <para>An EmptyPage is a page that is used to display a message and a button when there is no data to display.</para> + + <para>A <type>HeDropdown</type> is a simple variant of <type>GtkDropDown</type> for easy developing.</para> - + - - - - <para>The action button of the empty page. Can connect to the clicked signal to get notified when the button is clicked. e.g. -action_button.clicked.connect&lpar;&lpar;&rpar; =&gt; { ... }&rpar;;</para> - + - - <para>Creates a new EmptyPage.</para> + + <para>Creates a new <type>HeDropdown</type>.</para> - + <para>A new <type>HeDropdown</type> </para> + - - <para>Sets the title of the empty page.</para> - - - - - + + <para>Appends text to the list of strings stored in this.</para> +<para>This is the same as calling <function>he_dropdown_insert</function> with a position of -1.</para> + + - + + + <para>A string </para> + + - - + + <para>Returns the currently active string in this.</para> +<para>If no row is currently selected, null is returned. If this contains an entry, this function will return its contents &lpar;which will not +necessarily be an item from the list&rpar;.</para> + + <para>A newly allocated string containing the currently active text. Must be freed with g_free. </para> + + + + + + + + + + <para>Inserts text at position in the list of strings stored in this.</para> +<para>If position is negative then text is appended.<br/> This is the same as calling <function>he_dropdown_insert</function> with a null ID string. +</para> + - + - + + <para>An index to insert text </para> + + + + <para>A string </para> - - <para>Sets the description of the empty page.</para> + + <para>Prepends text to the list of strings stored in this.</para> +<para>This is the same as calling <function>he_dropdown_insert</function> with a position of 0.</para> + + + + + + + + + <para>A string </para> + + + + + + <para>Removes the string at position from this.</para> + + + + + + + + + <para>Index of the item to remove </para> + + + + + + <para>Removes all the text entries from the dropdown.</para> + + + + + + + + + + + <para>The value of the ID column of the active row.</para> - - + + - + - + - + - + - - <para>Sets the icon of the empty page.</para> - + + <para>The desired maximum width of the label, in characters.</para> +<para>If this property is set to -1, the width will be calculated automatically.</para> + - + - + - + - + - + - + - - <para>Sets the illustration of the empty page.</para> - + + <para>The preferred place to ellipsize the string, if the label does not have enough room to display the entire string.</para> + - + + + + + + + + + + + - + - + - - <para>Sets the button of the empty page.</para> - -Since: 1.0 - + + <para>A <type>GtkDropDown</type> which this uses internally.</para> + - + - + - + - + - + - + + + <para>Emitted when the active item is changed.</para> + + + + - + - + - - - <para>A FillButton is a solid button with a label.</para> + + + <para>An EmptyPage is a page that is used to display a message and a button when there is no data to display.</para> - + - + - - <para>Creates a new FillButton.</para> - -Since: 1.0 + + <para>The action button of the empty page. Can connect to the clicked signal to get notified when the button is clicked. e.g. +action_button.clicked.connect&lpar;&lpar;&rpar; =&gt; { ... }&rpar;;</para> + + + + <para>Creates a new EmptyPage.</para> + + + + + + <para>Sets the title of the empty page.</para> + + + - + - - <para>The label of the button. </para> + + + + + + + + + + + + + + - - - - - - - - - - <para>An Iconic Button is used in a <type>HeBottomBar</type> to display an action.</para> - - - - - - - - <para>Constructs a new IconicButton.</para> - -Since: 1.0 + + + <para>Sets the description of the empty page.</para> + + + - + - - <para>The icon name to display. </para> + + + + + + + + + + + + + + - + - <para>The icon name to display.</para> + <para>Sets the icon of the empty page.</para> - + - + + + + + + + + + + + + + + - + + <para>Sets the illustration of the empty page.</para> + + + - + - + + <para>Sets the button of the empty page.</para> + +Since: 1.0 - + - + - + - + @@ -6079,12 +7962,12 @@ Since: 1.0 - + - + - + <para>A MiniContentBlock is a content block that is used to display content in a small area.</para> @@ -6586,35 +8469,6 @@ Since: 1.0 - - <para>An Outline button is a transparent FillButton with a border.</para> - - - - - - - - <para>Creates a new OutlineButton.</para> - -Since: 1.0 - - - - - - <para>The label of the button. </para> - - - - - - - - - - - <para>An OverlayButton is a widget that can be used to show action buttons above the widget that is being overlaid.</para> @@ -7051,35 +8905,6 @@ Since: 1.0 - - <para>A PillButton is a solid button with a label. It is more round and larger than a FillButton.</para> - - - - - - - - <para>Creates a new PillButton.</para> - -Since: 1.0 - - - - - - <para>The label of the button. </para> - - - - - - - - - - - <para>A Progressbar indicates the progress of some process and contains a disable-able Stop Indicator for accessibility purposes.</para> @@ -8931,47 +10756,6 @@ Since: 1.0 - - <para>A TextButton is a button that displays text. It has a transparent background.</para> - - - - - - - - <para>Creates a new TextButton.</para> - - - - - - <para>The text to display on the button. </para> - - - - - - <para>Creates a new TextButton from an icon.</para> - -Since: 1.0 - - - - - - <para>The icon to display on the button. </para> - - - - - - - - - - - <para>TextField is a <type>GtkEntry</type>-like subclass that is meant to be used in forms where input must be validated before the form can be submitted. It provides feedback to users about the state of input validation and keeps track of its own validation state. By default, input is @@ -9491,48 +11275,99 @@ passed to this constructor.</para> - - <para>A TintButton is similar to a FillButton, except that the color of the button has a tinted appearance. In addition, the TintButton also support -icons.</para> + + <para>A TipView is a helper widget for onboarding flow tips in an app&apos;s first launch.</para> - + - + + + + <para>The action button of the Tip.</para> + - - <para>Create a new TintButton.</para> + + <para>Creates a TipView.</para> - + - - <para>The text to display on the button. </para> - + + <para>The Tip to use. </para> + + + + <para>The TipViewStyle to use. </para> + - - <para>Create a new TintButton from an icon.</para> - -Since: 1.0 + + + + - + - - <para>The icon to display on the button. </para> - + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <para>Emitted when the Tip is closed by activating the close button.</para> + + + + - + - + - + <para>A Toast is a widget containing a quick little message for the user with an optional action button.</para> @@ -9744,10 +11579,11 @@ Since: 1.0 - + <para>A ViewDual is a view that displays two views side by side.</para> + - + @@ -9756,11 +11592,123 @@ Since: 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -9786,7 +11734,7 @@ Since: 1.0 - + <para>A ViewSubTitle is a view&apos;s subtitle.</para> @@ -9887,7 +11835,7 @@ Since: 1.0 - + <para>A ViewTitle is a widget that displays a view&apos;s title.</para> @@ -10064,8 +12012,8 @@ dark or light. Prior runs of the generate method should not affect the output of - - + + @@ -10086,8 +12034,8 @@ dark or light. Prior runs of the generate method should not affect the output of - - + + @@ -10114,8 +12062,8 @@ dark or light. Prior runs of the generate method should not affect the output of - - + + @@ -10223,6 +12171,19 @@ dark or light. Prior runs of the generate method should not affect the output of + + + + + + + + + + + + + diff --git a/fusebox/Cargo.toml b/fusebox/Cargo.toml index 54f914d..2723443 100644 --- a/fusebox/Cargo.toml +++ b/fusebox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fusebox" -version = "0.3.0" +version = "0.4.0" authors = ["Lleyton Gray "] edition = "2021" readme = "../README.md" @@ -57,4 +57,4 @@ version = "0.8" [dependencies.ffi] package = "fusebox-sys" path = './sys' -version = "0.3.0" +version = "0.4.0" diff --git a/fusebox/src/auto/versions.txt b/fusebox/src/auto/versions.txt index 4f41866..895a2c7 100644 --- a/fusebox/src/auto/versions.txt +++ b/fusebox/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) from -from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) diff --git a/fusebox/sys/Cargo.toml b/fusebox/sys/Cargo.toml index 3ffcdde..47e2199 100644 --- a/fusebox/sys/Cargo.toml +++ b/fusebox/sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fusebox-sys" -version = "0.3.0" +version = "0.4.0" authors = ["Lleyton Gray "] edition = "2021" build = "build.rs" diff --git a/fusebox/sys/build.rs b/fusebox/sys/build.rs index dd2f2db..900a4ac 100644 --- a/fusebox/sys/build.rs +++ b/fusebox/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #[cfg(not(docsrs))] diff --git a/fusebox/sys/src/lib.rs b/fusebox/sys/src/lib.rs index 2dac199..346c39d 100644 --- a/fusebox/sys/src/lib.rs +++ b/fusebox/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/fusebox/sys/tests/abi.rs b/fusebox/sys/tests/abi.rs index 2a23416..df803f2 100644 --- a/fusebox/sys/tests/abi.rs +++ b/fusebox/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #![cfg(unix)] diff --git a/fusebox/sys/tests/constant.c b/fusebox/sys/tests/constant.c index 7ac9e6b..0bac001 100644 --- a/fusebox/sys/tests/constant.c +++ b/fusebox/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #include "manual.h" diff --git a/fusebox/sys/tests/layout.c b/fusebox/sys/tests/layout.c index b3e6b1e..15c1521 100644 --- a/fusebox/sys/tests/layout.c +++ b/fusebox/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #include "manual.h" diff --git a/gir b/gir index cbffeb6..cec418b 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit cbffeb655c4817664d3f8ef5d1cc5dc69c0eed80 +Subproject commit cec418b457aa81ccaf6a8a2cf1b5cbd494a8fa55 diff --git a/gir-files b/gir-files index 6dc3ae6..4d11891 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 6dc3ae6d28206de8e5431ea09715406001695f19 +Subproject commit 4d1189172a70c6cd6cd8db4954d7cfed2af3983b diff --git a/libbismuth/Cargo.toml b/libbismuth/Cargo.toml index c26f4c9..52c7503 100644 --- a/libbismuth/Cargo.toml +++ b/libbismuth/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libbismuth" -version = "0.3.0" +version = "0.4.0" authors = ["Lleyton Gray "] edition = "2021" readme = "../README.md" @@ -57,4 +57,4 @@ version = "0.8" [dependencies.ffi] package = "libbismuth-sys" path = './sys' -version = "0.3.0" +version = "0.4.0" diff --git a/libbismuth/src/auto/versions.txt b/libbismuth/src/auto/versions.txt index 4f41866..895a2c7 100644 --- a/libbismuth/src/auto/versions.txt +++ b/libbismuth/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) from -from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) diff --git a/libbismuth/sys/Cargo.toml b/libbismuth/sys/Cargo.toml index 2855b85..d0ca767 100644 --- a/libbismuth/sys/Cargo.toml +++ b/libbismuth/sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libbismuth-sys" -version = "0.3.0" +version = "0.4.0" authors = ["Lleyton Gray "] edition = "2021" build = "build.rs" diff --git a/libbismuth/sys/build.rs b/libbismuth/sys/build.rs index dd2f2db..900a4ac 100644 --- a/libbismuth/sys/build.rs +++ b/libbismuth/sys/build.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #[cfg(not(docsrs))] diff --git a/libbismuth/sys/src/lib.rs b/libbismuth/sys/src/lib.rs index fbf8dc2..535c82c 100644 --- a/libbismuth/sys/src/lib.rs +++ b/libbismuth/sys/src/lib.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] diff --git a/libbismuth/sys/tests/abi.rs b/libbismuth/sys/tests/abi.rs index 04e877d..c4d9a9b 100644 --- a/libbismuth/sys/tests/abi.rs +++ b/libbismuth/sys/tests/abi.rs @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #![cfg(unix)] diff --git a/libbismuth/sys/tests/constant.c b/libbismuth/sys/tests/constant.c index 57e14be..46ad1b7 100644 --- a/libbismuth/sys/tests/constant.c +++ b/libbismuth/sys/tests/constant.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #include "manual.h" diff --git a/libbismuth/sys/tests/layout.c b/libbismuth/sys/tests/layout.c index a5f1cde..effd90b 100644 --- a/libbismuth/sys/tests/layout.c +++ b/libbismuth/sys/tests/layout.c @@ -1,6 +1,6 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48) +// Generated by gir (https://github.com/gtk-rs/gir @ cec418b457aa) // from -// from gir-files (https://github.com/gtk-rs/gir-files.git @ 6dc3ae6d2820) +// from gir-files (https://github.com/gtk-rs/gir-files.git @ 4d1189172a70) // DO NOT EDIT #include "manual.h" diff --git a/libhelium/Cargo.toml b/libhelium/Cargo.toml index d0dfd77..9c072f5 100644 --- a/libhelium/Cargo.toml +++ b/libhelium/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libhelium" -version = "0.3.0" +version = "0.4.0" authors = ["Lleyton Gray "] edition = "2021" readme = "../README.md" @@ -65,4 +65,4 @@ version = "0.8" [dependencies.ffi] package = "libhelium-sys" path = './sys' -version = "0.3.0" +version = "0.4.0" diff --git a/libhelium/Gir.toml b/libhelium/Gir.toml index 5f4cad2..417f066 100644 --- a/libhelium/Gir.toml +++ b/libhelium/Gir.toml @@ -1,5 +1,5 @@ [external_libraries] -Gio = {min_version = "2.66"} +Gio = { min_version = "2.66" } [options] girs_directories = ["../gir-files", "../"] @@ -15,138 +15,143 @@ single_version_file = true generate_builder = true trust_return_value_nullability = true -external_libraries = [ - "GLib", - "GObject", - "Gdk", - "GdkPixbuf", - "Gtk", - "Pango", -] +external_libraries = ["GLib", "GObject", "Gdk", "GdkPixbuf", "Gtk", "Pango"] generate = [ - "He.ColorRGBColor", - "He.ColorXYZColor", - "He.ColorLCHColor", - "He.Colors", - "He.DesktopDarkModeStrength", - "He.Bin", - "He.Button", - "He.ButtonContent", - "He.Window", - "He.DesktopColorScheme", - "He.AboutWindow", - "He.AboutWindowLicenses", - "He.AppBar", - "He.ApplicationWindow", - "He.Badge", - "He.Banner", - "He.BannerStyle", - "He.BottomBar", - "He.IconicButton", - "He.BottomBarPosition", - "He.Chip", - "He.ContentBlock", - "He.ContentBlockImage", - "He.ContentBlockImageCluster", - "He.ContentBlockImageClusterImagePosition", - "He.ContentList", - "He.TextButton", - "He.Dialog", - "He.TintButton", - "He.FillButton", - "He.DisclosureButton", - "He.PillButton", - "He.EmptyPage", - "He.MiniContentBlock", - "He.ModifierBadge", - "He.ModifierBadgeAlignment", - "He.NavigationRail", - "He.OutlineButton", - "He.OverlayButtonSize", - "He.OverlayButton", - "He.OverlayButtonAlignment", - "He.SettingsPage", - "He.SettingsWindow", - "He.SettingsRow", - "He.SettingsList", - "He.SideBar", - "He.Tab", - "He.TabPage", - "He.TabSwitcher", - "He.TabSwitcherTabBarBehavior", - "He.Toast", - "He.ViewAux", - "He.View", - "He.ViewDual", - "He.ViewMono", - "He.ViewSubTitle", - "He.ViewSwitcher", - "He.ViewTitle", - "He.ViewChooser", - "He.WelcomeScreen", - "He.SegmentedButton", - "He.DesktopEnsorScheme", - "He.ChipGroup", - "He.DatePicker", - "He.OverlayButtonTypeButton", - "He.SwitchBar", - "He.TimePicker", - "He.Divider", - "He.NavigationSection", - "He.Slider", - "He.TextField", - "He.ProgressBar", - "He.Switch" + "He.ColorRGBColor", + "He.ColorXYZColor", + "He.ColorLCHColor", + "He.Colors", + "He.Bin", + "He.Button", + "He.ButtonContent", + "He.Window", + "He.DesktopColorScheme", + "He.AboutWindow", + "He.AboutWindowLicenses", + "He.AppBar", + "He.ApplicationWindow", + "He.Badge", + "He.Banner", + "He.BannerStyle", + "He.BottomBar", + "He.BottomBarPosition", + "He.Chip", + "He.ContentBlock", + "He.ContentBlockImage", + "He.ContentBlockImageCluster", + "He.ContentBlockImageClusterImagePosition", + "He.ContentList", + "He.Dialog", + "He.EmptyPage", + "He.MiniContentBlock", + "He.ModifierBadge", + "He.ModifierBadgeAlignment", + "He.NavigationRail", + "He.OverlayButtonSize", + "He.OverlayButton", + "He.OverlayButtonAlignment", + "He.SettingsPage", + "He.SettingsWindow", + "He.SettingsRow", + "He.SettingsList", + "He.SideBar", + "He.Tab", + "He.TabPage", + "He.TabSwitcher", + "He.TabSwitcherTabBarBehavior", + "He.Toast", + "He.ViewAux", + "He.View", + "He.ViewDual", + "He.ViewMono", + "He.ViewSubTitle", + "He.ViewSwitcher", + "He.ViewTitle", + "He.ViewChooser", + "He.WelcomeScreen", + "He.SegmentedButton", + "He.DesktopEnsorScheme", + "He.ChipGroup", + "He.DatePicker", + "He.OverlayButtonTypeButton", + "He.SwitchBar", + "He.TimePicker", + "He.Divider", + "He.NavigationSection", + "He.Slider", + "He.TextField", + "He.ProgressBar", + "He.Switch", + "He.AnimationState", + "He.Easing", + "He.TipViewStyle", + "He.AnimationTarget", + "He.CallbackAnimationTarget", + "He.PropertyAnimationTarget", + "He.Animation", + "He.SpringParams", + "He.SpringAnimation", + "He.TimedAnimation", + "He.Dropdown", + "He.BottomSheet", + "He.Tip", + # TODO: why can't this generate? + # "He.TipView", + "He.AnimationTargetFunc", ] manual = [ - "Gtk.ApplicationWindow", - "Gtk.Application", - "Gtk.Orientation", - "Gtk.ListBoxRow", - "Gio.Application", - "Gio.ActionGroup", - "Gio.ActionMap", - "Gio.ApplicationFlags", - "Gtk.Widget", - "Gtk.Accessible", - "Gtk.Buildable", - "Gtk.ConstraintTarget", - "Gtk.Button", - "Gtk.Actionable", - "Gtk.Window", - "Gtk.Native", - "Gtk.Root", - "Gtk.ShortcutManager", - "Gtk.Stack", - "GObject.Object", - "GObject.ParamSpec", - "GObject.Value", - "Gtk.ScrolledWindow", - "Gtk.Builder", - "Gio.MenuModel", - "Gio.Icon", - "Gdk.Paintable", - "Gio.Menu", - "Gio.SimpleActionGroup", - "GObject.BoxedCopyFunc", - "GLib.DestroyNotify", - "Gdk.RGBA", - "Gtk.Align", - "GLib.Variant", - "Gtk.ToggleButton", - "Gtk.Entry", - "Gtk.CellEditable", - "Gtk.Editable", - "Gtk.Box", - "Gtk.Orientable", - "Gtk.Text", - "GLib.DateTime", - "Gtk.SingleSelection", - "Gio.AsyncResult", - "Gio.AsyncReadyCallback", - "GLib.HashTable" + "Gtk.ApplicationWindow", + "Gtk.Application", + "Gtk.Orientation", + "Gtk.ListBoxRow", + "Gio.Application", + "Gio.ActionGroup", + "Gio.ActionMap", + "Gio.ApplicationFlags", + "Gtk.Widget", + "Gtk.Accessible", + "Gtk.Buildable", + "Gtk.ConstraintTarget", + "Gtk.Button", + "Gtk.Actionable", + "Gtk.Window", + "Gtk.Native", + "Gtk.Root", + "Gtk.ShortcutManager", + "Gtk.Stack", + "GObject.Object", + "GObject.ParamSpec", + "GObject.Value", + "Gtk.ScrolledWindow", + "Gtk.Builder", + "Gio.MenuModel", + "Gio.Icon", + "Gdk.Paintable", + "Gio.Menu", + "Gio.SimpleActionGroup", + "GObject.BoxedCopyFunc", + "GLib.DestroyNotify", + "Gdk.RGBA", + "Gtk.Align", + "GLib.Variant", + "Gtk.ToggleButton", + "Gtk.Entry", + "Gtk.CellEditable", + "Gtk.Editable", + "Gtk.Box", + "Gtk.Orientable", + "Gtk.Text", + "GLib.DateTime", + "Gtk.SingleSelection", + "Gio.AsyncResult", + "Gio.AsyncReadyCallback", + "GLib.HashTable", + "GLib.Regex", + "Gtk.Grid", + "Gtk.DropDown", + "Pango.EllipsizeMode", ] [[object]] @@ -154,23 +159,23 @@ name = "He.Application" status = "generate" builder_postprocess = "Application::register_startup_hook(&ret);" trait_name = "HeApplicationExt" - [[object.function]] - name = "new" - manual = true - [[object.function]] - name = "set_default_accent_color" - manual = true +[[object.function]] +name = "new" +manual = true +[[object.function]] +name = "set_default_accent_color" +manual = true [[object]] name = "He.Desktop" status = "generate" - [[object.function]] - name = "set_accent_color" - ignore = true +[[object.function]] +name = "set_accent_color" +ignore = true [[object]] name = "He.Avatar" status = "generate" - [[object.function]] - name = "new" # the status parameter is nullable/optional (which doesn't make much sense) - manual = true +[[object.function]] +name = "new" # the status parameter is nullable/optional (which doesn't make much sense) +manual = true diff --git a/libhelium/src/auto/animation.rs b/libhelium/src/auto/animation.rs new file mode 100644 index 0000000..07ea87e --- /dev/null +++ b/libhelium/src/auto/animation.rs @@ -0,0 +1,205 @@ +// This file was generated by gir (https://github.com/gtk-rs/gir) +// from +// from gir-files (https://github.com/gtk-rs/gir-files.git) +// DO NOT EDIT + +use crate::{ffi,AnimationState,AnimationTarget}; +use glib::{prelude::*,signal::{connect_raw, SignalHandlerId},translate::*}; +use std::{boxed::Box as Box_}; + +glib::wrapper! { + #[doc(alias = "HeAnimation")] + pub struct Animation(Object); + + match fn { + type_ => || ffi::he_animation_get_type(), + } +} + +impl Animation { + pub const NONE: Option<&'static Animation> = None; + +} + +mod sealed { + pub trait Sealed {} + impl> Sealed for T {} +} + +pub trait AnimationExt: IsA + sealed::Sealed + 'static { + #[doc(alias = "he_animation_pause")] + fn pause(&self) { + unsafe { + ffi::he_animation_pause(self.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_play")] + fn play(&self) { + unsafe { + ffi::he_animation_play(self.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_reset")] + fn reset(&self) { + unsafe { + ffi::he_animation_reset(self.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_resume")] + fn resume(&self) { + unsafe { + ffi::he_animation_resume(self.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_skip")] + fn skip(&self) { + unsafe { + ffi::he_animation_skip(self.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_estimate_duration")] + fn estimate_duration(&self) -> u32 { + unsafe { + ffi::he_animation_estimate_duration(self.as_ref().to_glib_none().0) + } + } + + #[doc(alias = "he_animation_calculate_value")] + fn calculate_value(&self, t: u32) -> f64 { + unsafe { + ffi::he_animation_calculate_value(self.as_ref().to_glib_none().0, t) + } + } + + #[doc(alias = "he_animation_get_state")] + #[doc(alias = "get_state")] + fn state(&self) -> AnimationState { + unsafe { + from_glib(ffi::he_animation_get_state(self.as_ref().to_glib_none().0)) + } + } + + #[doc(alias = "he_animation_set_state")] + fn set_state(&self, value: AnimationState) { + unsafe { + ffi::he_animation_set_state(self.as_ref().to_glib_none().0, value.into_glib()); + } + } + + #[doc(alias = "he_animation_get_target")] + #[doc(alias = "get_target")] + fn target(&self) -> AnimationTarget { + unsafe { + from_glib_none(ffi::he_animation_get_target(self.as_ref().to_glib_none().0)) + } + } + + #[doc(alias = "he_animation_set_target")] + fn set_target(&self, value: &impl IsA) { + unsafe { + ffi::he_animation_set_target(self.as_ref().to_glib_none().0, value.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_get_widget")] + #[doc(alias = "get_widget")] + fn widget(&self) -> gtk::Widget { + unsafe { + from_glib_none(ffi::he_animation_get_widget(self.as_ref().to_glib_none().0)) + } + } + + #[doc(alias = "he_animation_set_widget")] + fn set_widget(&self, value: &impl IsA) { + unsafe { + ffi::he_animation_set_widget(self.as_ref().to_glib_none().0, value.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_animation_get_avalue")] + #[doc(alias = "get_avalue")] + fn avalue(&self) -> f64 { + unsafe { + ffi::he_animation_get_avalue(self.as_ref().to_glib_none().0) + } + } + + #[doc(alias = "he_animation_set_avalue")] + fn set_avalue(&self, value: f64) { + unsafe { + ffi::he_animation_set_avalue(self.as_ref().to_glib_none().0, value); + } + } + + #[doc(alias = "done")] + fn connect_done(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn done_trampoline, F: Fn(&P) + 'static>(this: *mut ffi::HeAnimation, f: glib::ffi::gpointer) { + let f: &F = &*(f as *const F); + f(Animation::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw(self.as_ptr() as *mut _, b"done\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(done_trampoline:: as *const ())), Box_::into_raw(f)) + } + } + + #[doc(alias = "state")] + fn connect_state_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_state_trampoline, F: Fn(&P) + 'static>(this: *mut ffi::HeAnimation, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) { + let f: &F = &*(f as *const F); + f(Animation::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw(self.as_ptr() as *mut _, b"notify::state\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_state_trampoline:: as *const ())), Box_::into_raw(f)) + } + } + + #[doc(alias = "target")] + fn connect_target_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_target_trampoline, F: Fn(&P) + 'static>(this: *mut ffi::HeAnimation, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) { + let f: &F = &*(f as *const F); + f(Animation::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw(self.as_ptr() as *mut _, b"notify::target\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_target_trampoline:: as *const ())), Box_::into_raw(f)) + } + } + + #[doc(alias = "widget")] + fn connect_widget_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_widget_trampoline, F: Fn(&P) + 'static>(this: *mut ffi::HeAnimation, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) { + let f: &F = &*(f as *const F); + f(Animation::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw(self.as_ptr() as *mut _, b"notify::widget\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_widget_trampoline:: as *const ())), Box_::into_raw(f)) + } + } + + #[doc(alias = "avalue")] + fn connect_avalue_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_avalue_trampoline, F: Fn(&P) + 'static>(this: *mut ffi::HeAnimation, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) { + let f: &F = &*(f as *const F); + f(Animation::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw(self.as_ptr() as *mut _, b"notify::avalue\0".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(notify_avalue_trampoline:: as *const ())), Box_::into_raw(f)) + } + } +} + +impl> AnimationExt for O {} diff --git a/libhelium/src/auto/animation_target.rs b/libhelium/src/auto/animation_target.rs new file mode 100644 index 0000000..4274d4a --- /dev/null +++ b/libhelium/src/auto/animation_target.rs @@ -0,0 +1,37 @@ +// This file was generated by gir (https://github.com/gtk-rs/gir) +// from +// from gir-files (https://github.com/gtk-rs/gir-files.git) +// DO NOT EDIT + +use crate::{ffi}; +use glib::{prelude::*,translate::*}; + +glib::wrapper! { + #[doc(alias = "HeAnimationTarget")] + pub struct AnimationTarget(Object); + + match fn { + type_ => || ffi::he_animation_target_get_type(), + } +} + +impl AnimationTarget { + pub const NONE: Option<&'static AnimationTarget> = None; + +} + +mod sealed { + pub trait Sealed {} + impl> Sealed for T {} +} + +pub trait AnimationTargetExt: IsA + sealed::Sealed + 'static { + #[doc(alias = "he_animation_target_set_value")] + fn set_value(&self, value: f64) { + unsafe { + ffi::he_animation_target_set_value(self.as_ref().to_glib_none().0, value); + } + } +} + +impl> AnimationTargetExt for O {} diff --git a/libhelium/src/auto/app_bar.rs b/libhelium/src/auto/app_bar.rs index c1de843..992163a 100644 --- a/libhelium/src/auto/app_bar.rs +++ b/libhelium/src/auto/app_bar.rs @@ -238,6 +238,20 @@ pub trait AppBarExt: IsA + sealed::Sealed + 'static { } } + #[doc(alias = "he_app_bar_append_toggle")] + fn append_toggle(&self, child: &impl IsA) { + unsafe { + ffi::he_app_bar_append_toggle(self.as_ref().to_glib_none().0, child.as_ref().to_glib_none().0); + } + } + + #[doc(alias = "he_app_bar_append_menu")] + fn append_menu(&self, child: &impl IsA) { + unsafe { + ffi::he_app_bar_append_menu(self.as_ref().to_glib_none().0, child.as_ref().to_glib_none().0); + } + } + #[doc(alias = "he_app_bar_remove")] fn remove(&self, child: &impl IsA) { unsafe { diff --git a/libhelium/src/auto/bottom_bar.rs b/libhelium/src/auto/bottom_bar.rs index 969075a..0b0fbe1 100644 --- a/libhelium/src/auto/bottom_bar.rs +++ b/libhelium/src/auto/bottom_bar.rs @@ -3,7 +3,7 @@ // from gir-files (https://github.com/gtk-rs/gir-files.git) // DO NOT EDIT -use crate::{ffi,Bin,BottomBarPosition,IconicButton}; +use crate::{ffi,Bin,BottomBarPosition,Button}; use glib::{prelude::*,signal::{connect_raw, SignalHandlerId},translate::*}; use std::{boxed::Box as Box_}; @@ -220,35 +220,35 @@ mod sealed { pub trait BottomBarExt: IsA + sealed::Sealed + 'static { #[doc(alias = "he_bottom_bar_append_button")] - fn append_button(&self, icon: &impl IsA, position: BottomBarPosition) { + fn append_button(&self, icon: &impl IsA