Module: Nuklear
- Defined in:
- lib/nuklear.rb,
lib/nuklear/ui.rb,
lib/nuklear/dsl.rb,
lib/nuklear/style.rb,
lib/nuklear/ui/col.rb,
lib/nuklear/ui/row.rb,
lib/nuklear/context.rb,
lib/nuklear/ui/base.rb,
lib/nuklear/ui/menu.rb,
lib/nuklear/ui/tree.rb,
lib/nuklear/version.rb,
lib/nuklear/renderer.rb,
lib/nuklear/ui/group.rb,
lib/nuklear/ui/label.rb,
lib/nuklear/ui/popup.rb,
lib/nuklear/test_case.rb,
lib/nuklear/ui/button.rb,
lib/nuklear/ui/events.rb,
lib/nuklear/ui/option.rb,
lib/nuklear/ui/slider.rb,
lib/nuklear/ui/window.rb,
lib/nuklear/style/color.rb,
lib/nuklear/style/image.rb,
lib/nuklear/ui/checkbox.rb,
lib/nuklear/ui/menu_bar.rb,
lib/nuklear/ui/progress.rb,
lib/nuklear/ui/property.rb,
lib/nuklear/event_buffer.rb,
lib/nuklear/ui/combo_box.rb,
lib/nuklear/ui/container.rb,
lib/nuklear/ui/menu_item.rb,
lib/nuklear/ui/enableable.rb,
lib/nuklear/ui/selectable.rb,
lib/nuklear/ui/text_align.rb,
lib/nuklear/ui/edit_string.rb,
lib/nuklear/ui/select_list.rb,
lib/nuklear/ui/color_picker.rb,
lib/nuklear/ui/option_group.rb,
lib/nuklear/renderer/opengl24.rb,
ext/nuklear/nkrb.c,
ext/nuklear_renderer_opengl2/nuklear_renderer_opengl2.c,
ext/nuklear_renderer_opengl4/nuklear_renderer_opengl4.c
Defined Under Namespace
Modules: Style, TestCase, UI Classes: Buffer, Context, DSL, Error, EventBuffer, Font, NullTexture, Renderer, UIBuilder
Constant Summary collapse
- VERSION =
"0.1.3"
Class Method Summary collapse
Class Method Details
.parse_flags(prefix, *flags) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/nuklear.rb', line 17 def parse_flags(prefix, *flags) flags.flatten.reduce(0) do |set, flag| set | case flag when Symbol, String then Nuklear.const_get("NK_#{prefix.upcase}_#{flag.upcase}") else flag end end end |