shithub: choc

ref: aaf96ab501f948df13f78fdf072379884d2d3f2e
dir: /textscreen/txt_widget.c/

View raw version

#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);
}