get_tshapeT_get_tshapeGetTshapeGetTshapeget_tshape (算子)
名称
get_tshapeT_get_tshapeGetTshapeGetTshapeget_tshape — 获取文本光标的形状。
警告
get_tshapeget_tshapeGetTshapeGetTshapeGetTshapeget_tshape 已过时,仅出于向后兼容性考虑而保留。
签名
描述
get_tshapeget_tshapeGetTshapeGetTshapeGetTshapeget_tshape queries the shape of the text cursor for the
output window. A new cursor shape is set by the operator
set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape。
A text cursor marks the current position for text output (which can also
be invisible). It is different from the mouse cursor (although both will
be called ”cursor” if the context makes misconceptions impossible).
The available shapes for the text cursor can be queried with
query_tshapequery_tshapeQueryTshapeQueryTshapeQueryTshapequery_tshape。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
TextCursorTextCursorTextCursorTextCursortextCursortext_cursor (输出控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the current text cursor.
结果
get_tshapeget_tshapeGetTshapeGetTshapeGetTshapeget_tshape returns 2 (
H_MSG_TRUE)
if the window is valid.否则将抛出异常。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
set_fontset_fontSetFontSetFontSetFontset_font
可能的后继
set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape,
set_tpositionset_tpositionSetTpositionSetTpositionSetTpositionset_tposition,
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string,
read_stringread_stringReadStringReadStringReadStringread_string,
read_charread_charReadCharReadCharReadCharread_char
另见
set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape,
query_tshapequery_tshapeQueryTshapeQueryTshapeQueryTshapequery_tshape,
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string,
read_stringread_stringReadStringReadStringReadStringread_string
模块
基础