Widget_find_preorder   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/gui.xtm

Implementation

;; returns the first widget for which pred returns true
(bind-func Widget_find_preorder
  (lambda (widget:Widget* pred:[i1,Widget*]*)
    (if (and (not (null? widget)) (pred widget))
        widget
        (if (not (null? widget))
            (begin
              (let ((left:Widget* (Widget_find_preorder (Widget_left_child widget) pred)))
                (if (not (null? left))
                  left
                  (Widget_find_preorder (Widget_right_child widget) pred))))
            null))))


Back to Index

Similar Entries

  • BTree_walk_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/core/adt.xtm
  • Widget_button    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_button    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_button_c    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_cb    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_checkbox    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_checkbox    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_checkbox_c    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_child_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_find_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_find_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_free    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_internal_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_leaf_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_left_child    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_parent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_parent_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_radio    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_radio    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_radio_c    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_right_child    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_cb    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_left_child    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_parent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_right_child    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_split    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_set_type    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider2D    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider2D    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider2D_c    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_slider_c    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_split    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_split_horizontal_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_split_vertical_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_swap_children    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_swap_split_orientation    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_type    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_type_add_flags    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_type_remove_flags    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_walk_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_walk_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_walk_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • Widget_with_cb    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • aiProcess_FindDegenerates    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_FindInstances    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • aiProcess_FindInvalidData    scheme    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • ai_find_matching_node    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm
  • cl:find-if    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • find_node    xtlang    /digego/extempore/tree/v0.8.9/examples/core/godot_test1.xtm
  • find_peaks    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • find_peaks_log    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • find_previous_peak    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/TSM_library.xtm
  • find_sexprs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • find_sqr_exprs    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/cas.xtm
  • get_find_handler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • gui_add_widget    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_add_widget    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_inorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_postorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_leaf_preorder    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_next_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_parent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • gui_find_widget_with_id    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • iffchunk_find_dumb    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • iffchunk_find_smart    xtlang    /digego/extempore/tree/v0.8.9/libs/core/audiobuffer.xtm
  • impc:compiler:print-could-not-resolve-types_find-expr    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:find-all-vars    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:find-unresolved-simple-types    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • instrument_find_note    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments.xtm
  • pc:find-closest    scheme    /digego/extempore/tree/v0.8.9/libs/core/pc_ivl.xtm
  • xtm_find_bone    xtlang    /digego/extempore/tree/v0.8.9/libs/external/assimp.xtm