Sha256: e837938de2eda01aa06eeae2052e09ed00396d8150372e7549f724f30784885a

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 Bytes

Contents

#include "nkrb.h"

VALUE nkrb_ui_menubar(VALUE self, VALUE rcontext) {
  struct nk_context *context = nkrb_context_get(rcontext);

  nk_menubar_begin(context);

  if (rb_block_given_p()) {
    rb_yield(Qtrue);
  }

  nk_menubar_end(context);
  return Qnil;
}

void nkrb_ui_menubar_init(void) {
  rb_define_method(mNuklearUIContainer, "ui_menubar", nkrb_ui_menubar, 1);
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nuklear-0.1.3 ext/nuklear/nkrb_ui_menubar.c
nuklear-0.1.2 ext/nuklear/nkrb_ui_menubar.c
nuklear-0.1.1 ext/nuklear/nkrb_ui_menubar.c
nuklear-0.1.0 ext/nuklear/nkrb_ui_menubar.c