Example #1
0
/** void TableView::setShowHorizontalHeader(bool enable)
 * include/mimas/TableView.h:123
 */
static int TableView_setShowHorizontalHeader(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    bool enable = dub_checkboolean(L, 2);
    self->setShowHorizontalHeader(enable);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "setShowHorizontalHeader: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "setShowHorizontalHeader: Unknown exception");
  }
  return dub_error(L);
}