src/iup_colordlg.c
static void iColorDlgInit_Defaults(IcolorDlgData* colordlg_data)
{
  Ihandle* box;
  int i;

  IupSetAttribute(colordlg_data->color_browser, "RGB", "0 0 0");

  IupSetAttribute(colordlg_data->red_txt,   "VALUE", "0");
  IupSetAttribute(colordlg_data->green_txt, "VALUE", "0");
  IupSetAttribute(colordlg_data->blue_txt,  "VALUE", "0");

  IupSetAttribute(colordlg_data->hue_txt,        "VALUE", "0");
  IupSetAttribute(colordlg_data->saturation_txt, "VALUE", "0");
  IupSetAttribute(colordlg_data->intensity_txt,  "VALUE", "0");
  
  IupSetAttribute(colordlg_data->colorhex_txt, "VALUE", "#000000");

  colordlg_data->alpha = 255;
  IupSetAttribute(colordlg_data->alpha_val, "VALUE", "255");
  IupSetAttribute(colordlg_data->alpha_txt, "VALUE", "255");

  box = IupGetParent(colordlg_data->alpha_val);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");

  box = IupGetParent(colordlg_data->colortable_cbar);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");

  box = IupGetParent(colordlg_data->colorhex_txt);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");

  for (i = 0; i < COLORTABLE_MAX; i++)
    IupSetAttributeId(colordlg_data->colortable_cbar, "CELL", i, default_colortable_cells[i]);
}
/***********************************************\
* Initializes the default values to the element *
\***********************************************/
\
Initializes the default values to the element
\
\ Initializes the default values to the element \
static void iColorDlgInit_Defaults(IcolorDlgData* colordlg_data)
{
  Ihandle* box;
  int i;
  IupSetAttribute(colordlg_data->color_browser, "RGB", "0 0 0");
  IupSetAttribute(colordlg_data->red_txt,   "VALUE", "0");
  IupSetAttribute(colordlg_data->green_txt, "VALUE", "0");
  IupSetAttribute(colordlg_data->blue_txt,  "VALUE", "0");
  IupSetAttribute(colordlg_data->hue_txt,        "VALUE", "0");
  IupSetAttribute(colordlg_data->saturation_txt, "VALUE", "0");
  IupSetAttribute(colordlg_data->intensity_txt,  "VALUE", "0");
  IupSetAttribute(colordlg_data->colorhex_txt, "VALUE", "#000000");
  colordlg_data->alpha = 255;
  IupSetAttribute(colordlg_data->alpha_val, "VALUE", "255");
  IupSetAttribute(colordlg_data->alpha_txt, "VALUE", "255");
  box = IupGetParent(colordlg_data->alpha_val);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");
  box = IupGetParent(colordlg_data->colortable_cbar);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");
  box = IupGetParent(colordlg_data->colorhex_txt);
  IupSetAttribute(box, "FLOATING", "YES");
  IupSetAttribute(box, "VISIBLE", "NO");
  for (i = 0; i < COLORTABLE_MAX; i++)
    IupSetAttributeId(colordlg_data->colortable_cbar, "CELL", i, default_colortable_cells[i]);
}
static void iColorDlgInit_Defaults ( IcolorDlgData * colordlg_data ) { Ihandle * box ; int i ; IupSetAttribute ( colordlg_data -> color_browser , " " , " " ) ; IupSetAttribute ( colordlg_data -> red_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> green_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> blue_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> hue_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> saturation_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> intensity_txt , " " , " " ) ; IupSetAttribute ( colordlg_data -> colorhex_txt , " " , " " ) ; colordlg_data -> alpha = 255 ; IupSetAttribute ( colordlg_data -> alpha_val , " " , " " ) ; IupSetAttribute ( colordlg_data -> alpha_txt , " " , " " ) ; box = IupGetParent ( colordlg_data -> alpha_val ) ; IupSetAttribute ( box , " " , " " ) ; IupSetAttribute ( box , " " , " " ) ; box = IupGetParent ( colordlg_data -> colortable_cbar ) ; IupSetAttribute ( box , " " , " " ) ; IupSetAttribute ( box , " " , " " ) ; box = IupGetParent ( colordlg_data -> colorhex_txt ) ; IupSetAttribute ( box , " " , " " ) ; IupSetAttribute ( box , " " , " " ) ; for ( i = 0 ; i < COLORTABLE_MAX ; i ++ ) IupSetAttributeId ( colordlg_data -> colortable_cbar , " " , i , default_colortable_cells [ i ] ) ; }
\
Initializes the default values to the element
\
\ Initializes the default values to the element \