gtk2/gtk/gtktextprivate.h
Matthias Clasen 1801bf6d83 Add a GtkText widget
This is a GtkEntry without any of the extras, such as
icons, completion, progress, caps-lock warning, emoji icon.
2019-02-18 14:24:21 -05:00

47 lines
1.9 KiB
C

/* gtkentryprivate.h
* Copyright (C) 2019 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_TEXT_PRIVATE_H__
#define __GTK_TEXT_PRIVATE_H__
#include "gtktext.h"
#include "gtkeventcontroller.h"
#include "gtkimcontext.h"
G_BEGIN_DECLS
char * gtk_text_get_display_text (GtkText *entry,
int start_pos,
int end_pos);
GtkIMContext * gtk_text_get_im_context (GtkText *entry);
void gtk_text_enter_text (GtkText *entry,
const char *text);
void gtk_text_set_positions (GtkText *entry,
int current_pos,
int selection_bound);
PangoLayout * gtk_text_get_layout (GtkText *entry);
void gtk_text_get_layout_offsets (GtkText *entry,
int *x,
int *y);
void gtk_text_reset_im_context (GtkText *entry);
GtkEventController *gtk_text_get_key_controller (GtkText *entry);
G_END_DECLS
#endif /* __GTK_TEXT_PRIVATE_H__ */