var searchIndex = {}; searchIndex["cursive"] = {"doc":"# Cursive","items":[[3,"XY","cursive","A generic structure with a value for each axis.",null,null],[12,"x","","X-axis value",0,null],[12,"y","","Y-axis value",0,null],[3,"Printer","","Convenient interface to draw on a subset of the screen.",null,null],[12,"offset","","Offset into the window this printer should start drawing at.",1,null],[12,"size","","Size of the area we are allowed to draw on.",1,null],[12,"focused","","Whether the view to draw is currently focused or not.",1,null],[12,"theme","","Currently used theme",1,null],[3,"Cursive","","Central part of the cursive library.",null,null],[0,"prelude","","Commonly used imports, conveniently grouped.",null,null],[3,"Printer","cursive::prelude","Convenient interface to draw on a subset of the screen.",null,null],[12,"offset","","Offset into the window this printer should start drawing at.",1,null],[12,"size","","Size of the area we are allowed to draw on.",1,null],[12,"focused","","Whether the view to draw is currently focused or not.",1,null],[12,"theme","","Currently used theme",1,null],[3,"BoxView","","Wrapper around another view, with a controlled size.",null,null],[3,"Button","","Simple text label with a callback when <Enter> is pressed.",null,null],[3,"Checkbox","","Checkable box.",null,null],[3,"Dialog","","Popup-like view with a main content, and optional buttons under it.",null,null],[3,"EditView","","Input box where the user can enter and edit text.",null,null],[3,"IdView","","Wrapper view that allows to select its content with a fixed string id.",null,null],[3,"KeyEventView","","A simple wrapper view that catches some ignored event from its child.",null,null],[3,"LinearLayout","","Arranges its children linearly according to its orientation.",null,null],[3,"ListView","","Displays a scrollable list of elements.",null,null],[3,"Panel","","Draws a border around a wrapped view.",null,null],[3,"ProgressBar","","Animated bar showing a progress value.",null,null],[3,"SelectView","","View to select an item among a list.",null,null],[3,"TextArea","","Multi-lines text editor.",null,null],[3,"TextView","","A simple view showing a fixed text",null,null],[8,"With","","Generic trait to enable chainable API",null,null],[11,"with","","Calls the given closure on `self`.",2,null],[8,"Boxable","","Makes a view wrappable in a [`BoxView`].",null,null],[11,"boxed","","Wraps `self` in a `BoxView` with the given size constraints.",3,null],[11,"fixed_size","","Wraps `self` into a fixed-size `BoxView`.",3,null],[11,"fixed_width","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"fixed_height","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"full_screen","","Wraps `self` into a full-screen `BoxView`.",3,null],[11,"full_width","","Wraps `self` into a full-width `BoxView`.",3,null],[11,"full_height","","Wraps `self` into a full-height `BoxView`.",3,null],[11,"max_size","","Wraps `self` into a limited-size `BoxView`.",3,null],[11,"max_width","","Wraps `self` into a limited-width `BoxView`.",3,null],[11,"max_height","","Wraps `self` into a limited-height `BoxView`.",3,null],[11,"min_size","","Wraps `self` into a `BoxView` at least sized `size`.",3,null],[11,"min_width","","Wraps `self` in a `BoxView` at least `min_width` wide.",3,null],[11,"min_height","","Wraps `self` in a `BoxView` at least `min_height` tall.",3,null],[8,"Identifiable","","Makes a view wrappable in an [`IdView`].",null,null],[11,"with_id","","Wraps this view into an IdView with the given id.",4,null],[0,"event","cursive","User-input events and their effects.",null,null],[3,"Callback","cursive::event","Callback is a function that can be triggered by an event.\nIt has a mutable access to the cursive root.",null,null],[4,"EventResult","","Answer to an event notification.\nThe event can be consumed or ignored.",null,null],[13,"Ignored","","The event was ignored. The parent can keep handling it.",5,null],[13,"Consumed","","The event was consumed. An optionnal callback to run is attached.",5,null],[4,"Key","","A non-character key on the keyboard",null,null],[13,"Enter","","Both Enter (or Return) and numpad Enter",6,null],[13,"Tab","","Tabulation key",6,null],[13,"Backspace","","Backspace key",6,null],[13,"Esc","","Escape key",6,null],[13,"Left","","Left arrow",6,null],[13,"Right","","Right arrow",6,null],[13,"Up","","Up arrow",6,null],[13,"Down","","Down arrow",6,null],[13,"Ins","","Insert key",6,null],[13,"Del","","Delete key",6,null],[13,"Home","","Home key",6,null],[13,"End","","End key",6,null],[13,"PageUp","","Page Up key",6,null],[13,"PageDown","","Page Down key",6,null],[13,"NumpadCenter","","The 5 in the center of the keypad, when numlock is disabled.",6,null],[13,"F1","","F1 key",6,null],[13,"F2","","F2 key",6,null],[13,"F3","","F3 key",6,null],[13,"F4","","F4 key",6,null],[13,"F5","","F5 key",6,null],[13,"F6","","F6 key",6,null],[13,"F7","","F7 key",6,null],[13,"F8","","F8 key",6,null],[13,"F9","","F9 key",6,null],[13,"F10","","F10 key",6,null],[13,"F11","","F11 key",6,null],[13,"F12","","F12 key",6,null],[4,"Event","","Represents an event as seen by the application.",null,null],[13,"WindowResize","","Event fired when the window is resized.",7,null],[13,"Refresh","","Event fired regularly when a auto-refresh is set.",7,null],[13,"Char","","A character was entered (includes numbers, punctuation, ...).",7,null],[13,"CtrlChar","","A character was entered with the Ctrl key pressed.",7,null],[13,"AltChar","","A character was entered with the Alt key pressed.",7,null],[13,"Key","","A non-character key was pressed.",7,null],[13,"Shift","","A non-character key was pressed with the Shift key pressed.",7,null],[13,"Alt","","A non-character key was pressed with the Alt key pressed.",7,null],[13,"AltShift","","A non-character key was pressed with the Shift and Alt keys pressed.",7,null],[13,"Ctrl","","A non-character key was pressed with the Ctrl key pressed.",7,null],[13,"CtrlShift","","A non-character key was pressed with the Ctrl and Shift keys pressed.",7,null],[13,"CtrlAlt","","A non-character key was pressed with the Ctrl and Alt keys pressed.",7,null],[13,"Unknown","","An unknown event was received.",7,null],[11,"clone","","",8,null],[11,"from_fn","","Wraps the given function into a `Callback` object.",8,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[11,"deref","","",8,null],[11,"from","","",8,{"inputs":[{"name":"rc"}],"output":{"name":"self"}}],[11,"from","","",8,{"inputs":[{"name":"box"}],"output":{"name":"self"}}],[11,"from","","",8,{"inputs":[{"name":"box"}],"output":{"name":"self"}}],[11,"with_cb","","Convenient method to create `Consumed(Some(f))`",5,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[11,"is_consumed","","Returns `true` if `self` is `EventResult::Consumed`.",5,null],[11,"fmt","","",6,null],[11,"hash","","",6,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"from_f","","Returns the function key corresponding to the given number",6,{"inputs":[{"name":"u8"}],"output":{"name":"key"}}],[11,"fmt","","",7,null],[11,"hash","","",7,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"from","","",7,{"inputs":[{"name":"char"}],"output":{"name":"event"}}],[11,"from","","",7,{"inputs":[{"name":"key"}],"output":{"name":"event"}}],[0,"view","cursive","Base elements required to build views.",null,null],[3,"ScrollBase","cursive::view","Provide scrolling functionalities to a view.",null,null],[12,"start_line","","First line visible",9,null],[12,"content_height","","Content height",9,null],[12,"view_height","","Number of lines displayed",9,null],[12,"scrollbar_offset","","Padding for the scrollbar",9,null],[12,"right_padding","","Blank between the text and the scrollbar.",9,null],[3,"SizeCache","","Cache around a one-dimensional layout result.",null,null],[12,"value","","Cached value",10,null],[12,"constrained","","`true` if the last size was constrained.",10,null],[3,"ViewPath","","Represents a path to a single view in the layout.",null,null],[12,"path","","List of turns to make on decision nodes when descending the view tree.\nSimple nodes (with one fixed child) are skipped.",11,null],[4,"Offset","","Single-dimensional offset policy.",null,null],[13,"Center","","In the center of the screen",12,null],[13,"Absolute","","Place top-left corner at the given absolute coordinates",12,null],[13,"Parent","","Offset from the previous layer's top-left corner.",12,null],[4,"SizeConstraint","","Single-dimensional constraint on a view size.",null,null],[13,"Free","","No constraint imposed, the child view's response is used.",13,null],[13,"Full","","Tries to take all available space, no matter what the child needs.",13,null],[13,"Fixed","","Always return the included size, no matter what the child needs.",13,null],[13,"AtMost","","Returns the minimum of the included value and the child view's size.",13,null],[13,"AtLeast","","Returns the maximum of the included value and the child view's size.",13,null],[4,"Selector","","Selects a single view (if any) in the tree.",null,null],[13,"Id","","Selects a view from its ID.",14,null],[13,"Path","","Selects a view from its path.",14,null],[11,"clone","","",12,null],[11,"fmt","","",12,null],[11,"eq","","",12,null],[11,"ne","","",12,null],[11,"compute_offset","","Computes a single-dimension offset requred to draw a view.",12,null],[11,"clone","","",10,null],[11,"fmt","","",10,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"new","","Creates a new sized cache",10,{"inputs":[{"name":"usize"},{"name":"bool"}],"output":{"name":"self"}}],[11,"accept","","Returns `true` if `self` is still valid for the given `request`.",10,null],[11,"build","","Creates a new bi-dimensional cache.",10,{"inputs":[{"name":"vec2"},{"name":"vec2"}],"output":{"name":"xy"}}],[11,"clone","","",13,null],[11,"fmt","","",13,null],[11,"available","","Returns the size to be given to the child.",13,null],[11,"result","","Returns the size the child view should actually use.",13,null],[11,"default","","",11,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new empty path.",11,{"inputs":[],"output":{"name":"self"}}],[11,"from","","Creates a path from the given item.",11,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"default","","",9,{"inputs":[],"output":{"name":"scrollbase"}}],[11,"new","","Creates a new, uninitialized scrollbar.",9,{"inputs":[],"output":{"name":"self"}}],[11,"scrollbar_offset","","Shifts the scrollbar toward the inside of the view.",9,null],[11,"right_padding","","Sets the number of blank cells between the text and the scrollbar.",9,null],[11,"set_heights","","Call this method whem the content or the view changes.",9,null],[11,"scrollable","","Returns `TRUE` if the view needs to scroll.",9,null],[11,"can_scroll_up","","Returns `TRUE` unless we are at the top.",9,null],[11,"can_scroll_down","","Returns `TRUE` unless we are at the bottom.",9,null],[11,"scroll_top","","Scroll to the top of the view.",9,null],[11,"scroll_to","","Makes sure that the given line is visible, scrolling if needed.",9,null],[11,"scroll_bottom","","Scroll to the bottom of the view.",9,null],[11,"scroll_down","","Scroll down by the given number of line.",9,null],[11,"scroll_up","","Scroll up by the given number of lines.",9,null],[11,"draw","","Draws the scroll bar and the content using the given drawer.",9,null],[11,"with_id","cursive::prelude","Wraps this view into an IdView with the given id.",4,null],[11,"boxed","","Wraps `self` in a `BoxView` with the given size constraints.",3,null],[11,"fixed_size","","Wraps `self` into a fixed-size `BoxView`.",3,null],[11,"fixed_width","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"fixed_height","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"full_screen","","Wraps `self` into a full-screen `BoxView`.",3,null],[11,"full_width","","Wraps `self` into a full-width `BoxView`.",3,null],[11,"full_height","","Wraps `self` into a full-height `BoxView`.",3,null],[11,"max_size","","Wraps `self` into a limited-size `BoxView`.",3,null],[11,"max_width","","Wraps `self` into a limited-width `BoxView`.",3,null],[11,"max_height","","Wraps `self` into a limited-height `BoxView`.",3,null],[11,"min_size","","Wraps `self` into a `BoxView` at least sized `size`.",3,null],[11,"min_width","","Wraps `self` in a `BoxView` at least `min_width` wide.",3,null],[11,"min_height","","Wraps `self` in a `BoxView` at least `min_height` tall.",3,null],[6,"Position","cursive::view","Location of the view on screen",null,null],[8,"ViewWrapper","","Generic wrapper around a view.",null,null],[10,"get_view","","Get an immutable reference to the wrapped view.",15,null],[10,"get_view_mut","","Get a mutable reference to the wrapped view.",15,null],[11,"wrap_draw","","Wraps the `draw` method.",15,null],[11,"wrap_get_min_size","","Wraps the `get_min_size` method.",15,null],[11,"wrap_on_event","","Wraps the `on_event` method.",15,null],[11,"wrap_layout","","Wraps the `layout` method.",15,null],[11,"wrap_take_focus","","Wraps the `take_focus` method.",15,null],[11,"wrap_find","","Wraps the `find` method.",15,null],[11,"wrap_needs_relayout","","Wraps the `needs_relayout` method.",15,null],[8,"Identifiable","","Makes a view wrappable in an [`IdView`].",null,null],[11,"with_id","cursive::prelude","Wraps this view into an IdView with the given id.",4,null],[8,"Boxable","cursive::view","Makes a view wrappable in a [`BoxView`].",null,null],[11,"boxed","cursive::prelude","Wraps `self` in a `BoxView` with the given size constraints.",3,null],[11,"fixed_size","","Wraps `self` into a fixed-size `BoxView`.",3,null],[11,"fixed_width","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"fixed_height","","Wraps `self` into a fixed-width `BoxView`.",3,null],[11,"full_screen","","Wraps `self` into a full-screen `BoxView`.",3,null],[11,"full_width","","Wraps `self` into a full-width `BoxView`.",3,null],[11,"full_height","","Wraps `self` into a full-height `BoxView`.",3,null],[11,"max_size","","Wraps `self` into a limited-size `BoxView`.",3,null],[11,"max_width","","Wraps `self` into a limited-width `BoxView`.",3,null],[11,"max_height","","Wraps `self` into a limited-height `BoxView`.",3,null],[11,"min_size","","Wraps `self` into a `BoxView` at least sized `size`.",3,null],[11,"min_width","","Wraps `self` in a `BoxView` at least `min_width` wide.",3,null],[11,"min_height","","Wraps `self` in a `BoxView` at least `min_height` tall.",3,null],[8,"View","cursive::view","Main trait defining a view behaviour.",null,null],[11,"on_event","","Called when a key was pressed. Default implementation just ignores it.",16,null],[11,"get_min_size","","Returns the minimum size the view requires with the given restrictions.",16,null],[11,"needs_relayout","","Returns `true` if the view content changed since last layout phase.",16,null],[11,"layout","","Called once the size for this view has been decided,",16,null],[10,"draw","","Draws the view with the given printer (includes bounds) and focus.",16,null],[11,"find","","Finds the view pointed to by the given path.",16,null],[11,"take_focus","","This view is offered focus. Will it take it?",16,null],[0,"views","cursive","Various views to use when creating the layout.",null,null],[3,"IdView","cursive::views","Wrapper view that allows to select its content with a fixed string id.",null,null],[3,"BoxView","","Wrapper around another view, with a controlled size.",null,null],[3,"Button","","Simple text label with a callback when <Enter> is pressed.",null,null],[3,"Checkbox","","Checkable box.",null,null],[3,"Dialog","","Popup-like view with a main content, and optional buttons under it.",null,null],[3,"DummyView","","Dummy view.",null,null],[3,"EditView","","Input box where the user can enter and edit text.",null,null],[3,"KeyEventView","","A simple wrapper view that catches some ignored event from its child.",null,null],[3,"LinearLayout","","Arranges its children linearly according to its orientation.",null,null],[3,"ListView","","Displays a scrollable list of elements.",null,null],[3,"Menubar","","Shows a single-line list of items, with pop-up menus when one is selected.",null,null],[12,"menus","","Menu items in this menubar.",17,null],[12,"autohide","","TODO: move this out of this view.",17,null],[3,"MenuPopup","","Popup that shows a list of items.",null,null],[3,"Panel","","Draws a border around a wrapped view.",null,null],[3,"Counter","","Atomic counter used by `ProgressBar`.",null,null],[12,"0","","",18,null],[3,"ProgressBar","","Animated bar showing a progress value.",null,null],[3,"SelectView","","View to select an item among a list.",null,null],[3,"ShadowView","","Wrapper view that adds a shadow.",null,null],[3,"SizedView","","Wrapper around a view that remembers its size.",null,null],[12,"view","","Wrapped view.",19,null],[12,"size","","Cached size from the last layout() call.",19,null],[3,"StackView","","Simple stack of views.\nOnly the top-most view is active and can receive input.",null,null],[3,"TextArea","","Multi-lines text editor.",null,null],[3,"TextView","","A simple view showing a fixed text",null,null],[3,"TrackedView","","Wrapper around a view that remembers its position.",null,null],[12,"view","","Wrapped view.",20,null],[11,"new","cursive::prelude","Creates a new `BoxView` with the given width and height requirements.",21,{"inputs":[{"name":"sizeconstraint"},{"name":"sizeconstraint"},{"name":"t"}],"output":{"name":"self"}}],[11,"squishable","","Sets `self` to be squishable.",21,null],[11,"with_fixed_size","","Wraps `view` in a new `BoxView` with the given size.",21,{"inputs":[{"name":"s"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_fixed_width","","Wraps `view` in a new `BoxView` with fixed width.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_fixed_height","","Wraps `view` in a new `BoxView` with fixed height.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_full_screen","","Wraps `view` in a `BoxView` which will take all available space.",21,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"with_full_width","","Wraps `view` in a `BoxView` which will take all available width.",21,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"with_full_height","","Wraps `view` in a `BoxView` which will take all available height.",21,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"with_max_size","","Wraps `view` in a `BoxView` which will never be bigger than `size`.",21,{"inputs":[{"name":"s"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_max_width","","Wraps `view` in a `BoxView` which will enforce a maximum width.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_max_height","","Wraps `view` in a `BoxView` which will enforce a maximum height.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_min_size","","Wraps `view` in a `BoxView` which will never be smaller than `size`.",21,{"inputs":[{"name":"s"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_min_width","","Wraps `view` in a `BoxView` which will enforce a minimum width.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"with_min_height","","Wraps `view` in a `BoxView` which will enforce a minimum height.",21,{"inputs":[{"name":"usize"},{"name":"t"}],"output":{"name":"self"}}],[11,"get_view","","",21,null],[11,"get_view_mut","","",21,null],[11,"wrap_get_min_size","","",21,null],[11,"new","","Creates a new button with the given content and callback.",22,{"inputs":[{"name":"s"},{"name":"f"}],"output":{"name":"self"}}],[11,"disable","","Disables this view.",22,null],[11,"disabled","","Disables this view.",22,null],[11,"enable","","Re-enables this view.",22,null],[11,"set_enabled","","Enable or disable this view.",22,null],[11,"is_enabled","","Returns `true` if this view is enabled.",22,null],[11,"draw","","",22,null],[11,"get_min_size","","",22,null],[11,"on_event","","",22,null],[11,"take_focus","","",22,null],[11,"default","","",23,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new, unchecked checkbox.",23,{"inputs":[],"output":{"name":"self"}}],[11,"disable","","Disables this view.",23,null],[11,"disabled","","Disables this view.",23,null],[11,"enable","","Re-enables this view.",23,null],[11,"set_enabled","","Enable or disable this view.",23,null],[11,"is_enabled","","Returns `true` if this view is enabled.",23,null],[11,"set_on_change","","Sets a callback to be used when the state changes.",23,null],[11,"on_change","","Sets a callback to be used when the state changes.",23,null],[11,"toggle","","Toggles the checkbox state.",23,null],[11,"check","","Check the checkbox.",23,null],[11,"checked","","Check the checkbox.",23,null],[11,"is_checked","","Returns `true` if the checkbox is checked.",23,null],[11,"uncheck","","Uncheck the checkbox.",23,null],[11,"unchecked","","Uncheck the checkbox.",23,null],[11,"set_checked","","Sets the checkbox state.",23,null],[11,"get_min_size","","",23,null],[11,"take_focus","","",23,null],[11,"draw","","",23,null],[11,"on_event","","",23,null],[11,"empty","","Creates a new `Dialog` with empty content.",24,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new `Dialog` with the given content.",24,{"inputs":[{"name":"v"}],"output":{"name":"self"}}],[11,"content","","Sets the content for this dialog.",24,null],[11,"set_content","","Sets the content for this dialog.",24,null],[11,"text","","Convenient method to create a dialog with a simple text content.",24,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"info","","Convenient method to create an infobox.",24,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"button","","Adds a button to the dialog with the given label and callback.",24,null],[11,"h_align","","Sets the horizontal alignment for the buttons, if any.\nOnly works if the buttons are as a row at the bottom of the dialog.",24,null],[11,"v_align","","Sets the vertical alignment for the buttons, if any.\nOnly works if the buttons are as a column to the right of the dialog.",24,null],[11,"dismiss_button","","Shortcut method to add a button that will dismiss the dialog.",24,null],[11,"title","","Sets the title of the dialog.\nIf not empty, it will be visible at the top.",24,null],[11,"padding","","Sets the padding in the dialog (around content and buttons).",24,null],[11,"padding_top","","Sets the top padding in the dialog (under the title).",24,null],[11,"padding_bottom","","Sets the bottom padding in the dialog (under buttons).",24,null],[11,"padding_left","","Sets the left padding in the dialog.",24,null],[11,"padding_right","","Sets the right padding in the dialog.",24,null],[11,"draw","","",24,null],[11,"get_min_size","","",24,null],[11,"layout","","",24,null],[11,"on_event","","",24,null],[11,"take_focus","","",24,null],[11,"find","","",24,null],[11,"draw","cursive::views","",25,null],[11,"default","cursive::prelude","",26,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new, empty edit view.",26,{"inputs":[],"output":{"name":"self"}}],[11,"set_secret","","If `secret` is `true`, the content won't be displayed in clear.",26,null],[11,"secret","","Hides the content of the view.",26,null],[11,"disable","","Disables this view.",26,null],[11,"disabled","","Disables this view.",26,null],[11,"enable","","Re-enables this view.",26,null],[11,"on_edit","","Sets a callback to be called whenever the content is modified.",26,null],[11,"on_submit","","Sets a callback to be called when `<Enter>` is pressed.",26,null],[11,"set_enabled","","Enable or disable this view.",26,null],[11,"is_enabled","","Returns `true` if this view is enabled.",26,null],[11,"set_content","","Replace the entire content of the view with the given one.",26,null],[11,"get_content","","Get the current text.",26,null],[11,"content","","Sets the current content to the given value.",26,null],[11,"insert","","Insert `ch` at the current cursor position.",26,null],[11,"remove","","Remove the character at the current cursor position.",26,null],[11,"draw","","",26,null],[11,"layout","","",26,null],[11,"take_focus","","",26,null],[11,"on_event","","",26,null],[11,"new","","Wraps the given view. It will be selectable with the given id.",27,{"inputs":[{"name":"str"},{"name":"t"}],"output":{"name":"self"}}],[11,"get_view","","",27,null],[11,"get_view_mut","","",27,null],[11,"wrap_find","","",27,null],[11,"new","","Wraps the given view in a new KeyEventView.",28,{"inputs":[{"name":"v"}],"output":{"name":"self"}}],[11,"register","","Registers a callback when the given key is ignored by the child.",28,null],[11,"get_view","","",28,null],[11,"get_view_mut","","",28,null],[11,"wrap_on_event","","",28,null],[11,"new","","Creates a new layout with the given orientation.",29,{"inputs":[{"name":"orientation"}],"output":{"name":"self"}}],[11,"weight","","Modifies the weight of the last child added.",29,null],[11,"child","","Adds a child to the layout.",29,null],[11,"add_child","","Adds a child to the layout.",29,null],[11,"vertical","","Creates a new vertical layout.",29,{"inputs":[],"output":{"name":"self"}}],[11,"horizontal","","Creates a new horizontal layout.",29,{"inputs":[],"output":{"name":"self"}}],[11,"draw","","",29,null],[11,"needs_relayout","","",29,null],[11,"layout","","",29,null],[11,"get_min_size","","",29,null],[11,"take_focus","","",29,null],[11,"on_event","","",29,null],[11,"find","","",29,null],[11,"default","","",30,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new, empty `ListView`.",30,{"inputs":[],"output":{"name":"self"}}],[11,"add_child","","Adds a view to the end of the list.",30,null],[11,"child","","Adds a view to the end of the list.",30,null],[11,"add_delimiter","","Adds a delimiter to the end of the list.",30,null],[11,"delimiter","","Adds a delimiter to the end of the list.",30,null],[11,"draw","","",30,null],[11,"get_min_size","","",30,null],[11,"layout","","",30,null],[11,"on_event","","",30,null],[11,"take_focus","","",30,null],[11,"find","","",30,null],[11,"default","cursive::views","",17,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new, empty menubar.",17,{"inputs":[],"output":{"name":"self"}}],[11,"receive_events","","True if we should be receiving events.",17,null],[11,"visible","","Returns `true` if we should be drawn.",17,null],[11,"add","","Adds a new item to the menubar.",17,null],[11,"draw","","",17,null],[11,"on_event","","",17,null],[11,"take_focus","","",17,null],[11,"get_min_size","","",17,null],[11,"new","","Creates a new `MenuPopup` using the given menu tree.",31,{"inputs":[{"name":"rc"}],"output":{"name":"self"}}],[11,"set_focus","","Sets the currently focused element.",31,null],[11,"focus","","Sets the currently focused element.",31,null],[11,"align","","Sets the alignment for this view.",31,null],[11,"on_dismiss","","Sets a callback to be used when this view is actively dismissed.",31,null],[11,"on_action","","Sets a callback to be used when a leaf is activated.",31,null],[11,"draw","","",31,null],[11,"get_min_size","","",31,null],[11,"on_event","","",31,null],[11,"layout","","",31,null],[11,"new","cursive::prelude","Creates a new panel around the given view.",32,{"inputs":[{"name":"v"}],"output":{"name":"self"}}],[11,"get_view","","",32,null],[11,"get_view_mut","","",32,null],[11,"wrap_get_min_size","","",32,null],[11,"wrap_draw","","",32,null],[11,"clone","cursive::views","",18,null],[11,"new","","Creates a new `Counter` starting with the given value.",18,{"inputs":[{"name":"usize"}],"output":{"name":"self"}}],[11,"get","","Retrieves the current progress value.",18,null],[11,"set","","Sets the current progress value.",18,null],[11,"tick","","Increase the current progress by `ticks`.",18,null],[11,"default","cursive::prelude","",33,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new progress bar.",33,{"inputs":[],"output":{"name":"self"}}],[11,"with_value","","Sets the value to follow.",33,null],[11,"start","","Starts a function in a separate thread, and monitor the progress.",33,null],[11,"with_task","","Starts a function in a separate thread, and monitor the progress.",33,null],[11,"with_label","","Sets the label generator.",33,null],[11,"min","","Sets the minimum value.",33,null],[11,"max","","Sets the maximum value.",33,null],[11,"range","","Sets the `min` and `max` range for the value.",33,null],[11,"set_value","","Sets the current value.",33,null],[11,"draw","","",33,null],[11,"new","","Creates a new empty SelectView.",34,{"inputs":[],"output":{"name":"self"}}],[11,"popup","","Turns `self` into a popup select view.",34,null],[11,"set_popup","","Turns `self` into a popup select view.",34,null],[11,"disable","","Disables this view.",34,null],[11,"disabled","","Disables this view.",34,null],[11,"enable","","Re-enables this view.",34,null],[11,"set_enabled","","Enable or disable this view.",34,null],[11,"is_enabled","","Returns `true` if this view is enabled.",34,null],[11,"set_on_select","","Sets a callback to be used when an item is selected.",34,null],[11,"on_select","","Sets a callback to be used when an item is selected.",34,null],[11,"set_on_submit","","Sets a callback to be used when `<Enter>` is pressed.",34,null],[11,"on_submit","","Sets a callback to be used when `<Enter>` is pressed.",34,null],[11,"align","","Sets the alignment for this view.",34,null],[11,"v_align","","Sets the vertical alignment for this view.\n(If the view is given too much space vertically.)",34,null],[11,"h_align","","Sets the horizontal alignment for this view.",34,null],[11,"selection","","Returns the value of the currently selected item.",34,null],[11,"add_item","","Adds a item to the list, with given label and value.",34,null],[11,"item","","Chainable variant of add_item",34,null],[11,"add_all","","Adds all items from from an iterator.",34,null],[11,"with_all","","Adds all items from from an iterator.",34,null],[11,"add_item_str","","Convenient method to use the label as value.",34,null],[11,"item_str","","Chainable variant of add_item_str",34,null],[11,"add_all_str","","Adds all strings from an iterator.",34,null],[11,"with_all_str","","Adds all strings from an iterator.",34,null],[11,"draw","","",34,null],[11,"get_min_size","","",34,null],[11,"on_event","","",34,null],[11,"take_focus","","",34,null],[11,"layout","","",34,null],[11,"new","cursive::views","Wraps the given view.",35,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"left_padding","","If set, adds an empty column to the left of the view.",35,null],[11,"top_padding","","If set, adds an empty row at the top of the view.",35,null],[11,"get_view","","",35,null],[11,"get_view_mut","","",35,null],[11,"wrap_get_min_size","","",35,null],[11,"wrap_layout","","",35,null],[11,"wrap_draw","","",35,null],[11,"new","","Wraps the given view.",19,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"get_view","","",19,null],[11,"get_view_mut","","",19,null],[11,"wrap_layout","","",19,null],[11,"default","","",36,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new empty StackView",36,{"inputs":[],"output":{"name":"self"}}],[11,"add_layer","","Adds new view on top of the stack in the center of the screen.",36,null],[11,"add_layer_at","","Adds a view on top of the stack.",36,null],[11,"pop_layer","","Remove the top-most layer.",36,null],[11,"offset","","Computes the offset of the current top view.",36,null],[11,"draw","","",36,null],[11,"on_event","","",36,null],[11,"layout","","",36,null],[11,"get_min_size","","",36,null],[11,"take_focus","","",36,null],[11,"find","","",36,null],[11,"default","cursive::prelude","",37,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new, empty TextArea.",37,{"inputs":[],"output":{"name":"self"}}],[11,"get_content","","Retrieves the content of the view.",37,null],[11,"set_content","","Sets the content of the view.",37,null],[11,"content","","Sets the content of the view.",37,null],[11,"draw","","",37,null],[11,"on_event","","",37,null],[11,"take_focus","","",37,null],[11,"layout","","",37,null],[11,"new","","Creates a new TextView with the given content.",38,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"set_scrollable","","Enable or disable the view's scrolling capabilities.",38,null],[11,"scrollable","","Enable or disable the view's scrolling capabilities.",38,null],[11,"h_align","","Sets the horizontal alignment for this view.",38,null],[11,"v_align","","Sets the vertical alignment for this view.",38,null],[11,"align","","Sets the alignment for this view.",38,null],[11,"center","","Center the text horizontally and vertically inside the view.",38,null],[11,"set_content","","Replace the text in this view.",38,null],[11,"get_content","","Returns the current text in this view.",38,null],[11,"draw","","",38,null],[11,"on_event","","",38,null],[11,"needs_relayout","","",38,null],[11,"get_min_size","","",38,null],[11,"take_focus","","",38,null],[11,"layout","","",38,null],[11,"offset","cursive::views","Return the last offset at which the view was drawn.",20,null],[11,"new","","Creates a new `TrackedView` around `view`.",20,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"with_id","","Wraps itself in a `IdView` for easy retrieval.",20,null],[11,"get_view","","",20,null],[11,"get_view_mut","","",20,null],[11,"wrap_draw","","",20,null],[0,"vec","cursive","Points on the 2D character grid.",null,null],[3,"Vec4","cursive::vec","Four values representing each direction.",null,null],[12,"left","","Left margin",39,null],[12,"right","","Right margin",39,null],[12,"top","","Top margin",39,null],[12,"bottom","","Bottom margin",39,null],[6,"Vec2","","Simple 2D size, in cells.",null,null],[11,"partial_cmp","cursive","`a < b` <=> `a.x < b.x && a.y < b.y`",0,null],[11,"max","","Returns a new Vec2 that is a maximum per coordinate.",0,{"inputs":[{"name":"a"},{"name":"b"}],"output":{"name":"self"}}],[11,"min","","Returns a new Vec2 that is no larger than any input in both dimensions.",0,{"inputs":[{"name":"a"},{"name":"b"}],"output":{"name":"self"}}],[11,"or_min","","Returns the minimum of `self` and `other`.",0,null],[11,"or_max","","Returns the maximum of `self` and `other`.",0,null],[11,"keep_x","","Returns a vector with the X component of self, and y=0.",0,null],[11,"keep_y","","Returns a vector with the Y component of self, and x=0.",0,null],[11,"zero","","Alias for `Vec2::new(0,0)`.",0,{"inputs":[],"output":{"name":"self"}}],[11,"stack_vertical","","Returns (max(self.x,other.x), self.y+other.y)",0,null],[11,"stack_horizontal","","Returns (self.x+other.x, max(self.y,other.y))",0,null],[11,"fits_in","","Returns `true` if `self` could fit inside `other`.",0,null],[11,"with_axis","","Returns a new `Vec2` with the axis `o` set to `value`.",0,null],[11,"with_axis_from","","Returns a new `Vec2` with the axis `o` set to the value from `other`.",0,null],[11,"set_axis_from","","Sets the axis `o` on `self` to the value from `other`.",0,null],[11,"from","","",0,null],[11,"from","","",0,null],[11,"add","","",0,null],[11,"sub","","",0,null],[11,"div","","",0,null],[11,"mul","","",0,null],[11,"clone","cursive::vec","",39,null],[11,"new","","Creates a new Vec4.",39,{"inputs":[{"name":"usize"},{"name":"usize"},{"name":"usize"},{"name":"usize"}],"output":{"name":"self"}}],[11,"horizontal","","Returns left + right.",39,null],[11,"vertical","","Returns top + bottom.",39,null],[11,"combined","","Returns (left+right, top+bottom).",39,null],[11,"top_left","","Returns (left, top).",39,null],[11,"bot_right","","Returns (right, bottom).",39,null],[11,"from","","",39,null],[11,"from","","",39,null],[11,"add","","",39,null],[11,"sub","","",39,null],[11,"div","","",39,null],[11,"mul","","",39,null],[0,"theme","cursive","Handle colors and themes in the UI.",null,null],[3,"Theme","cursive::theme","Represents the style a Cursive application will use.",null,null],[12,"shadow","","Wheter views in a StackView should have shadows.",40,null],[12,"borders","","How view borders should be drawn.",40,null],[12,"colors","","What colors should be used through the application?",40,null],[3,"Palette","","Color configuration for the application.",null,null],[12,"background","","Color used for the application background.",41,null],[12,"shadow","","Color used for View shadows.",41,null],[12,"view","","Color used for View backgrounds.",41,null],[12,"primary","","Primary color used for the text.",41,null],[12,"secondary","","Secondary color used for the text.",41,null],[12,"tertiary","","Tertiary color used for the text.",41,null],[12,"title_primary","","Primary color used for title text.",41,null],[12,"title_secondary","","Secondary color used for title text.",41,null],[12,"highlight","","Color used for highlighting text.",41,null],[12,"highlight_inactive","","Color used for highlighting inactive text.",41,null],[4,"Effect","","Text effect",null,null],[13,"Simple","","No effect",42,null],[13,"Reverse","","Reverses foreground and background colors",42,null],[4,"ColorStyle","","Possible color style for a cell.",null,null],[13,"Background","","Application background, where no view is present.",43,null],[13,"Shadow","","Color used by view shadows. Only background matters.",43,null],[13,"Primary","","Main text with default background.",43,null],[13,"Secondary","","Secondary text color, with default background.",43,null],[13,"Tertiary","","Tertiary text color, with default background.",43,null],[13,"TitlePrimary","","Title text color with default background.",43,null],[13,"TitleSecondary","","Alternative color for a title.",43,null],[13,"Highlight","","Alternate text with highlight background.",43,null],[13,"HighlightInactive","","Highlight color for inactive views (not in focus).",43,null],[4,"BorderStyle","","Specifies how some borders should be drawn.",null,null],[13,"Simple","","Simple borders.",44,null],[13,"Outset","","Outset borders with a simple 3d effect.",44,null],[4,"BaseColor","","One of the 8 base colors.",null,null],[13,"Black","","Black color",45,null],[13,"Red","","Red color",45,null],[13,"Green","","Green color",45,null],[13,"Yellow","","Yellow color (Red + Green)",45,null],[13,"Blue","","Blue color",45,null],[13,"Magenta","","Magenta color (Red + Blue)",45,null],[13,"Cyan","","Cyan color (Green + Blue)",45,null],[13,"White","","White color (Red + Green + Blue)",45,null],[4,"Color","","Represents a color used by the theme.",null,null],[13,"Dark","","One of the 8 base colors.",46,null],[13,"Light","","Lighter version of a base color.",46,null],[13,"Rgb","","True-color, 24-bit.",46,null],[13,"RgbLowRes","","Low-resolution",46,null],[4,"Error","","Possible error returned when loading a theme.",null,null],[13,"Io","","An error occured when reading the file.",47,null],[13,"Parse","","An error occured when parsing the toml content.",47,null],[5,"load_theme_file","","Loads a theme from file and sets it as active.",null,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[5,"load_theme","","Loads a theme string and sets it as active.",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"load_default","","Loads the default theme, and returns its representation.",null,{"inputs":[],"output":{"name":"theme"}}],[11,"fmt","","",42,null],[11,"clone","","",42,null],[11,"clone","","",43,null],[11,"id","","Returns the ncurses pair ID associated with this color pair.",43,null],[11,"fmt","","",40,null],[11,"clone","","",40,null],[11,"default","","",40,{"inputs":[],"output":{"name":"self"}}],[11,"activate","","Sets a theme as active.",40,null],[11,"fmt","","",44,null],[11,"clone","","",44,null],[11,"fmt","","",41,null],[11,"clone","","",41,null],[11,"fmt","","",45,null],[11,"clone","","",45,null],[11,"fmt","","",46,null],[11,"clone","","",46,null],[11,"fmt","","",47,null],[11,"from","","",47,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[0,"align","cursive","Tools to control view alignment",null,null],[3,"Align","cursive::align","Specifies the alignment along both horizontal and vertical directions.",null,null],[12,"h","","Horizontal alignment policy",48,null],[12,"v","","Vertical alignment policy",48,null],[4,"HAlign","","Horizontal alignment",null,null],[13,"Left","","Place the element to the left of available space",49,null],[13,"Center","","Place the element horizontally in the center of available space",49,null],[13,"Right","","Place the element to the right of available space",49,null],[4,"VAlign","","Vertical alignment",null,null],[13,"Top","","Place the element at the top of available space",50,null],[13,"Center","","Place the element vertically in the center of available space",50,null],[13,"Bottom","","Place the element at the bottom of available space",50,null],[11,"new","","Creates a new Align object from the given alignments.",48,{"inputs":[{"name":"halign"},{"name":"valign"}],"output":{"name":"self"}}],[11,"top_left","","Creates a top-left alignment.",48,{"inputs":[],"output":{"name":"self"}}],[11,"top_right","","Creates a top-right alignment.",48,{"inputs":[],"output":{"name":"self"}}],[11,"bot_left","","Creates a bottom-left alignment.",48,{"inputs":[],"output":{"name":"self"}}],[11,"bot_right","","Creates a bottom-right alignment.",48,{"inputs":[],"output":{"name":"self"}}],[11,"center","","Creates an alignment centered both horizontally and vertically.",48,{"inputs":[],"output":{"name":"self"}}],[11,"get_offset","","Returns the offset required to position a view.",49,null],[11,"get_offset","","Returns the offset required to position a view.",50,null],[0,"menu","cursive","Build menu trees.",null,null],[3,"MenuTree","cursive::menu","Root of a menu tree.",null,null],[12,"children","","Menu items",51,null],[4,"MenuItem","","Node in the menu tree.",null,null],[13,"Leaf","","Actionnable button with a label.",52,null],[13,"Subtree","","Sub-menu with a label.",52,null],[13,"Delimiter","","Delimiter without a label.",52,null],[11,"default","","",51,{"inputs":[],"output":{"name":"menutree"}}],[11,"label","","Returns the label for this item.",52,null],[11,"is_delimiter","","Returns `true` if `self` is a delimiter.",52,null],[11,"is_subtree","","Returns `true` if `self` is a subtree.",52,null],[11,"new","","Creates a new, empty tree.",51,{"inputs":[],"output":{"name":"self"}}],[11,"len","","Returns the number of children, including delimiters.",51,null],[11,"clear","","Remove every children from this tree.",51,null],[11,"is_empty","","Returns `true` if this tree has no children.",51,null],[11,"add_delimiter","","Adds a delimiter to the end of this tree.",51,null],[11,"delimiter","","Adds a delimiter to the end of this tree - chainable variant.",51,null],[11,"add_leaf","","Adds a actionnable leaf to the end of this tree.",51,null],[11,"leaf","","Adds a actionnable leaf to the end of this tree - chainable variant.",51,null],[11,"add_subtree","","Adds a submenu to the end of this tree.",51,null],[11,"subtree","","Adds a submenu to the end of this tree - chainable variant.",51,null],[0,"direction","cursive","Direction-related structures.",null,null],[4,"Orientation","cursive::direction","Describes a vertical or horizontal orientation for a view.",null,null],[13,"Horizontal","","Horizontal orientation",53,null],[13,"Vertical","","Vertical orientation",53,null],[4,"Direction","","Represents a direction, either absolute or orientation-dependent.",null,null],[13,"Abs","","An absolute direction.",54,null],[13,"Rel","","A direction relative to the current orientation.",54,null],[4,"Relative","","Direction relative to an orientation.",null,null],[13,"Front","","Front relative direction.",55,null],[13,"Back","","Back relative direction.",55,null],[4,"Absolute","","Absolute direction (up, down, left, right).",null,null],[13,"Left","","Left",56,null],[13,"Up","","Up",56,null],[13,"Right","","Right",56,null],[13,"Down","","Down",56,null],[13,"None","","No real direction.",56,null],[11,"eq","","",53,null],[11,"fmt","","",53,null],[11,"clone","","",53,null],[11,"get","","Returns the component of `v` corresponding to this orientation.",53,null],[11,"swap","","Returns the other orientation.",53,null],[11,"get_ref","","Returns a mutable reference to the component of the given vector\ncorresponding to this orientation.",53,null],[11,"stack","","Takes an iterator on sizes, and stack them in the current orientation,\nreturning the size of the required bounding box.",53,null],[11,"make_vec","","Creates a new `Vec2` with `value` in `self`'s axis.",53,null],[11,"eq","","",54,null],[11,"ne","","",54,null],[11,"clone","","",54,null],[11,"fmt","","",54,null],[11,"relative","","Returns the relative direction for the given orientation.",54,null],[11,"absolute","","Returns the absolute direction in the given `orientation`.",54,null],[11,"back","","Shortcut to create `Direction::Rel(Relative::Back)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"front","","Shortcut to create `Direction::Rel(Relative::Front)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"left","","Shortcut to create `Direction::Abs(Absolute::Left)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"right","","Shortcut to create `Direction::Abs(Absolute::Right)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"up","","Shortcut to create `Direction::Abs(Absolute::Up)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"down","","Shortcut to create `Direction::Abs(Absolute::Down)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"none","","Shortcut to create `Direction::Abs(Absolute::None)`",54,{"inputs":[],"output":{"name":"self"}}],[11,"eq","","",55,null],[11,"clone","","",55,null],[11,"fmt","","",55,null],[11,"absolute","","Returns the absolute direction in the given `orientation`.",55,null],[11,"eq","","",56,null],[11,"clone","","",56,null],[11,"fmt","","",56,null],[11,"relative","","Returns the relative direction for the given orientation.",56,null],[0,"utils","cursive","Toolbox to make text layout easier.",null,null],[3,"LinesIterator","cursive::utils","Generates rows of text in constrained width.",null,null],[3,"Row","","Represents a row of text within a `String`.",null,null],[12,"start","","Beginning of the row in the parent `String`.",57,null],[12,"end","","End of the row (excluded)",57,null],[12,"width","","Width of the row, in cells.",57,null],[3,"ProgressReader","","Wrapper around a `Read` that reports the progress made.",null,null],[5,"prefix_length","","Computes the length of a prefix that fits in the given `width`.",null,{"inputs":[{"name":"i"},{"name":"usize"},{"name":"str"}],"output":{"name":"usize"}}],[5,"suffix_length","","Computes the length of a suffix that fits in the given `width`.",null,{"inputs":[{"name":"i"},{"name":"usize"},{"name":"str"}],"output":{"name":"usize"}}],[5,"simple_suffix_length","","Computes the length of a suffix that fits in the given `width`.",null,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"usize"}}],[11,"new","","Returns a new `LinesIterator` on `content`.",58,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"self"}}],[11,"show_spaces","","Leave a blank cell at the end of lines.",58,null],[11,"clone","","",57,null],[11,"fmt","","",57,null],[11,"shift","","Shift a row start and end by `offset`.",57,null],[11,"shifted","","Shift a row start and end by `offset`.",57,null],[11,"rev_shift","","Shift back a row start and end by `offset`.",57,null],[11,"next","","",58,null],[11,"new","","Creates a new `ProgressReader` around `reader`.",59,{"inputs":[{"name":"counter"},{"name":"r"}],"output":{"name":"self"}}],[11,"deconstruct","","Unwraps this `ProgressReader`, returning the reader and counter.",59,null],[11,"read","","",59,null],[11,"clone","cursive","",1,null],[11,"new","","Creates a new printer on the given window.",1,{"inputs":[{"name":"t"},{"name":"theme"}],"output":{"name":"self"}}],[11,"print","","Prints some text at the given position relative to the window.",1,null],[11,"print_vline","","Prints a vertical line using the given character.",1,null],[11,"print_hline","","Prints a horizontal line using the given character.",1,null],[11,"with_color","","Call the given closure with a colored printer,\nthat will apply the given color on prints.",1,null],[11,"with_effect","","Same as `with_color`, but apply a ncurses style instead,\nlike `ncurses::A_BOLD()` or `ncurses::A_REVERSE()`.",1,null],[11,"print_box","","Prints a rectangular box.",1,null],[11,"with_selection","","Apply a selection style and call the given function.",1,null],[11,"print_hdelim","","Prints a horizontal delimiter with side border `├` and `┤`.",1,null],[11,"sub_printer","","Returns a printer on a subset of this one's area.",1,null],[11,"offset","","Returns a sub-printer with the given offset.",1,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"new","","Creates a new `XY` from the given values.",0,{"inputs":[{"name":"t"},{"name":"t"}],"output":{"name":"self"}}],[11,"map","","Creates a new `XY` by applying `f` to `x` and `y`.",0,null],[11,"pair","","Destructure self into a pair.",0,null],[11,"as_ref","","Return a `XY` with references to this one's values.",0,null],[11,"iter","","Creates an iterator that returns references to `x`, then `y`.",0,null],[11,"get","","Returns a reference to the value on the given axis.",0,null],[11,"zip","","Returns a new `XY` of tuples made by zipping `self` and `other`.",0,null],[11,"zip_map","","Returns a new `XY` by calling `f` on `self` and `other` for each axis.",0,null],[11,"unwrap_or","","Returns a new `XY` by calling `unwrap_or` on each axis.",0,null],[11,"any","","Returns `true` if any of `x` or `y` is `true`.",0,null],[11,"both","","Returns `true` if both `x` and `y` are `true`.",0,null],[11,"both_from","","Creates a `XY` with both `x` and `y` set to `value`.",0,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"from","","",0,null],[11,"with","cursive::prelude","Calls the given closure on `self`.",2,null],[6,"ScreenId","cursive","Identifies a screen in the cursive ROOT.",null,null],[8,"With","","Generic trait to enable chainable API",null,null],[11,"with","cursive::prelude","Calls the given closure on `self`.",2,null],[11,"default","cursive","",60,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new Cursive root, and initialize ncurses.",60,{"inputs":[],"output":{"name":"self"}}],[11,"cb_sink","","Returns a sink for asynchronous callbacks.",60,null],[11,"select_menubar","","Selects the menubar",60,null],[11,"set_autohide_menu","","Sets the menubar autohide_menubar feature.",60,null],[11,"menubar","","Retrieve the menu tree used by the menubar.",60,null],[11,"current_theme","","Returns the currently used theme",60,null],[11,"set_theme","","Sets the current theme.",60,null],[11,"load_theme_file","","Loads a theme from the given file.",60,null],[11,"load_theme","","Loads a theme from the given string content.",60,null],[11,"set_fps","","Sets the refresh rate, in frames per second.",60,null],[11,"screen","","Returns a reference to the currently active screen.",60,null],[11,"screen_mut","","Returns a mutable reference to the currently active screen.",60,null],[11,"add_screen","","Adds a new screen, and returns its ID.",60,null],[11,"add_active_screen","","Convenient method to create a new screen, and set it as active.",60,null],[11,"set_screen","","Sets the active screen. Panics if no such screen exist.",60,null],[11,"find","","Tries to find the view pointed to by the given path.",60,null],[11,"find_id","","Convenient method to use `find` with a `view::Selector::Id`.",60,null],[11,"add_global_callback","","Adds a global callback.",60,null],[11,"add_layer","","Convenient method to add a layer to the current screen.",60,null],[11,"pop_layer","","Convenient method to remove a layer from the current screen.",60,null],[11,"screen_size","","Returns the size of the screen, in characters.",60,null],[11,"run","","Runs the event loop.",60,null],[11,"quit","","Stops the event loop.",60,null],[11,"drop","","",60,null],[14,"wrap_impl!","","Convenient macro to implement the ViewWrapper trait.",null,null],[11,"wrap_draw","cursive::view","Wraps the `draw` method.",15,null],[11,"wrap_get_min_size","","Wraps the `get_min_size` method.",15,null],[11,"wrap_on_event","","Wraps the `on_event` method.",15,null],[11,"wrap_layout","","Wraps the `layout` method.",15,null],[11,"wrap_take_focus","","Wraps the `take_focus` method.",15,null],[11,"wrap_find","","Wraps the `find` method.",15,null],[11,"wrap_needs_relayout","","Wraps the `needs_relayout` method.",15,null],[11,"center","","Returns a position centered on both axis.",61,{"inputs":[],"output":{"name":"self"}}],[11,"absolute","","Returns a position absolute on both axis.",61,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"parent","","Returns a position relative to the parent on both axis.",61,{"inputs":[{"name":"t"}],"output":{"name":"self"}}],[11,"compute_offset","","Computes the offset required to draw a view.",61,null]],"paths":[[3,"XY"],[3,"Printer"],[8,"With"],[8,"Boxable"],[8,"Identifiable"],[4,"EventResult"],[4,"Key"],[4,"Event"],[3,"Callback"],[3,"ScrollBase"],[3,"SizeCache"],[3,"ViewPath"],[4,"Offset"],[4,"SizeConstraint"],[4,"Selector"],[8,"ViewWrapper"],[8,"View"],[3,"Menubar"],[3,"Counter"],[3,"SizedView"],[3,"TrackedView"],[3,"BoxView"],[3,"Button"],[3,"Checkbox"],[3,"Dialog"],[3,"DummyView"],[3,"EditView"],[3,"IdView"],[3,"KeyEventView"],[3,"LinearLayout"],[3,"ListView"],[3,"MenuPopup"],[3,"Panel"],[3,"ProgressBar"],[3,"SelectView"],[3,"ShadowView"],[3,"StackView"],[3,"TextArea"],[3,"TextView"],[3,"Vec4"],[3,"Theme"],[3,"Palette"],[4,"Effect"],[4,"ColorStyle"],[4,"BorderStyle"],[4,"BaseColor"],[4,"Color"],[4,"Error"],[3,"Align"],[4,"HAlign"],[4,"VAlign"],[3,"MenuTree"],[4,"MenuItem"],[4,"Orientation"],[4,"Direction"],[4,"Relative"],[4,"Absolute"],[3,"Row"],[3,"LinesIterator"],[3,"ProgressReader"],[3,"Cursive"],[6,"Position"]]}; initSearch(searchIndex);