Sha256: de4b8a6faefb26d13af73df3343ab24edd0e1d347dc07e9e920d82bd6b67d857

Contents?: true

Size: 848 Bytes

Versions: 6

Compression:

Stored size: 848 Bytes

Contents

# spike

# frozen_string_literal: true

require "libui"
require "debug"

# Breakup
require_relative "colors"
require_relative "stack"
require_relative "flow"
require_relative "alert"
require_relative "button"
require_relative "para"
require_relative "core"

UI = LibUI

Shoes = Scarpe

Shoes.app(title: "Hello world!", height: 1000, width: 1000) do
  title "Hello world!"
  para "This is a paragraph", size: 10
  flow do
    stack do
      inscription "Check out this paragraph",
        stroke: red,
        weight: "ultralight",
        fill: yellow
      banner "I'm just a fish though",
        underline: "single",
        italic: true,
        weight: "bold",
        stroke: darkred,
        fill: aquamarine
    end
  end
  stack do
    flow do
      button("Flimflam") do
        alert "You clicked the button"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 spikes/libui/libui.rb
scarpe-0.3.0 spikes/libui/libui.rb
scarpe-0.2.2 spikes/libui/libui.rb
lacci-0.2.1 lib/scarpe/libui/libui.rb
scarpe-0.2.1 lib/scarpe/libui/libui.rb
scarpe-0.2.0 lib/scarpe/libui/libui.rb