Blame gtk/gtkentryprivate.h

Packit 98cdb6
/* gtkentryprivate.h
Packit 98cdb6
 * Copyright (C) 2003  Kristian Rietveld  <kris@gtk.org>
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GTK_ENTRY_PRIVATE_H__
Packit 98cdb6
#define __GTK_ENTRY_PRIVATE_H__
Packit 98cdb6
Packit 98cdb6
#include <gtk/gtktreeviewcolumn.h>
Packit 98cdb6
#include <gtk/gtktreemodelfilter.h>
Packit 98cdb6
#include <gtk/gtkliststore.h>
Packit 98cdb6
#include <gtk/gtkentrycompletion.h>
Packit 98cdb6
#include <gtk/gtkentry.h>
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
struct _GtkEntryCompletionPrivate
Packit 98cdb6
{
Packit 98cdb6
  GtkWidget *entry;
Packit 98cdb6
Packit 98cdb6
  GtkWidget *tree_view;
Packit 98cdb6
  GtkTreeViewColumn *column;
Packit 98cdb6
  GtkTreeModelFilter *filter_model;
Packit 98cdb6
  GtkListStore *actions;
Packit 98cdb6
  gboolean first_sel_changed;
Packit 98cdb6
Packit 98cdb6
  GtkEntryCompletionMatchFunc match_func;
Packit 98cdb6
  gpointer match_data;
Packit 98cdb6
  GDestroyNotify match_notify;
Packit 98cdb6
Packit 98cdb6
  gint minimum_key_length;
Packit 98cdb6
  gint text_column;
Packit 98cdb6
  gint current_selected;
Packit 98cdb6
Packit 98cdb6
  gchar *case_normalized_key;
Packit 98cdb6
Packit 98cdb6
  /* only used by GtkEntry when attached: */
Packit 98cdb6
  GtkWidget *popup_window;
Packit 98cdb6
  GtkWidget *vbox;
Packit 98cdb6
  GtkWidget *scrolled_window;
Packit 98cdb6
  GtkWidget *action_view;
Packit 98cdb6
Packit 98cdb6
  gulong completion_timeout;
Packit 98cdb6
  gulong changed_id;
Packit 98cdb6
  gulong insert_text_id;
Packit 98cdb6
Packit 98cdb6
  guint ignore_enter      : 1;
Packit 98cdb6
  guint has_completion    : 1;
Packit 98cdb6
  guint inline_completion : 1;
Packit 98cdb6
  guint popup_completion  : 1;
Packit 98cdb6
  guint popup_set_width   : 1;
Packit 98cdb6
  guint popup_single_match : 1;
Packit 98cdb6
  guint inline_selection   : 1;
Packit 98cdb6
Packit 98cdb6
  gchar *completion_prefix;
Packit 98cdb6
Packit 98cdb6
  GSource *check_completion_idle;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
gboolean _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);
Packit 98cdb6
void     _gtk_entry_completion_popup        (GtkEntryCompletion *completion);
Packit 98cdb6
void     _gtk_entry_completion_popdown      (GtkEntryCompletion *completion);
Packit 98cdb6
gchar *  _gtk_entry_completion_compute_prefix (GtkEntryCompletion *completion,
Packit 98cdb6
					       const char         *key);
Packit 98cdb6
Packit 98cdb6
void      _gtk_entry_get_borders            (GtkEntry  *entry,
Packit 98cdb6
					     gint      *xborder,
Packit 98cdb6
					     gint      *yborder);
Packit 98cdb6
void     _gtk_entry_effective_inner_border (GtkEntry  *entry,
Packit 98cdb6
					    GtkBorder *border);
Packit 98cdb6
void     _gtk_entry_reset_im_context       (GtkEntry  *entry);
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __GTK_ENTRY_PRIVATE_H__ */