Poptart.Desktop

Desktop

application and window

Poptart.Desktop.Application โ€” Type
Application(; windows = UIWindow[Window(title="Title", frame=(x=0,y=0,frame...))],
              closenotify = Condition(),
              title::String="App",
              frame::NamedTuple{(:width,:height)} = (width=400, height=300),
              bgcolor = RGBA(0.10, 0.18, 0.24, 1))
source
Poptart.Desktop.Window โ€” Type
Window(; title::String="Title",
         frame::Union{NamedTuple{(:width,:height)}, NamedTuple{(:x,:y,:width,:height)}} = (width=400, height=300),
         items::Union{Vector{Any},Vector{<:UIControl}} = UIControl[],
         name::Union{Nothing,String}=nothing,
         show_window_closing_widget::Bool=true,
         flags=CImGui.ImGuiWindowFlags(0))
source

controls

layouts

plots

Poptart.Desktop.BarPlot โ€” Type
BarPlot(; values::Vector{Number}, [captions::Vector{String}], [label::String], [scale::NamedTuple{(:min_x,:max_x)}], [frame])
source
Poptart.Desktop.LinePlot โ€” Type
LinePlot(; values::AbstractVector, [label::String], [scale::NamedTuple{(:min, :max)}], [color::RGBA], [frame])
source

popups

Poptart.Desktop.Popup โ€” Type
Popup(; label::String = "", items::Vector{<:UIControl})

!!! Note: You must use a sync Button (`Button(async=false)`) to open a Popup.
source

events

custom