M1: style — Style/StyleRefinement, generated Styled API, font, card example (#2)
This commit was merged in pull request #2.
This commit is contained in:
1 parent
8c0685fe01
commit
ae3fd7da55
26 files changed
+45666
-30
No files matched your search
@@ -0,0 +1,72 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "experiments/gpui/font"
|
||||
|
||||
import {
|
||||
"moonbitlang/core/debug",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn font(String) -> Font
|
||||
|
||||
pub let font_weight_black : FontWeight
|
||||
|
||||
pub let font_weight_bold : FontWeight
|
||||
|
||||
pub let font_weight_extra_bold : FontWeight
|
||||
|
||||
pub let font_weight_extra_light : FontWeight
|
||||
|
||||
pub let font_weight_light : FontWeight
|
||||
|
||||
pub let font_weight_medium : FontWeight
|
||||
|
||||
pub let font_weight_normal : FontWeight
|
||||
|
||||
pub let font_weight_semibold : FontWeight
|
||||
|
||||
pub let font_weight_thin : FontWeight
|
||||
|
||||
pub let system_ui_font : String
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
#derive(Eq, Hash, @debug.Debug)
|
||||
pub(all) struct Font {
|
||||
family : String
|
||||
features : FontFeatures
|
||||
fallbacks : FontFallbacks?
|
||||
weight : FontWeight
|
||||
style : FontStyle
|
||||
}
|
||||
pub fn Font::bold(Self) -> Self
|
||||
pub fn Font::italic(Self) -> Self
|
||||
pub impl Default for Font
|
||||
|
||||
#derive(Default, Eq, Hash, @debug.Debug)
|
||||
pub(all) struct FontFallbacks(Array[String])
|
||||
pub fn FontFallbacks::fallback_list(Self) -> Array[String]
|
||||
pub fn FontFallbacks::from_fonts(Array[String]) -> Self
|
||||
|
||||
#derive(Default, Eq, Hash, @debug.Debug)
|
||||
pub(all) struct FontFeatures(Array[(String, Int32)])
|
||||
pub fn FontFeatures::disable_ligatures() -> Self
|
||||
pub fn FontFeatures::is_calt_enabled(Self) -> Bool?
|
||||
pub fn FontFeatures::tag_value_list(Self) -> Array[(String, Int32)]
|
||||
|
||||
#derive(Eq, Hash, @debug.Debug)
|
||||
pub(all) enum FontStyle {
|
||||
Normal
|
||||
Italic
|
||||
Oblique
|
||||
}
|
||||
pub impl Default for FontStyle
|
||||
|
||||
#derive(Compare, Eq, Hash, @debug.Debug)
|
||||
pub(all) struct FontWeight(Double)
|
||||
pub impl Default for FontWeight
|
||||
pub impl Show for FontWeight
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
Reference in new issue
Block a user