コード例 #1
0
ファイル: textedit_frontend.c プロジェクト: scanlime/picogui
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
ファイル: panel.c プロジェクト: static-void/picogui
/* 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);
}