You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
722 B
40 lines
722 B
require 'squib/commands/command' |
|
require 'squib/commands/font' |
|
require 'squib/commands/set_font' |
|
require 'squib/queue' |
|
|
|
|
|
################## |
|
### PUBLIC API ### |
|
################## |
|
|
|
def deck(width:, height:, cards: 1) |
|
|
|
end |
|
|
|
def font(type: , size: 12, **options) |
|
Squib::queue_command Squib::Commands::Font.new(type,size,options) |
|
end |
|
|
|
def set_font(type: 'Arial', size: 12, **options) |
|
Squib::queue_command Squib::Commands::SetFont.new(type,size,options) |
|
end |
|
|
|
def text(range=:all, str: , font: :use_set, x: 0, y: 0, **options) |
|
end |
|
|
|
def image(range=:all, file: , x: 0, y: 0) |
|
end |
|
|
|
def load_csv(file:, header: true) |
|
end |
|
|
|
def data(field) |
|
end |
|
|
|
def render |
|
vv = VerifyVisitor.new |
|
CMDS.each do |cmd| |
|
cmd.accept(vv) |
|
end |
|
end |