Back to index

texmacs  1.0.7.15
tree_cursor.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : tree_cursor.hpp
00004 * DESCRIPTION: abstract cursor handling
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef TREE_CURSOR_H
00013 #define TREE_CURSOR_H
00014 #include "path.hpp"
00015 
00016 bool is_inside (tree t, path p);
00017 path closest_inside (tree t, path p);
00018 bool is_accessible_cursor (tree t, path p);
00019 path closest_accessible (tree t, path p);
00020 void show_hidden_upwards (tree t, path p);
00021 
00022 bool valid_cursor (tree t, path p, bool start_flag= false);
00023 path start (tree t, path p);
00024 path end (tree t, path p);
00025 path start (tree t);
00026 path end (tree t);
00027 path correct_cursor (tree t, path p, bool forwards= false);
00028 path super_correct (tree t, path p, bool forwards= false);
00029 path shift (tree t, path p, int dir);
00030 
00031 #endif // defined TREE_CURSOR_H