mirror of
https://github.com/MidnightCommander/source.git
synced 2026-02-02 11:11:55 -08:00
201 lines
31 KiB
HTML
201 lines
31 KiB
HTML
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
|
<html xmlns='http://www.w3.org/1999/xhtml'>
|
|
<head>
|
|
<title>lib/widget/input.h</title>
|
|
<meta name='robots' content='noindex,nofollow' />
|
|
<meta name='generator' content='GLOBAL-6.6.11' />
|
|
<meta http-equiv='Content-Style-Type' content='text/css' />
|
|
<link rel='stylesheet' type='text/css' href='../style.css' />
|
|
</head>
|
|
<body>
|
|
<!-- beginning of fixed guide -->
|
|
<div id='guide'><ul>
|
|
<li><a href='#L116'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
|
|
<li><a href='#L146'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
|
|
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
|
|
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
|
|
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
|
|
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
|
|
<li class='standout'><span><a href='../files/lib.html'>lib</a>/<a href='../files/lib--widget.html'>widget</a>/input.h</span></li>
|
|
</ul></div>
|
|
<!-- end of fixed guide -->
|
|
<div align='right'>Manual pages:
|
|
<a href=man/mc.html>mc</a> • <a href=man/mcdiff.html>mcdiff</a> • <a href=man/mcedit.html>mcedit</a> • <a href=man/mcview.html>mcview</a>
|
|
</div>
|
|
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/lib.html'>lib</a>/<a href='../files/lib--widget.html'>widget</a>/input.h</h2>
|
|
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L116'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L146'><img class='icon' src='../icons/last.png' alt='[last]' /></a><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a> <input type='text' readonly onfocus='this.select();' value='+1 lib/widget/input.h' /> */</em>
|
|
<hr />
|
|
<h2 class='header'><a href='lib--widget.h.html#L35' title='Included from 35 in lib/widget.h.'>INCLUDED FROM</a></h2>
|
|
<hr />
|
|
<h2 class='header'>DEFINITIONS</h2>
|
|
This source file includes following definitions.
|
|
<ol>
|
|
<li><a href='#L116' title='Defined at 116.'>input_get_text</a></li>
|
|
<li><a href='#L131' title='Defined at 131.'>input_get_ctext</a></li>
|
|
<li><a href='#L146' title='Defined at 146.'>input_is_empty</a></li>
|
|
</ol>
|
|
<hr />
|
|
<pre>
|
|
<a id='L1' name='L1'></a> 1
|
|
<a id='L2' name='L2'></a> 2 <em class='comment'>/** \file input.h</em>
|
|
<a id='L3' name='L3'></a> 3 <em class='comment'> * \brief Header: WInput widget</em>
|
|
<a id='L4' name='L4'></a> 4 <em class='comment'> */</em>
|
|
<a id='L5' name='L5'></a> 5
|
|
<a id='L6' name='L6'></a> 6 <em class='sharp'>#ifndef</em> <a href='../S/lib--widget--input.h.html#L7' title='Defined at 7 in lib/widget/input.h.'>MC__WIDGET_INPUT_H</a>
|
|
<a id='L7' name='L7'></a> 7 <em class='sharp'>#define</em> <a href='../S/lib--widget--input.h.html#L6' title='Referred from 6 in lib/widget/input.h.'>MC__WIDGET_INPUT_H</a>
|
|
<a id='L8' name='L8'></a> 8
|
|
<a id='L9' name='L9'></a> 9 <em class='sharp'>#include</em> <limits.h> <em class='comment'>// MB_LEN_MAX</em>
|
|
<a id='L10' name='L10'></a> 10
|
|
<a id='L11' name='L11'></a> 11 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
|
|
<a id='L12' name='L12'></a> 12
|
|
<a id='L13' name='L13'></a> 13 <em class='sharp'>#define</em> <a href='../R/INPUT.html' title='Multiple referred from 14 places.'>INPUT</a>(<a href='../Y/x.html' title='Multiple used in 677 places.'>x</a>) ((<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *) (<a href='../Y/x.html' title='Multiple used in 677 places.'>x</a>))
|
|
<a id='L14' name='L14'></a> 14
|
|
<a id='L15' name='L15'></a> 15 <em class='comment'>/* For history load-save functions */</em>
|
|
<a id='L16' name='L16'></a> 16 <em class='sharp'>#define</em> <a href='../R/INPUT_LAST_TEXT.html' title='Multiple referred from 21 places.'>INPUT_LAST_TEXT</a> ((<strong class='reserved'>char</strong> *) 2)
|
|
<a id='L17' name='L17'></a> 17
|
|
<a id='L18' name='L18'></a> 18 <em class='comment'>/*** enums ***************************************************************************************/</em>
|
|
<a id='L19' name='L19'></a> 19
|
|
<a id='L20' name='L20'></a> 20 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
|
|
<a id='L21' name='L21'></a> 21 <em class='brace'>{</em>
|
|
<a id='L22' name='L22'></a> 22 <a href='../R/WINPUTC_MAIN.html' title='Multiple referred from 5 places.'>WINPUTC_MAIN</a>, <em class='comment'>// color used</em>
|
|
<a id='L23' name='L23'></a> 23 <a href='../R/WINPUTC_MARK.html' title='Multiple referred from 3 places.'>WINPUTC_MARK</a>, <em class='comment'>// color for marked text</em>
|
|
<a id='L24' name='L24'></a> 24 <a href='../R/WINPUTC_UNCHANGED.html' title='Multiple referred from 3 places.'>WINPUTC_UNCHANGED</a>, <em class='comment'>// color for inactive text (Is first keystroke)</em>
|
|
<a id='L25' name='L25'></a> 25 <a href='../R/WINPUTC_HISTORY.html' title='Multiple referred from 3 places.'>WINPUTC_HISTORY</a>, <em class='comment'>// color for history list</em>
|
|
<a id='L26' name='L26'></a> 26 WINPUTC_COUNT_COLORS <em class='comment'>// count of used colors</em>
|
|
<a id='L27' name='L27'></a> 27 <em class='brace'>}</em> input_colors_enum_t;
|
|
<a id='L28' name='L28'></a> 28
|
|
<a id='L29' name='L29'></a> 29 <em class='comment'>/* completion flags */</em>
|
|
<a id='L30' name='L30'></a> 30 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
|
|
<a id='L31' name='L31'></a> 31 <em class='brace'>{</em>
|
|
<a id='L32' name='L32'></a> 32 <a href='../R/INPUT_COMPLETE_NONE.html' title='Multiple referred from 37 places.'>INPUT_COMPLETE_NONE</a> = 0,
|
|
<a id='L33' name='L33'></a> 33 <a href='../R/INPUT_COMPLETE_FILENAMES.html' title='Multiple referred from 34 places.'>INPUT_COMPLETE_FILENAMES</a> = 1 << 0,
|
|
<a id='L34' name='L34'></a> 34 <a href='../R/INPUT_COMPLETE_HOSTNAMES.html' title='Multiple referred from 8 places.'>INPUT_COMPLETE_HOSTNAMES</a> = 1 << 1,
|
|
<a id='L35' name='L35'></a> 35 <a href='../R/INPUT_COMPLETE_COMMANDS.html' title='Multiple referred from 12 places.'>INPUT_COMPLETE_COMMANDS</a> = 1 << 2,
|
|
<a id='L36' name='L36'></a> 36 <a href='../R/INPUT_COMPLETE_VARIABLES.html' title='Multiple referred from 7 places.'>INPUT_COMPLETE_VARIABLES</a> = 1 << 3,
|
|
<a id='L37' name='L37'></a> 37 <a href='../R/INPUT_COMPLETE_USERNAMES.html' title='Multiple referred from 10 places.'>INPUT_COMPLETE_USERNAMES</a> = 1 << 4,
|
|
<a id='L38' name='L38'></a> 38 <a href='../R/INPUT_COMPLETE_CD.html' title='Multiple referred from 17 places.'>INPUT_COMPLETE_CD</a> = 1 << 5,
|
|
<a id='L39' name='L39'></a> 39 <a href='../R/INPUT_COMPLETE_SHELL_ESC.html' title='Multiple referred from 12 places.'>INPUT_COMPLETE_SHELL_ESC</a> = 1 << 6,
|
|
<a id='L40' name='L40'></a> 40 <em class='brace'>}</em> <a href='../R/input_complete_t.html' title='Multiple referred from 29 places.'>input_complete_t</a>;
|
|
<a id='L41' name='L41'></a> 41
|
|
<a id='L42' name='L42'></a> 42 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
|
|
<a id='L43' name='L43'></a> 43
|
|
<a id='L44' name='L44'></a> 44 <strong class='reserved'>typedef</strong> <strong class='reserved'>int</strong> <a href='../Y/input_colors_t.html' title='Multiple used in 4 places.'>input_colors_t</a>[WINPUTC_COUNT_COLORS];
|
|
<a id='L45' name='L45'></a> 45
|
|
<a id='L46' name='L46'></a> 46 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
|
|
<a id='L47' name='L47'></a> 47 <em class='brace'>{</em>
|
|
<a id='L48' name='L48'></a> 48 <a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> <a href='../Y/widget.html' title='Multiple used in 164 places.'>widget</a>;
|
|
<a id='L49' name='L49'></a> 49
|
|
<a id='L50' name='L50'></a> 50 <a href='../Y/GString.html' title='Multiple used in 317 places.'>GString</a> *<a href='../Y/buffer.html' title='Multiple used in 996 places.'>buffer</a>;
|
|
<a id='L51' name='L51'></a> 51 <strong class='reserved'>const</strong> <strong class='reserved'>int</strong> *<a href='../Y/color.html' title='Multiple used in 171 places.'>color</a>;
|
|
<a id='L52' name='L52'></a> 52 <strong class='reserved'>int</strong> <a href='../Y/point.html' title='Multiple used in 59 places.'>point</a>; <em class='comment'>// cursor position in the input line in characters</em>
|
|
<a id='L53' name='L53'></a> 53 <strong class='reserved'>int</strong> <a href='../Y/mark.html' title='Multiple used in 33 places.'>mark</a>; <em class='comment'>// the mark position in characters; negative value means no marked text</em>
|
|
<a id='L54' name='L54'></a> 54 <strong class='reserved'>int</strong> <a href='../Y/term_first_shown.html' title='Multiple used in 17 places.'>term_first_shown</a>; <em class='comment'>// column of the first shown character</em>
|
|
<a id='L55' name='L55'></a> 55 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/first.html' title='Multiple used in 49 places.'>first</a>; <em class='comment'>// is first keystroke?</em>
|
|
<a id='L56' name='L56'></a> 56 <strong class='reserved'>int</strong> <a href='../Y/disable_update.html' title='Multiple used in 5 places.'>disable_update</a>; <em class='comment'>// do we want to skip updates?</em>
|
|
<a id='L57' name='L57'></a> 57 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/is_password.html' title='Multiple used in 5 places.'>is_password</a>; <em class='comment'>// is this a password input line?</em>
|
|
<a id='L58' name='L58'></a> 58 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/init_from_history.html' title='Multiple used in 4 places.'>init_from_history</a>; <em class='comment'>// init text will be get from history</em>
|
|
<a id='L59' name='L59'></a> 59 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/need_push.html' title='Multiple used in 15 places.'>need_push</a>; <em class='comment'>// need to push the current Input on hist?</em>
|
|
<a id='L60' name='L60'></a> 60 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/strip_password.html' title='Multiple used in 12 places.'>strip_password</a>; <em class='comment'>// need to strip password before placing string to history</em>
|
|
<a id='L61' name='L61'></a> 61 <a href='../Y/GPtrArray.html' title='Multiple used in 93 places.'>GPtrArray</a> *<a href='../Y/completions.html' title='Multiple used in 19 places.'>completions</a>; <em class='comment'>// possible completions array</em>
|
|
<a id='L62' name='L62'></a> 62 <a href='../S/lib--widget--input.h.html#L40' title='Defined at 40 in lib/widget/input.h.'>input_complete_t</a> <a href='../Y/completion_flags.html' title='Multiple used in 23 places.'>completion_flags</a>;
|
|
<a id='L63' name='L63'></a> 63 <strong class='reserved'>char</strong> <a href='../Y/charbuf.html' title='Multiple used in 15 places.'>charbuf</a>[<a href='../Y/MB_LEN_MAX.html' title='Multiple used in 38 places.'>MB_LEN_MAX</a>]; <em class='comment'>// buffer for multibytes characters</em>
|
|
<a id='L64' name='L64'></a> 64 <a href='../Y/size_t.html' title='Multiple used in 711 places.'>size_t</a> <a href='../Y/charpoint.html' title='Multiple used in 38 places.'>charpoint</a>; <em class='comment'>// point to end of mulibyte sequence in charbuf</em>
|
|
<a id='L65' name='L65'></a> 65 <a href='../S/lib--widget--label.h.html#L23' title='Defined at 23 in lib/widget/label.h.'>WLabel</a> *<a href='../Y/label.html' title='Multiple used in 143 places.'>label</a>; <em class='comment'>// label associated with this input line</em>
|
|
<a id='L66' name='L66'></a> 66 <strong class='reserved'>struct</strong> input_history_t
|
|
<a id='L67' name='L67'></a> 67 <em class='brace'>{</em>
|
|
<a id='L68' name='L68'></a> 68 <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 625 places.'>name</a>; <em class='comment'>// name of history for loading and saving</em>
|
|
<a id='L69' name='L69'></a> 69 <a href='../Y/GList.html' title='Multiple used in 182 places.'>GList</a> *<a href='../Y/list.html' title='Multiple used in 382 places.'>list</a>; <em class='comment'>// the history</em>
|
|
<a id='L70' name='L70'></a> 70 <a href='../Y/GList.html' title='Multiple used in 182 places.'>GList</a> *<a href='../Y/current.html' title='Multiple used in 568 places.'>current</a>; <em class='comment'>// current history item</em>
|
|
<a id='L71' name='L71'></a> 71 <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/changed.html' title='Multiple used in 32 places.'>changed</a>; <em class='comment'>// the history has changed</em>
|
|
<a id='L72' name='L72'></a> 72 <em class='brace'>}</em> <a href='../Y/history.html' title='Multiple used in 69 places.'>history</a>;
|
|
<a id='L73' name='L73'></a> 73 <em class='brace'>}</em> <a href='../R/WInput.html' title='Multiple referred from 85 places.'>WInput</a>;
|
|
<a id='L74' name='L74'></a> 74
|
|
<a id='L75' name='L75'></a> 75 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
|
|
<a id='L76' name='L76'></a> 76
|
|
<a id='L77' name='L77'></a> 77 <strong class='reserved'>extern</strong> <strong class='reserved'>int</strong> <a href='../Y/quote.html' title='Multiple used in 9 places.'>quote</a>;
|
|
<a id='L78' name='L78'></a> 78
|
|
<a id='L79' name='L79'></a> 79 <strong class='reserved'>extern</strong> <strong class='reserved'>const</strong> <a href='../D/global_keymap_t.html' title='Multiple defined in 2 places.'>global_keymap_t</a> *<a href='../Y/input_map.html' title='Multiple used in 3 places.'>input_map</a>;
|
|
<a id='L80' name='L80'></a> 80
|
|
<a id='L81' name='L81'></a> 81 <em class='comment'>/* Color styles for normal and command line input widgets */</em>
|
|
<a id='L82' name='L82'></a> 82 <strong class='reserved'>extern</strong> <a href='../Y/input_colors_t.html' title='Multiple used in 4 places.'>input_colors_t</a> <a href='../Y/input_colors.html' title='Multiple used in 13 places.'>input_colors</a>;
|
|
<a id='L83' name='L83'></a> 83
|
|
<a id='L84' name='L84'></a> 84 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
|
|
<a id='L85' name='L85'></a> 85
|
|
<a id='L86' name='L86'></a> 86 <a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../S/lib--widget--input.c.html#L955' title='Defined at 955 in lib/widget/input.c.'>input_new</a> (<strong class='reserved'>int</strong> <a href='../Y/y.html' title='Multiple used in 587 places.'>y</a>, <strong class='reserved'>int</strong> <a href='../Y/x.html' title='Multiple used in 677 places.'>x</a>, <strong class='reserved'>const</strong> <strong class='reserved'>int</strong> *<a href='../Y/colors.html' title='Multiple used in 65 places.'>colors</a>, <strong class='reserved'>int</strong> <a href='../Y/len.html' title='Multiple used in 1039 places.'>len</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 951 places.'>text</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/histname.html' title='Multiple used in 17 places.'>histname</a>,
|
|
<a id='L87' name='L87'></a> 87 <a href='../S/lib--widget--input.h.html#L40' title='Defined at 40 in lib/widget/input.h.'>input_complete_t</a> <a href='../Y/completion_flags.html' title='Multiple used in 23 places.'>completion_flags</a>);
|
|
<a id='L88' name='L88'></a> 88 <em class='comment'>/* callback is public; needed for command line */</em>
|
|
<a id='L89' name='L89'></a> 89 <a href='../S/lib--widget--widget-common.h.html#L66' title='Defined at 66 in lib/widget/widget-common.h.'>cb_ret_t</a> <a href='../S/lib--widget--input.c.html#L1007' title='Defined at 1007 in lib/widget/input.c.'>input_callback</a> (<a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> *<a href='../Y/w.html' title='Multiple used in 1387 places.'>w</a>, <a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> *<a href='../Y/sender.html' title='Multiple used in 173 places.'>sender</a>, <a href='../S/lib--widget--widget-common.h.html#L53' title='Defined at 53 in lib/widget/widget-common.h.'>widget_msg_t</a> <a href='../Y/msg.html' title='Multiple used in 342 places.'>msg</a>, <strong class='reserved'>int</strong> <a href='../Y/parm.html' title='Multiple used in 220 places.'>parm</a>, <strong class='reserved'>void</strong> *<a href='../Y/data.html' title='Multiple used in 916 places.'>data</a>);
|
|
<a id='L90' name='L90'></a> 90 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1082' title='Defined at 1082 in lib/widget/input.c.'>input_set_default_colors</a> (<strong class='reserved'>void</strong>);
|
|
<a id='L91' name='L91'></a> 91 <a href='../S/lib--widget--widget-common.h.html#L66' title='Defined at 66 in lib/widget/widget-common.h.'>cb_ret_t</a> <a href='../S/lib--widget--input.c.html#L1093' title='Defined at 1093 in lib/widget/input.c.'>input_handle_char</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>, <strong class='reserved'>int</strong> <a href='../Y/key.html' title='Multiple used in 190 places.'>key</a>);
|
|
<a id='L92' name='L92'></a> 92 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1138' title='Defined at 1138 in lib/widget/input.c.'>input_assign_text</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 951 places.'>text</a>);
|
|
<a id='L93' name='L93'></a> 93 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1156' title='Defined at 1156 in lib/widget/input.c.'>input_insert</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/text.html' title='Multiple used in 951 places.'>text</a>, <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/insert_extra_space.html' title='Multiple used in 6 places.'>insert_extra_space</a>);
|
|
<a id='L94' name='L94'></a> 94 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1170' title='Defined at 1170 in lib/widget/input.c.'>input_set_point</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>, <strong class='reserved'>int</strong> <a href='../Y/pos.html' title='Multiple used in 315 places.'>pos</a>);
|
|
<a id='L95' name='L95'></a> 95 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1186' title='Defined at 1186 in lib/widget/input.c.'>input_update</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>, <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a> <a href='../Y/clear_first.html' title='Multiple used in 3 places.'>clear_first</a>);
|
|
<a id='L96' name='L96'></a> 96 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1292' title='Defined at 1292 in lib/widget/input.c.'>input_enable_update</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>);
|
|
<a id='L97' name='L97'></a> 97 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1301' title='Defined at 1301 in lib/widget/input.c.'>input_disable_update</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>);
|
|
<a id='L98' name='L98'></a> 98 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input.c.html#L1314' title='Defined at 1314 in lib/widget/input.c.'>input_clean</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>);
|
|
<a id='L99' name='L99'></a> 99
|
|
<a id='L100' name='L100'></a> 100 <em class='comment'>/* input_complete.c */</em>
|
|
<a id='L101' name='L101'></a> 101 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input_complete.c.html#L1413' title='Defined at 1413 in lib/widget/input_complete.c.'>input_complete</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>);
|
|
<a id='L102' name='L102'></a> 102 <strong class='reserved'>void</strong> <a href='../S/lib--widget--input_complete.c.html#L1437' title='Defined at 1437 in lib/widget/input_complete.c.'>input_complete_free</a> (<a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>);
|
|
<a id='L103' name='L103'></a> 103
|
|
<a id='L104' name='L104'></a> 104 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
|
|
<a id='L105' name='L105'></a> 105 <em class='comment'>/*** inline functions ****************************************************************************/</em>
|
|
<a id='L106' name='L106'></a> 106 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
|
|
<a id='L107' name='L107'></a> 107
|
|
<a id='L108' name='L108'></a> 108 <em class='comment'>/**</em>
|
|
<a id='L109' name='L109'></a> 109 <em class='comment'> * Get text of input line.</em>
|
|
<a id='L110' name='L110'></a> 110 <em class='comment'> *</em>
|
|
<a id='L111' name='L111'></a> 111 <em class='comment'> * @param in input line</em>
|
|
<a id='L112' name='L112'></a> 112 <em class='comment'> *</em>
|
|
<a id='L113' name='L113'></a> 113 <em class='comment'> * @return newly allocated string that contains a copy of @in's text.</em>
|
|
<a id='L114' name='L114'></a> 114 <em class='comment'> */</em>
|
|
<a id='L115' name='L115'></a> 115 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>char</strong> *
|
|
<a id='L116' name='L116'></a> 116 <a href='../R/input_get_text.html' title='Multiple referred from 9 places.'>input_get_text</a> (<strong class='reserved'>const</strong> <a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>)
|
|
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><a href='#L131'><img class='icon' src='../icons/right.png' alt='[next]' /></a><img class='icon' src='../icons/n_first.png' alt='[first]' /><a href='#L146'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a> <input type='text' readonly onfocus='this.select();' value='+116 lib/widget/input.h' /> */</em>
|
|
<a id='L117' name='L117'></a> 117 <em class='brace'>{</em>
|
|
<a id='L118' name='L118'></a> 118 <strong class='reserved'>return</strong> <a href='../Y/g_strndup.html' title='Multiple used in 61 places.'>g_strndup</a> (<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>-><a href='../Y/buffer.html' title='Multiple used in 996 places.'>buffer</a>-><a href='../Y/str.html' title='Multiple used in 654 places.'>str</a>, <a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>-><a href='../Y/buffer.html' title='Multiple used in 996 places.'>buffer</a>-><a href='../Y/len.html' title='Multiple used in 1039 places.'>len</a>);
|
|
<a id='L119' name='L119'></a> 119 <em class='brace'>}</em>
|
|
<a id='L120' name='L120'></a> 120
|
|
<a id='L121' name='L121'></a> 121 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
|
|
<a id='L122' name='L122'></a> 122
|
|
<a id='L123' name='L123'></a> 123 <em class='comment'>/**</em>
|
|
<a id='L124' name='L124'></a> 124 <em class='comment'> * Get pointer to input line buffer.</em>
|
|
<a id='L125' name='L125'></a> 125 <em class='comment'> *</em>
|
|
<a id='L126' name='L126'></a> 126 <em class='comment'> * @param in input line</em>
|
|
<a id='L127' name='L127'></a> 127 <em class='comment'> *</em>
|
|
<a id='L128' name='L128'></a> 128 <em class='comment'> * @return pointer to @in->buffer->str.</em>
|
|
<a id='L129' name='L129'></a> 129 <em class='comment'> */</em>
|
|
<a id='L130' name='L130'></a> 130 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *
|
|
<a id='L131' name='L131'></a> 131 <a href='../R/input_get_ctext.html' title='Multiple referred from 10 places.'>input_get_ctext</a> (<strong class='reserved'>const</strong> <a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>)
|
|
<em class='comment'>/* <a href='#L116'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L146'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L116'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L146'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a> <input type='text' readonly onfocus='this.select();' value='+131 lib/widget/input.h' /> */</em>
|
|
<a id='L132' name='L132'></a> 132 <em class='brace'>{</em>
|
|
<a id='L133' name='L133'></a> 133 <strong class='reserved'>return</strong> <a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>-><a href='../Y/buffer.html' title='Multiple used in 996 places.'>buffer</a>-><a href='../Y/str.html' title='Multiple used in 654 places.'>str</a>;
|
|
<a id='L134' name='L134'></a> 134 <em class='brace'>}</em>
|
|
<a id='L135' name='L135'></a> 135
|
|
<a id='L136' name='L136'></a> 136 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
|
|
<a id='L137' name='L137'></a> 137
|
|
<a id='L138' name='L138'></a> 138 <em class='comment'>/**</em>
|
|
<a id='L139' name='L139'></a> 139 <em class='comment'> * Is input line empty or not.</em>
|
|
<a id='L140' name='L140'></a> 140 <em class='comment'> *</em>
|
|
<a id='L141' name='L141'></a> 141 <em class='comment'> * @param in input line</em>
|
|
<a id='L142' name='L142'></a> 142 <em class='comment'> *</em>
|
|
<a id='L143' name='L143'></a> 143 <em class='comment'> * @return TRUE if buffer of @in is empty, FALSE otherwise.</em>
|
|
<a id='L144' name='L144'></a> 144 <em class='comment'> */</em>
|
|
<a id='L145' name='L145'></a> 145 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1942 places.'>gboolean</a>
|
|
<a id='L146' name='L146'></a> 146 <a href='../R/input_is_empty.html' title='Multiple referred from 14 places.'>input_is_empty</a> (<strong class='reserved'>const</strong> <a href='../S/lib--widget--input.h.html#L73' title='Defined at 73 in lib/widget/input.h.'>WInput</a> *<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>)
|
|
<em class='comment'>/* <a href='#L131'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L116'><img class='icon' src='../icons/first.png' alt='[first]' /></a><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a> <input type='text' readonly onfocus='this.select();' value='+146 lib/widget/input.h' /> */</em>
|
|
<a id='L147' name='L147'></a> 147 <em class='brace'>{</em>
|
|
<a id='L148' name='L148'></a> 148 <strong class='reserved'>return</strong> (<a href='../Y/in.html' title='Multiple used in 454 places.'>in</a>-><a href='../Y/buffer.html' title='Multiple used in 996 places.'>buffer</a>-><a href='../Y/len.html' title='Multiple used in 1039 places.'>len</a> == 0);
|
|
<a id='L149' name='L149'></a> 149 <em class='brace'>}</em>
|
|
<a id='L150' name='L150'></a> 150
|
|
<a id='L151' name='L151'></a> 151 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
|
|
<a id='L152' name='L152'></a> 152
|
|
<a id='L153' name='L153'></a> 153 <em class='sharp'>#endif</em>
|
|
</pre>
|
|
<hr />
|
|
<a id='BOTTOM' name='BOTTOM'></a>
|
|
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L116'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L146'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a> <input type='text' readonly onfocus='this.select();' value='+153 lib/widget/input.h' /> */</em>
|
|
</body>
|
|
</html>
|