rjrahul25 / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

M2_COMBOPTR #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
M2_COMBO with dynamic number of arguments.

Original issue reported on code.google.com by olikr...@gmail.com on 15 Nov 2012 at 7:26

GoogleCodeExporter commented 8 years ago

uint8_t comboptr_val = 0;
uint8_t comboptr_cnt = 3;
const char *comboptr_idx_to_color(uint8_t idx)
{
  if ( idx == 0 )
    return "red";
  else if (idx == 1 )
    return "green";
  return "blue";
}
M2_COMBOPTR(el_comboptr, NULL, &comboptr_val, &comboptr_cnt, 
comboptr_idx_to_color);
M2_ALIGN(top_el_comboptr_menu, "W64H64", &el_comboptr);

Original comment by olikr...@gmail.com on 17 Nov 2012 at 9:23

GoogleCodeExporter commented 8 years ago
todo: Add docu

Original comment by olikr...@gmail.com on 17 Nov 2012 at 9:23

GoogleCodeExporter commented 8 years ago
erledigt

Original comment by olikr...@gmail.com on 13 Dec 2012 at 6:44