/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
 *
 * This file is part of CtkSourceView
 *
 * Copyright (C) 2007 - 2009 Jesús Barbero Rodríguez <chuchiperriman@gmail.com>
 * Copyright (C) 2009 - Jesse van den Kieboom <jessevdk@gnome.org>
 *
 * CtkSourceView is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * CtkSourceView is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * 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, see <http://www.gnu.org/licenses/>.
 */

#ifndef CTK_SOURCE_COMPLETION_INFO_H
#define CTK_SOURCE_COMPLETION_INFO_H

#if !defined (CTK_SOURCE_H_INSIDE) && !defined (CTK_SOURCE_COMPILATION)
#error "Only <ctksourceview/ctksource.h> can be included directly."
#endif

#include <ctk/ctk.h>
#include <ctksourceview/ctksourcetypes.h>

G_BEGIN_DECLS

#define CTK_SOURCE_TYPE_COMPLETION_INFO             (ctk_source_completion_info_get_type ())
#define CTK_SOURCE_COMPLETION_INFO(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), CTK_SOURCE_TYPE_COMPLETION_INFO, CtkSourceCompletionInfo))
#define CTK_SOURCE_COMPLETION_INFO_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), CTK_SOURCE_TYPE_COMPLETION_INFO, CtkSourceCompletionInfoClass)
#define CTK_SOURCE_IS_COMPLETION_INFO(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CTK_SOURCE_TYPE_COMPLETION_INFO))
#define CTK_SOURCE_IS_COMPLETION_INFO_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), CTK_SOURCE_TYPE_COMPLETION_INFO))
#define CTK_SOURCE_COMPLETION_INFO_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), CTK_SOURCE_TYPE_COMPLETION_INFO, CtkSourceCompletionInfoClass))

typedef struct _CtkSourceCompletionInfoPrivate CtkSourceCompletionInfoPrivate;

struct _CtkSourceCompletionInfo
{
	CtkWindow parent;

	CtkSourceCompletionInfoPrivate *priv;
};

typedef struct _CtkSourceCompletionInfoClass CtkSourceCompletionInfoClass;

struct _CtkSourceCompletionInfoClass
{
	CtkWindowClass parent_class;

	gpointer padding[10];
};

CTK_SOURCE_AVAILABLE_IN_ALL
GType		 ctk_source_completion_info_get_type		(void) G_GNUC_CONST;

CTK_SOURCE_AVAILABLE_IN_ALL
CtkSourceCompletionInfo *
		 ctk_source_completion_info_new			(void);

CTK_SOURCE_AVAILABLE_IN_ALL
void		 ctk_source_completion_info_move_to_iter	(CtkSourceCompletionInfo *info,
								 CtkTextView             *view,
								 CtkTextIter             *iter);

G_GNUC_INTERNAL
void		 _ctk_source_completion_info_set_xoffset	(CtkSourceCompletionInfo *info,
								 gint                     xoffset);

G_END_DECLS

#endif /* CTK_SOURCE_COMPLETION_INFO_H */
