Пример #1
0
void textedit_build_scroll ( struct gropctxt *c,
                             unsigned short state,
                             struct widget *self ) {
    self->in->div->div->r.w = theme_lookup(PGTH_O_SCROLL_V,PGTH_P_WIDTH);
    self->in->div->div->r.x = self->in->div->preferred.w + self->in->div->r.x;
    
    exec_fillstyle(c,state,PGTH_P_BGFILL);
        
    c->defaultgropflags = PG_GROPF_TRANSLATE;
    
    if (DATA->thumb_size) {
        c->r.w = theme_lookup(PGTH_O_SCROLL_V,PGTH_P_WIDTH);
        c->r.h = DATA->thumb_size;
        c->r.y = DATA->thumb_top;
        exec_fillstyle(c,state,PGTH_P_OVERLAY);
    } 
}
Пример #2
0
/* Draw the border.fill from our main theme object */
void build_panel_border(struct gropctxt *c, u16 state, struct widget *self) {
  exec_fillstyle(c,DATA->bg->state,PGTH_P_BORDER_FILL);
}