Widget_swap_children   xtlang


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

Implementation

(bind-func Widget_swap_children
  (lambda (widget)
    (if (Widget_leaf_p widget)
        (println "gui_flip_widgets: cannot flip leaf widgets")
        (let ((old_left (Widget_left_child widget)))
          ;; swap the child widgets
          (Widget_set_left_child widget (Widget_right_child widget))
          (Widget_set_right_child widget old_left)
          void))))


Back to Index

Similar Entries

  • Widget_button    xtlang
  • Widget_button    xtlang
  • Widget_button_c    xtlang
  • Widget_cb    xtlang
  • Widget_checkbox    xtlang
  • Widget_checkbox    xtlang
  • Widget_checkbox_c    xtlang
  • Widget_child_p    xtlang
  • Widget_find_inorder    xtlang
  • Widget_find_postorder    xtlang
  • Widget_find_preorder    xtlang
  • Widget_free    xtlang
  • Widget_id    xtlang
  • Widget_internal_p    xtlang
  • Widget_leaf_p    xtlang
  • Widget_left_child    xtlang
  • Widget_parent    xtlang
  • Widget_parent_p    xtlang
  • Widget_radio    xtlang
  • Widget_radio    xtlang
  • Widget_radio_c    xtlang
  • Widget_right_child    xtlang
  • Widget_set_cb    xtlang
  • Widget_set_left_child    xtlang
  • Widget_set_parent    xtlang
  • Widget_set_right_child    xtlang
  • Widget_set_split    xtlang
  • Widget_set_type    xtlang
  • Widget_slider    xtlang
  • Widget_slider    xtlang
  • Widget_slider2D    xtlang
  • Widget_slider2D    xtlang
  • Widget_slider2D_c    xtlang
  • Widget_slider_c    xtlang
  • Widget_split    xtlang
  • Widget_split_horizontal_p    xtlang
  • Widget_split_vertical_p    xtlang
  • Widget_swap_split_orientation    xtlang
  • Widget_type    xtlang
  • Widget_type_add_flags    xtlang
  • Widget_type_remove_flags    xtlang
  • Widget_walk_inorder    xtlang
  • Widget_walk_postorder    xtlang
  • Widget_walk_preorder    xtlang
  • Widget_with_cb    xtlang
  • glfw_swap_buffers    xtlang
  • gui_add_widget    xtlang
  • gui_add_widget    xtlang
  • gui_find_widget_with_id    xtlang
  • swap    xtlang
  • swap_bytes_inplace    xtlang
  • xtm_bone_add_children    xtlang