I decided that using 4 SPACES is better than mixing with tabs.
This commit is contained in:
66
main.c
66
main.c
@@ -16,50 +16,46 @@
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
struct box *ui, *top, *bottom, *left, *right, *buy, *sell, *scam, *title, *desc;
|
||||
struct box *ui, *top, *bottom, *left, *right, *buy, *sell, *scam, *title, *desc;
|
||||
|
||||
ui_init();
|
||||
ui_init();
|
||||
|
||||
title = new_button_box("Bitcoin");
|
||||
desc = new_button_box("A crypto-scam :-)");
|
||||
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;
|
||||
top = new_vertical_box();
|
||||
append_box(top, title);
|
||||
append_box(top, desc);
|
||||
|
||||
left = new_chart_box();
|
||||
left->fills = 5;
|
||||
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;
|
||||
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;
|
||||
right = new_vertical_box();
|
||||
append_box(right, buy);
|
||||
append_box(right, sell);
|
||||
append_box(right, scam);
|
||||
|
||||
bottom = new_horizontal_box();
|
||||
bottom->fills = 3;
|
||||
bottom->length = 2;
|
||||
bottom->children[0] = left;
|
||||
bottom->children[1] = right;
|
||||
bottom = new_horizontal_box();
|
||||
bottom->fills = 3;
|
||||
append_box(bottom, left);
|
||||
append_box(bottom, right);
|
||||
|
||||
ui = new_vertical_box();
|
||||
ui->length = 2;
|
||||
ui->children[0] = top;
|
||||
ui->children[1] = bottom;
|
||||
ui = new_vertical_box();
|
||||
append_box(ui, top);
|
||||
append_box(ui, bottom);
|
||||
|
||||
draw_box(ui, 0, 0, ui_width(), 40);
|
||||
draw_box(ui, 0, 0, ui_width()-1, ui_height()-1);
|
||||
|
||||
ui_refresh();
|
||||
|
||||
sleep(300);
|
||||
ui_refresh();
|
||||
|
||||
sleep(300);
|
||||
|
||||
ui_end();
|
||||
ui_end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user