/**
 * Selection code
 * (C) Nettle developers 2000-2001
 *
 * $Id: seln,v 1.10 2001/09/12 18:15:55 archifishal Exp $
 */

#ifndef SELN_H
#define SELN_H

#define SELECTION_ADJUST_NONE	0
#define SELECTION_ADJUST_START	1
#define SELECTION_ADJUST_END	2

extern void selection_adjust(int, int, int, int);
extern void save_selection(char *, bool);
extern void handle_selection_drag(void);
extern void force_redraw_selection (void);



/**
 * Process click in session that has the caret
 *
 * If the click is not within the selection, this cases the selection
 * to be cleared.
 *
 * @param x      x position of click
 * @param y      y position of click
 * @param x_pos  x position of window origin on screen
 * @param y_pos  y position of window origin on screen
 */
extern void selection_click(int x, int x_pos, int y, int y_pos);



/**
 * Paste the current selection into the current selection session's socket
 */
extern void selection_paste(struct session_struct *);

#endif
