44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "moonplasma/desktop/lib/ui"
|
|
|
|
import {
|
|
"moonplasma/desktop/interface/moonplasma/desktop/types",
|
|
}
|
|
|
|
// Values
|
|
pub fn circle(Int32, Int32, Int32, @types.Color, filled? : Bool) -> @types.DrawOp
|
|
|
|
pub fn color(Int32, Int32, Int32, Int32) -> @types.Color
|
|
|
|
pub fn contains(@types.Rect, @types.Point) -> Bool
|
|
|
|
pub fn fill_rect(@types.Rect, @types.Color, radius? : Int32) -> @types.DrawOp
|
|
|
|
pub fn lerp_color(@types.Color, @types.Color, Int32, Int32) -> @types.Color
|
|
|
|
pub fn line(Int32, Int32, Int32, Int32, @types.Color, width? : Int32) -> @types.DrawOp
|
|
|
|
pub fn rect(Int32, Int32, Int32, Int32) -> @types.Rect
|
|
|
|
pub fn rect_h(@types.Rect) -> Int32
|
|
|
|
pub fn rect_w(@types.Rect) -> Int32
|
|
|
|
pub fn size(Int32, Int32) -> @types.Size
|
|
|
|
pub fn stroke_rect(@types.Rect, @types.Color, width? : Int32, radius? : Int32) -> @types.DrawOp
|
|
|
|
pub fn text(Int32, Int32, String, Int32, @types.Color, align? : @types.TextAlign, bold? : Bool) -> @types.DrawOp
|
|
|
|
pub fn text_width(String, Int32) -> Int32
|
|
|
|
pub fn with_alpha(@types.Color, Int32) -> @types.Color
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|