mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
Renderer feature refactor
This commit is contained in:
parent
f2af8317a2
commit
3a807e46c1
36 changed files with 250 additions and 202 deletions
|
|
@ -725,6 +725,7 @@ pub struct EnabledFeatures {
|
|||
pub experimental: bool,
|
||||
pub backend_qt: bool,
|
||||
pub std: bool,
|
||||
pub renderer_software: bool,
|
||||
}
|
||||
|
||||
impl EnabledFeatures {
|
||||
|
|
@ -743,6 +744,9 @@ impl EnabledFeatures {
|
|||
if self.std {
|
||||
defines += "#define SLINT_FEATURE_STD\n";
|
||||
}
|
||||
if self.renderer_software {
|
||||
defines += "#define SLINT_FEATURE_RENDERER_SOFTWARE\n";
|
||||
}
|
||||
defines
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue