示例#1
0
void gli_window_rearrange(window_t *win, grect_t *box)
{
    switch (win->type) {
        case wintype_Blank:
            win_blank_rearrange(win, box);
            break;
        case wintype_Pair:
            win_pair_rearrange(win, box);
            break;
        case wintype_TextGrid:
            win_textgrid_rearrange(win, box);
            break;
        case wintype_TextBuffer:
            win_textbuffer_rearrange(win, box);
            break;
    }
}
示例#2
0
void gli_window_rearrange(window_t *win, grect_t *box, data_metrics_t *metrics)
{
    geometry_changed = TRUE;

    switch (win->type) {
        case wintype_Blank:
            win_blank_rearrange(win, box, metrics);
            break;
        case wintype_Pair:
            win_pair_rearrange(win, box, metrics);
            break;
        case wintype_TextGrid:
            win_textgrid_rearrange(win, box, metrics);
            break;
        case wintype_TextBuffer:
            win_textbuffer_rearrange(win, box, metrics);
            break;
    }
}