* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
/*
#ifndef __GTK_TEXT_ITER_H__
#define __GTK_TEXT_ITER_H__
-#include <gtk/gtktexttag.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtktextattributes.h>
#include <gtk/gtktextchild.h>
+#include <gtk/gtktexttag.h>
G_BEGIN_DECLS
typedef enum {
- GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0,
- GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1
- /* Possible future plans: SEARCH_CASE_INSENSITIVE, SEARCH_REGEXP */
+ GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0,
+ GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1,
+ GTK_TEXT_SEARCH_CASE_INSENSITIVE = 1 << 2
+ /* Possible future plans: SEARCH_REGEXP */
} GtkTextSearchFlags;
/*
GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter);
void gtk_text_iter_free (GtkTextIter *iter);
+GDK_AVAILABLE_IN_3_2
+void gtk_text_iter_assign (GtkTextIter *iter,
+ const GtkTextIter *other);
GType gtk_text_iter_get_type (void) G_GNUC_CONST;
gint count);
gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter,
gint count);
+
+gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter);
+gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter);
+gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter,
+ gint count);
+gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter,
+ gint count);
gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter);
gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter);
gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter,
gint count);
-
void gtk_text_iter_set_offset (GtkTextIter *iter,
gint char_offset);
void gtk_text_iter_set_line (GtkTextIter *iter,
GtkTextIter *match_end,
const GtkTextIter *limit);
-
/*
* Comparisons
*/
G_END_DECLS
#endif
-
-