init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
71
Telegram/ThirdParty/nimf/libnimf/nimf-preeditable.h
vendored
Normal file
71
Telegram/ThirdParty/nimf/libnimf/nimf-preeditable.h
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
|
||||
/*
|
||||
* nimf-preeditable.h
|
||||
* This file is part of Nimf.
|
||||
*
|
||||
* Copyright (C) 2017-2019 Hodong Kim <cogniti@gmail.com>
|
||||
*
|
||||
* Nimf 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Nimf 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 program; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __NIMF_PREEDITABLE_H__
|
||||
#define __NIMF_PREEDITABLE_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "nimf-types.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define NIMF_TYPE_PREEDITABLE nimf_preeditable_get_type ()
|
||||
|
||||
G_DECLARE_INTERFACE (NimfPreeditable, nimf_preeditable, NIMF, PREEDITABLE, GObject)
|
||||
|
||||
/**
|
||||
* NimfPreeditableInterface:
|
||||
* @parent: The parent interface.
|
||||
* @show: Shows the preeditable.
|
||||
* @hide: Hides the preeditable.
|
||||
* @is_visible: Checks if the preeditable is visible.
|
||||
* @set_text: Sets the text in the preeditable to the given value, replacing
|
||||
* the current contents.
|
||||
* @set_cursor_location: Sets the cursor position.
|
||||
*
|
||||
* Provides an interface for preedit gadget.
|
||||
*/
|
||||
struct _NimfPreeditableInterface
|
||||
{
|
||||
GTypeInterface parent;
|
||||
|
||||
void (* show) (NimfPreeditable *preeditable);
|
||||
void (* hide) (NimfPreeditable *preeditable);
|
||||
gboolean (* is_visible) (NimfPreeditable *preeditable);
|
||||
void (* set_text) (NimfPreeditable *preeditable,
|
||||
const gchar *text,
|
||||
gint cursor_pos);
|
||||
void (* set_cursor_location) (NimfPreeditable *preeditable,
|
||||
const NimfRectangle *area);
|
||||
};
|
||||
|
||||
void nimf_preeditable_show (NimfPreeditable *preeditable);
|
||||
void nimf_preeditable_hide (NimfPreeditable *preeditable);
|
||||
gboolean nimf_preeditable_is_visible (NimfPreeditable *preeditable);
|
||||
void nimf_preeditable_set_text (NimfPreeditable *preeditable,
|
||||
const gchar *text,
|
||||
gint cursor_pos);
|
||||
void nimf_preeditable_set_cursor_location (NimfPreeditable *preeditable,
|
||||
const NimfRectangle *area);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __NIMF_PREEDITABLE_H__ */
|
||||
Reference in New Issue
Block a user