mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00

sixtyfps::cbindgen_private Having private in the name makes it clear that this is ... private, and cbindgen helps remember that it's generated.
31 lines
685 B
C++
31 lines
685 B
C++
/* LICENSE BEGIN
|
|
|
|
This file is part of the Sixty FPS Project
|
|
|
|
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
LICENSE END */
|
|
#pragma once
|
|
#include <string_view>
|
|
#include "sixtyfps_resource_internal.h"
|
|
#include "sixtyfps_string.h"
|
|
|
|
namespace sixtyfps {
|
|
|
|
struct Resource
|
|
{
|
|
public:
|
|
using Tag = cbindgen_private::types::Resource::Tag;
|
|
|
|
Resource() : data(Data::None()) { }
|
|
Resource(const SharedString &file_path) : data(Data::AbsoluteFilePath(file_path)) { }
|
|
|
|
private:
|
|
using Data = cbindgen_private::types::Resource;
|
|
Data data;
|
|
};
|
|
|
|
}
|