Exemplo n.º 1
0
void _GGroup_Init(void) {
    if ( ggroup_inited )
return;
    _GGadgetCopyDefaultBox(&_GGroup_LineBox);
    _GGadgetCopyDefaultBox(&group_box);
    group_box.border_type = _GGroup_LineBox.border_type = bt_engraved;
    group_box.border_shape = _GGroup_LineBox.border_shape = bs_rect;
    group_box.padding = _GGroup_LineBox.padding = 0;
    /*group_box.flags = _GGroup_LineBox.flags = 0;*/
    group_box.main_background = COLOR_TRANSPARENT;
    group_box.disabled_background = COLOR_TRANSPARENT;
    _GGadgetInitDefaultBox("GLine.",&_GGroup_LineBox,NULL);
    _GGadgetInitDefaultBox("GGroup.",&group_box,NULL);
    ggroup_inited = true;
}
Exemplo n.º 2
0
static void GTabSetInit() {

    if ( gtabset_inited )
return;

    GGadgetInit();

    _GGadgetCopyDefaultBox(&gtabset_box);
    gtabset_box.border_width = 1; gtabset_box.border_shape = bs_rect;
    /*gtabset_box.flags = 0;*/
    gtabset_font = _GGadgetInitDefaultBox("GTabSet.",&gtabset_box,NULL);

    gvtabset_box = gtabset_box; /* needs this to figure inheritance */
    _GGadgetInitDefaultBox("GVTabSet.",&gvtabset_box,NULL);

    gtabset_inited = true;
}
Exemplo n.º 3
0
static void GScrollBarInit() {
    _GGadgetCopyDefaultBox(&scrollbar_box);
    _GGadgetCopyDefaultBox(&thumb_box);
    scrollbar_box.border_type = bt_lowered;
    scrollbar_box.border_width = 1;
    scrollbar_box.padding = 0;
    scrollbar_box.flags |= box_foreground_border_outer;
    scrollbar_box.main_background = GDrawColorBrighten(scrollbar_box.main_background, 0x10);
    thumb_box.main_background = GDrawColorDarken(thumb_box.main_background,0x8);
    thumb_box.border_width = 1;
    thumb_box.padding = 0;
    _GGadgetInitDefaultBox("GScrollBar.",&scrollbar_box,NULL);
    _GGadgetInitDefaultBox("GScrollBarThumb.",&thumb_box,NULL);
    _GScrollBar_Width = GResourceFindInt("GScrollBar.Width",_GScrollBar_Width);
    _GScrollBar_StartTime = GResourceFindInt("GScrollBar.StartupTime",_GScrollBar_StartTime);
    _GScrollBar_RepeatTime = GResourceFindInt("GScrollBar.RepeatTime",_GScrollBar_RepeatTime);
    gscrollbar_inited = true;
}