void mvpw_set_array_attr(mvp_widget_t *widget, mvpw_array_attr_t *attr) { widget->data.array.rows = attr->rows; widget->data.array.cols = attr->cols; widget->data.array.col_label_height = attr->col_label_height; widget->data.array.row_label_width = attr->row_label_width; widget->data.array.array_border = attr->array_border; widget->data.array.border_size = attr->border_size; widget->data.array.row_label_fg = attr->row_label_fg; widget->data.array.row_label_bg = attr->row_label_bg; widget->data.array.col_label_fg = attr->col_label_fg; widget->data.array.col_label_bg = attr->col_label_bg; widget->data.array.cell_fg = attr->cell_fg; widget->data.array.cell_bg = attr->cell_bg; widget->data.array.hilite_fg = attr->hilite_fg; widget->data.array.hilite_bg = attr->hilite_bg; widget->data.array.cell_rounded = attr->cell_rounded; if (widget->border_color != attr->array_border) { GrSetWindowBorderColor(widget->wid, attr->array_border); widget->border_color = attr->array_border; } widget->border_size = attr->border_size; mvpw_array_layout(widget); widget->data.array.dirty = 1; mvpw_expose(widget); }
/* * Here when a focus out event occurs. */ void do_focusout(GR_EVENT_GENERAL *gp) { if (gp->wid != w1) return; GrSetWindowBorderColor(w1, GRAY); }
/* * Here when a focus in event occurs. */ void do_focusin(GR_EVENT_GENERAL *gp) { if (gp->wid != w1) return; GrSetWindowBorderColor(w1, WHITE); }
/* * Here when a exit window event occurs. */ void do_exit(GR_EVENT_GENERAL *gp) { if (gp->wid != w5) return; GrSetWindowBorderColor(w5, GREEN); GrLowerWindow(w5); }
/* * Here when a enter window event occurs. */ void do_enter(GR_EVENT_GENERAL *gp) { if (gp->wid != w5) return; GrSetWindowBorderColor(w5, WHITE); GrRaiseWindow(w5); }