summaryrefslogtreecommitdiff
path: root/textscreen/txt_widget.c
blob: b0576a2688fc11c88e01dd3cf7c016a66e41cb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "txt_widget.h"

int TXT_WidgetWidth(txt_widget_t *widget)
{
    return widget->widget_class->size_calc(widget);
}

void TXT_DrawWidget(txt_widget_t *widget, int w, int selected)
{
    widget->widget_class->drawer(widget, w, selected);
}

void TXT_DestroyWidget(txt_widget_t *widget)
{
    widget->widget_class->destructor(widget);
}