Struct nuklear_rust::NkContext
[−]
[src]
pub struct NkContext { /* fields omitted */ }pub struct NkContext { /* fields omitted */ }impl NkContext[src]fn new(alloc: &mut NkAllocator, font: &NkUserFont) -> NkContextfn input(&mut self) -> NkInputfn style(&mut self) -> NkStylefn draw_list(&mut self) -> NkDrawListfn clear(&mut self)fn free(&mut self)fn begin(&mut self, panel: &mut NkPanel, title: NkString, bounds: NkRect, flags: NkFlags) -> boolfn begin_titled(&mut self, panel: &mut NkPanel, name: NkString, title: NkString, bounds: NkRect, flags: NkFlags) -> i32fn end(&mut self)fn window_find(&mut self, name: NkString) -> Option<NkWindow>fn window_get_bounds(&self) -> NkRectfn window_get_size(&self) -> NkVec2fn window_get_position(&self) -> NkVec2fn window_get_width(&self) -> f32fn window_get_height(&self) -> f32fn window_get_panel(&mut self) -> Option<NkPanelRef>fn window_get_content_region(&mut self) -> NkRectfn window_get_content_region_min(&mut self) -> NkVec2fn window_get_content_region_max(&mut self) -> NkVec2fn window_get_content_region_size(&mut self) -> NkVec2fn window_get_canvas(&mut self) -> Option<NkCommandBuffer>fn window_has_focus(&self) -> boolfn window_is_collapsed(&mut self, name: NkString) -> boolfn window_is_closed(&mut self, name: NkString) -> boolfn window_is_active(&mut self, name: NkString) -> boolfn window_is_hovered(&mut self) -> boolfn window_is_any_hovered(&mut self) -> boolfn item_is_any_active(&mut self) -> boolfn window_set_bounds(&mut self, bounds: NkRect)fn window_set_position(&mut self, pos: NkVec2)fn window_set_size(&mut self, size: NkVec2)fn window_set_focus(&mut self, name: NkString)fn window_close(&mut self, name: NkString)fn window_collapse(&mut self, name: NkString, state: NkCollapseState)fn window_collapse_if(&mut self, name: NkString, state: NkCollapseState, cond: bool)fn window_show(&mut self, name: NkString, state: NkShowState)fn window_show_if(&mut self, name: NkString, state: NkShowState, cond: bool)fn layout_row_dynamic(&mut self, height: f32, cols: i32)fn layout_row_static(&mut self, height: f32, item_width: i32, cols: i32)fn layout_row_begin(&mut self, fmt: NkLayoutFormat, row_height: f32, cols: i32)fn layout_row_push(&mut self, value: f32)fn layout_row_end(&mut self)fn layout_row(&mut self, fmt: NkLayoutFormat, height: f32, cols_ratio: &[f32])fn layout_space_begin(&mut self, fmt: NkLayoutFormat, height: f32, widget_count: i32)fn layout_space_push(&mut self, space: NkRect)fn layout_space_end(&mut self)fn layout_space_bounds(&mut self) -> NkRectfn layout_space_to_screen(&mut self, space: NkVec2) -> NkVec2fn layout_space_to_local(&mut self, space: NkVec2) -> NkVec2fn layout_space_rect_to_screen(&mut self, space: NkRect) -> NkRectfn layout_space_rect_to_local(&mut self, space: NkRect) -> NkRectfn layout_ratio_from_pixel(&mut self, pixel_width: f32) -> f32fn nk_group_begin(&mut self, panel: &mut NkPanel, title: NkString, flags: NkFlags) -> i32fn group_end(&mut self)fn tree_push_hashed(&mut self, ty: NkTreeType, title: NkString, initial_state: NkCollapseState, hash: NkString, len: i32, seed: i32) -> i32fn tree_image_push_hashed(&mut self, ty: NkTreeType, i: NkImage, title: NkString, initial_state: NkCollapseState, hash: NkString, len: i32, seed: i32) -> i32fn tree_pop(&mut self)fn text(&mut self, text: &str, flags: NkFlags)fn text_colored(&mut self, text: &str, flags: NkFlags, color: NkColor)fn text_wrap(&mut self, text: &str)fn text_wrap_colored(&mut self, text: &str, color: NkColor)fn label(&mut self, text: NkString, flags: NkFlags)fn label_colored(&mut self, text: NkString, flags: NkFlags, color: NkColor)fn label_wrap(&mut self, text: NkString)fn label_colored_wrap(&mut self, text: NkString, color: NkColor)fn image(&mut self, img: NkImage)fn check_label(&mut self, title: NkString, active: bool) -> i32fn check_text(&mut self, title: &str, active: bool) -> i32fn check_flags_label(&mut self, title: NkString, flags: u32, value: u32) -> u32fn check_flags_text(&mut self, title: &str, flags: u32, value: u32) -> u32fn checkbox_label(&mut self, title: NkString, active: &mut bool) -> boolfn checkbox_text(&mut self, title: &str, active: &mut bool) -> boolfn checkbox_flags_label(&mut self, title: NkString, flags: &mut u32, value: u32) -> boolfn checkbox_flags_text(&mut self, title: &str, flags: &mut u32, value: u32) -> boolfn radio_label(&mut self, title: NkString, active: &mut bool) -> boolfn radio_text(&mut self, title: &str, active: &mut bool) -> boolfn option_label(&mut self, title: NkString, active: bool) -> boolfn option_text(&mut self, title: &str, active: bool) -> boolfn selectable_label(&mut self, title: NkString, align: NkFlags, value: &mut i32) -> boolfn selectable_text(&mut self, title: &str, align: NkFlags, value: &mut i32) -> boolfn selectable_image_label(&mut self, img: NkImage, title: NkString, align: NkFlags, value: &mut i32) -> boolfn selectable_image_text(&mut self, img: NkImage, title: &str, align: NkFlags, value: &mut i32) -> boolfn select_label(&mut self, title: NkString, align: NkFlags, value: i32) -> i32fn select_text(&mut self, title: &str, align: NkFlags, value: i32) -> i32fn select_image_label(&mut self, img: NkImage, title: NkString, align: NkFlags, value: i32) -> i32fn select_image_text(&mut self, img: NkImage, title: &str, align: NkFlags, value: i32) -> i32fn slide_float(&mut self, min: f32, val: f32, max: f32, step: f32) -> f32fn slide_int(&mut self, min: i32, val: i32, max: i32, step: i32) -> i32fn slider_float(&mut self, min: f32, val: &mut f32, max: f32, step: f32) -> boolfn slider_int(&mut self, min: i32, val: &mut i32, max: i32, step: i32) -> boolfn progress(&mut self, cur: &mut usize, max: usize, is_modifyable: bool) -> boolfn prog(&mut self, cur: usize, max: usize, is_modifyable: bool) -> usizefn color_picker(&mut self, color: NkColor, fmt: NkColorFormat) -> NkColorfn color_pick(&mut self, fmt: NkColorFormat) -> (bool, NkColor)fn property_int(&mut self, name: NkString, min: i32, val: &mut i32, max: i32, step: i32, inc_per_pixel: f32)fn property_float(&mut self, name: NkString, min: f32, val: &mut f32, max: f32, step: f32, inc_per_pixel: f32)fn property_double(&mut self, name: NkString, min: f64, val: &mut f64, max: f64, step: f64, inc_per_pixel: f32)fn propertyi(&mut self, name: NkString, min: i32, val: i32, max: i32, step: i32, inc_per_pixel: f32) -> i32fn propertyf(&mut self, name: NkString, min: f32, val: f32, max: f32, step: f32, inc_per_pixel: f32) -> f32fn propertyd(&mut self, name: NkString, min: f64, val: f64, max: f64, step: f64, inc_per_pixel: f32) -> f64fn edit_string_custom_filter(&mut self, flags: NkFlags, buffer: &mut [u8], len: &mut i32, filter: fn(NkTextEdit, char) -> bool) -> NkFlagsfn edit_string(&mut self, flags: NkFlags, buffer: &mut [u8], len: &mut i32, filter: NkPluginFilter) -> NkFlagsfn edit_buffer(&mut self, flags: NkFlags, editor: &NkTextEdit, filter: NkPluginFilter) -> NkFlagsfn chart_begin(&mut self, ty: NkChartType, num: i32, min: f32, max: f32) -> boolfn chart_begin_colored(&mut self, ty: NkChartType, color: NkColor, active: NkColor, num: i32, min: f32, max: f32) -> boolfn chart_add_slot(&mut self, ty: NkChartType, count: i32, min_value: f32, max_value: f32)fn chart_add_slot_colored(&mut self, ty: NkChartType, color: NkColor, active: NkColor, count: i32, min_value: f32, max_value: f32)fn chart_push(&mut self, value: f32) -> NkFlagsfn chart_push_slot(&mut self, value: f32, count: i32) -> nk_flagsfn chart_end(&mut self)fn plot(&mut self, ty: NkChartType, values: &[f32])fn popup_begin(&mut self, panel: &mut NkPanel, ty: NkPopupType, title: NkString, flags: NkFlags, bounds: NkRect) -> boolfn popup_close(&mut self)fn popup_end(&mut self)fn combo(&mut self, items: &mut NkStringArray, selected: i32, item_height: i32, size: NkVec2) -> i32fn combo_separator(&mut self, items_separated_by_separator: NkString, separator: char, selected: i32, item_height: i32, size: NkVec2) -> i32fn combo_begin_label(&mut self, panel: &mut NkPanel, selected: NkString, size: NkVec2) -> boolfn combo_begin_text(&mut self, panel: &mut NkPanel, selected: &str, size: NkVec2) -> boolfn combo_begin_color(&mut self, panel: &mut NkPanel, color: NkColor, size: NkVec2) -> boolfn combo_begin_symbol(&mut self, panel: &mut NkPanel, sym: NkSymbolType, size: NkVec2) -> boolfn combo_begin_symbol_label(&mut self, panel: &mut NkPanel, label: NkString, sym: NkSymbolType, size: NkVec2) -> boolfn combo_begin_symbol_text(&mut self, panel: &mut NkPanel, label: &str, sym: NkSymbolType, size: NkVec2) -> boolfn combo_begin_image(&mut self, panel: &mut NkPanel, img: NkImage, size: NkVec2) -> boolfn combo_begin_image_label(&mut self, panel: &mut NkPanel, label: NkString, img: NkImage, size: NkVec2) -> boolfn combo_begin_image_text(&mut self, panel: &mut NkPanel, label: &str, img: NkImage, size: NkVec2) -> boolfn combo_item_label(&mut self, label: NkString, alignment: NkFlags) -> boolfn combo_item_text(&mut self, label: &str, alignment: NkFlags) -> boolfn combo_item_image_label(&mut self, img: NkImage, label: NkString, alignment: NkFlags) -> boolfn combo_item_image_text(&mut self, img: NkImage, label: &str, alignment: NkFlags) -> boolfn combo_item_symbol_label(&mut self, sym: NkSymbolType, label: NkString, alignment: NkFlags) -> boolfn combo_item_symbol_text(&mut self, sym: NkSymbolType, label: &str, alignment: NkFlags) -> boolfn combo_close(&mut self)fn combo_end(&mut self)fn contextual_begin(&mut self, panel: &mut NkPanel, flags: NkFlags, bounds: NkVec2, trigger_bounds: NkRect) -> boolfn contextual_item_label(&mut self, label: NkString, align: NkFlags) -> boolfn contextual_item_text(&mut self, label: &str, align: NkFlags) -> boolfn contextual_item_image_label(&mut self, img: NkImage, label: NkString, align: NkFlags) -> boolfn contextual_item_image_text(&mut self, img: NkImage, label: &str, align: NkFlags) -> boolfn contextual_item_symbol_label(&mut self, sym: NkSymbolType, label: NkString, align: NkFlags) -> boolfn contextual_item_symbol_text(&mut self, sym: NkSymbolType, label: &str, align: NkFlags) -> boolfn contextual_close(&mut self)fn contextual_end(&mut self)fn tooltip(&mut self, text: NkString)fn tooltip_begin(&mut self, panel: &mut NkPanel, width: f32) -> boolfn tooltip_end(&mut self)fn convert(&mut self, cmds: &mut NkBuffer, vertices: &mut NkBuffer, elements: &mut NkBuffer, config: &NkConvertConfig)fn input_begin(&mut self)fn input_motion(&mut self, x: i32, y: i32)fn input_key(&mut self, key: NkKey, down: bool)fn input_scroll(&mut self, y: f32)fn input_char(&mut self, c: u8)fn input_glyph(&mut self, g: NkGlyph)fn input_unicode(&mut self, r: char)fn input_end(&mut self)fn style_default(&mut self)fn style_from_table(&mut self, table: Option<&NkColorMap>)fn style_load_cursor(&mut self, cur: NkStyleCursor, res: NkCursor)fn style_load_all_cursors(&mut self, table: &mut NkCursorMap)fn style_set_font(&mut self, font: &NkUserFont)fn style_set_cursor(&mut self, cur: NkStyleCursor) -> boolfn style_show_cursor(&mut self)fn style_hide_cursor(&mut self)fn style_push_font(&mut self, font: &mut NkUserFont) -> boolfn style_push_float(&mut self, addr: &mut f32, val: f32) -> boolfn style_push_vec2(&mut self, addr: &mut NkVec2, val: NkVec2) -> boolfn style_push_style_item(&mut self, addr: &mut NkStyleItem, val: NkStyleItem) -> boolfn style_push_flags(&mut self, addr: &mut NkFlags, val: NkFlags) -> boolfn style_push_color(&mut self, addr: &mut NkColor, val: NkColor) -> boolfn style_pop_font(&mut self) -> boolfn style_pop_float(&mut self) -> boolfn style_pop_vec2(&mut self) -> boolfn style_pop_style_item(&mut self) -> boolfn style_pop_flags(&mut self) -> boolfn style_pop_color(&mut self) -> boolfn widget_bounds(&mut self) -> NkRectfn widget_position(&mut self) -> NkVec2fn widget_size(&mut self) -> NkVec2fn widget_width(&mut self) -> f32fn widget_height(&mut self) -> f32fn widget_is_hovered(&mut self) -> boolfn widget_is_mouse_clicked(&mut self, b: NkButton) -> boolfn widget_has_mouse_click_down(&mut self, b: NkButton, down: bool) -> boolfn widget(&self, arg1: &mut NkRect) -> NkWidgetLayoutStatefn spacing(&mut self, cols: i32)fn draw_begin(&self, buf: &NkBuffer) -> Option<NkDrawCommand>fn draw_next(&self, prev: &NkDrawCommand, buf: &NkBuffer) -> Option<NkDrawCommand>fn next_cmd(&mut self, arg2: &NkCommand) -> Option<NkCommand>fn begin_cmd(&mut self) -> Option<NkCommand>fn draw_command_iterator<'a>(&'a mut self, buf: &'a NkBuffer) -> NkDrawCommandIterator<'a>fn command_iterator<'a>(&'a mut self) -> NkCommandIterator<'a>impl Default for NkContext[src]