Exemplo n.º 1
0
Arquivo: gui.c Projeto: alxm/inimaker
void* gui_makeItem(const char* const text)
{
    Item* const i = malloc(sizeof(Item));

    i->text = a_str_dup(text);
    i->alpha = 0;

    return i;
}
Exemplo n.º 2
0
Arquivo: gui.c Projeto: alxm/inimaker
void gui_consoleLine(const int font, const char* const text)
{
    printf("%s\n", text);

    Line* const line = malloc(sizeof(Line));

    line->font = font;
    line->text = a_str_dup(text);

    a_list_addLast(lines, line);

    if(a_list_size(lines) > CONSOLE_LINES) {
        free(a_list_pop(lines));
    }

    gui_draw(NULL);
    a_screen_show();
}
Exemplo n.º 3
0
void a_menu_addTitle(Menu* const m, const char* const t)
{
    m->title = a_str_dup(t);
}
Exemplo n.º 4
0
Arquivo: gui.c Projeto: alxm/inimaker
void gui_setCurrentTask(const char* const text)
{
    currentTask = a_str_dup(text);
}