/* * Copyright (C) Artsiom D. * Copyright (C) shit-co.de */ #include #include #include #include "box.h" #include "ui.h" int main(void) { struct box *ui, *top, *bottom, *left, *right, *buy, *sell, *scam, *title, *desc; ui_init(); title = new_button_box("Bitcoin"); desc = new_button_box("A crypto-scam :-)"); top = new_vertical_box(); top->length = 2; top->children[0] = title; top->children[1] = desc; left = new_chart_box(); left->fills = 5; buy = new_button_box("buy"); buy->color = UI_GREEN; sell = new_button_box("sell"); sell->color = UI_RED; scam = new_button_box("scam"); sell->color = UI_BLUE; right = new_vertical_box(); right->length = 3; right->children[0] = buy; right->children[1] = sell; right->children[2] = scam; bottom = new_horizontal_box(); bottom->fills = 3; bottom->length = 2; bottom->children[0] = left; bottom->children[1] = right; ui = new_vertical_box(); ui->length = 2; ui->children[0] = top; ui->children[1] = bottom; draw_box(ui, 0, 0, ui_width(), 40); ui_refresh(); sleep(300); ui_end(); }