Program Listing for File slint_generated_public.h#

Return to documentation for file (cppdocs/generated_include/slint_generated_public.h)

#pragma once

/* Generated with cbindgen:0.26.0 */

#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
#include "slint_string.h"

#define SLINT_VERSION_MAJOR 1
#define SLINT_VERSION_MINOR 6
#define SLINT_VERSION_PATCH 0
#define SLINT_VERSION_STRING "1.6.0"

#define SLINT_FEATURE_INTERPRETER
#define SLINT_FEATURE_RENDERER_SOFTWARE
#define SLINT_FEATURE_RENDERER_SKIA
#define SLINT_FEATURE_GETTEXT



namespace slint {

enum class CloseRequestResponse : uint8_t {
    HideWindow = 0,
    KeepWindowShown = 1,
};

enum class GraphicsAPI : uint8_t {
    NativeOpenGL,
};

enum class RenderingState : uint8_t {
    RenderingSetup,
    BeforeRendering,
    AfterRendering,
    RenderingTeardown,
};

enum class SetRenderingNotifierError : uint8_t {
    Unsupported,
    AlreadySet,
};

struct Rgb8Pixel {
    uint8_t r;
    uint8_t g;
    uint8_t b;
friend bool operator==(const Rgb8Pixel&, const Rgb8Pixel&) = default;
};

struct Rgba8Pixel {
    uint8_t r;
    uint8_t g;
    uint8_t b;
    uint8_t a;
friend bool operator==(const Rgba8Pixel&, const Rgba8Pixel&) = default;
};

} // namespace slint