mod/maxgui.mod/fltkmaxgui.mod/src/fl_symbols.cxx
int fl_add_symbol(const char *name, void (*drawit)(Fl_Color), int scalable)
{
  fl_init_symbols();
  int pos;
  if (symbnumb > MAXSYMBOL / 2) return 0;	// table is full
  pos = find(name);
  symbols[pos].name = name;
  symbols[pos].drawit = drawit;
  symbols[pos].notempty = 1;
  symbols[pos].scalable = scalable;
  symbnumb++;
  return 1;
}
/**
  Adds a symbol to the system.
  \param[in] name     name of symbol (without the "@")
  \param[in] drawit   function to draw symbol
  \param[in] scalable set to 1 if \p drawit uses scalable vector drawing
  \returns 1 on success, 0 on failure
  */
Adds a symbol to the system.
Adds a symbol to the system .
int fl_add_symbol(const char *name, void (*drawit)(Fl_Color), int scalable)
{
  fl_init_symbols();
  int pos;
  if (symbnumb > MAXSYMBOL / 2) return 0;	
  pos = find(name);
  symbols[pos].name = name;
  symbols[pos].drawit = drawit;
  symbols[pos].notempty = 1;
  symbols[pos].scalable = scalable;
  symbnumb++;
  return 1;
}
int fl_add_symbol ( const char * name , void ( * drawit ) ( Fl_Color ) , int scalable ) { fl_init_symbols ( ) ; int pos ; if ( symbnumb > MAXSYMBOL / 2 ) return 0 ; pos = find ( name ) ; symbols [ pos ] . name = name ; symbols [ pos ] . drawit = drawit ; symbols [ pos ] . notempty = 1 ; symbols [ pos ] . scalable = scalable ; symbnumb ++ ; return 1 ; }
Adds a symbol to the system.
Adds a symbol to the system .
// table is full