blob: 0cd23dbcc1c41964a23d3926542f9645faa08b1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
#define UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
#pragma once
#include <pango/pango-attributes.h>
#include "ui/ui_api.h"
namespace ui {
struct CompositionText;
// Extracts composition text information (text, underlines, selection range)
// from given Gtk preedit data (utf-8 text, pango attributes, cursor position).
UI_API void ExtractCompositionTextFromGtkPreedit(const gchar* utf8_text,
PangoAttrList* attrs,
int cursor_position,
CompositionText* composition);
} // namespace ui
#endif // UI_BASE_GTK_GTK_IM_CONTEXT_UTIL_H_
|