Skip to content

AUrl#

Uniform Resource Locator implementation.

Header:#include <AUI/Url/AUrl.h>
CMake:aui_link(my_target PUBLIC aui::core)

Detailed Description#

Handles standard web url (schema://host:port/path).

Empty schema is mapped to the assets file. In example, ":icon.svg" references to icon.svg file in your assets. See aui_compile_assets() and examples of asset usage.

Examples#

examples/ui/views/src/ExampleWindow.cpp

Views Example — All-in-one views building example.

                    _new<ADrawableView>(IDrawable::fromUrl(":img/gf.gif")) AUI_OVERRIDE_STYLE { FixedSize { 100_dp } },   // gif from https://tenor.com/view/cat-gif-26024730
                  },
                  Vertical {
                    _new<ALabel>("Animated WebP support!"),
                    _new<ADrawableView>(AUrl(":img/anim.webp")) AUI_OVERRIDE_STYLE { FixedSize { 320_px, 240_px } } } } }),
            "Images");

        it->addTab(
            Vertical {
              _new<ALabel>("Horizontal splitter"),