Files
LCUI/include/LCUI/LCUI_TextBox.h
T

86 lines
3.1 KiB
C

/* ***************************************************************************
* LCUI_TextBox.h -- Function declaration for TextBox widget
*
* Copyright (C) 2012 by
* Liu Chao
*
* This file is part of the LCUI project, and may only be used, modified, and
* distributed under the terms of the GPLv2.
*
* (GPLv2 is abbreviation of GNU General Public License Version 2)
*
* By continuing to use, modify, or distribute this file you indicate that you
* have read the license and understand and accept it fully.
*
* The LCUI project 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 GPL v2 for more details.
*
* You should have received a copy of the GPLv2 along with this file. It is
* usually in the LICENSE.TXT file, If not, see <http://www.gnu.org/licenses/>.
* ****************************************************************************/
/* ****************************************************************************
* LCUI_TextBox.h -- 一些文本框部件的操作函数的声明
*
* 版权所有 (C) 2012 归属于
* 刘超
*
* 这个文件是LCUI项目的一部分,并且只可以根据GPLv2许可协议来使用、更改和发布。
*
* (GPLv2 是 GNU通用公共许可证第二版 的英文缩写)
*
* 继续使用、修改或发布本文件,表明您已经阅读并完全理解和接受这个许可协议。
*
* LCUI 项目是基于使用目的而加以散布的,但不负任何担保责任,甚至没有适销性或特
* 定用途的隐含担保,详情请参照GPLv2许可协议。
*
* 您应已收到附随于本文件的GPLv2许可协议的副本,它通常在LICENSE.TXT文件中,如果
* 没有,请查看:<http://www.gnu.org/licenses/>.
* ****************************************************************************/
#ifndef __LCUI_TEXTBOX_H__
#define __LCUI_TEXTBOX_H__
LCUI_BEGIN_HEADER
LCUI_Widget*
TextBox_Get_Label( LCUI_Widget *widget );
/* 获取文本框部件内的label部件指针 */
LCUI_Widget *
TextBox_Get_Cursor( LCUI_Widget *widget );
/* 获取文本框部件内的光标 */
void TextBox_Text(LCUI_Widget *widget, char *new_text);
/* 设定文本框显示的文本 */
void TextBox_Text_Add(LCUI_Widget *widget, char *new_text);
/* 在光标处添加文本 */
int TextBox_Text_Backspace(LCUI_Widget *widget, int n);
/* 删除光标左边处n个字符 */
int TextBox_Text_Delete(LCUI_Widget *widget, int n);
/* 删除光标右边处n个字符 */
void
TextBox_Cursor_Update( LCUI_Widget *widget );
/* 更新文本框的光标 */
int TextBox_Get_Select_Text( LCUI_Widget *widget, char *out_text );
/* 获取文本框内被选中的文本 */
int TextBox_Copy_Select_Text(LCUI_Widget *widget);
/* 复制文本框内被选中的文本 */
int TextBox_Cut_Select_Text(LCUI_Widget *widget);
/* 剪切文本框内被选中的文本 */
void TextBox_Using_StyleTags(LCUI_Widget *widget, BOOL flag);
/* 指定文本框是否处理控制符 */
LCUI_END_HEADER
#endif