2005-07-16 21:49:01 -07:00
|
|
|
/*
|
|
|
|
* mooterm/mooterm-selection.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2005 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOOTERM_MOOTERM_SELECTION_H
|
|
|
|
#define MOOTERM_MOOTERM_SELECTION_H
|
|
|
|
|
2005-07-19 02:43:44 -07:00
|
|
|
#include <mooterm/mooterm.h>
|
2005-07-16 21:49:01 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
NOT_SELECTED = 0,
|
|
|
|
FULL_SELECTED = 1,
|
|
|
|
PART_SELECTED = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2005-07-19 02:43:44 -07:00
|
|
|
gboolean moo_term_selection_empty (MooTerm *term);
|
2005-07-16 21:49:01 -07:00
|
|
|
|
2005-07-19 02:43:44 -07:00
|
|
|
gpointer term_selection_new (MooTerm *term);
|
2005-07-16 21:49:01 -07:00
|
|
|
|
|
|
|
|
2005-07-19 02:43:44 -07:00
|
|
|
void moo_term_selection_clear (MooTerm *term);
|
|
|
|
char *moo_term_selection_get_text (MooTerm *term);
|
2005-07-19 02:52:05 -07:00
|
|
|
int moo_term_row_selected (MooTerm *term,
|
2005-07-19 02:43:44 -07:00
|
|
|
guint row);
|
2005-07-19 02:52:05 -07:00
|
|
|
gboolean moo_term_cell_selected (MooTerm *term,
|
2005-07-19 02:43:44 -07:00
|
|
|
guint row,
|
|
|
|
guint col);
|
|
|
|
gboolean moo_term_get_selection_bounds (MooTerm *term,
|
|
|
|
guint *left_row,
|
|
|
|
guint *left_col,
|
|
|
|
guint *right_row,
|
|
|
|
guint *right_col);
|
2005-07-16 21:49:01 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* MOOTERM_MOOTERM_SELECTION_H */
|