get_mshapeT_get_mshapeGetMshapeGetMshapeget_mshape (算子)

名称

get_mshapeT_get_mshapeGetMshapeGetMshapeget_mshape — 查询当前鼠标指针形状。

警告

This operator does not work in an HDevelop graphics window opened with dev_open_window.

签名

get_mshape( : : WindowHandle : Cursor)

Herror T_get_mshape(const Htuple WindowHandle, Htuple* Cursor)

void GetMshape(const HTuple& WindowHandle, HTuple* Cursor)

HString HWindow::GetMshape() const

static void HOperatorSet.GetMshape(HTuple windowHandle, out HTuple cursor)

string HWindow.GetMshape()

def get_mshape(window_handle: HHandle) -> str

描述

get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape returns the name of the pointer shape set for the window. The mouse pointer shape can be used in the operator set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

CursorCursorCursorCursorcursorcursor (输出控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Mouse pointer name.

结果

get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape 返回值 2 ( H_MSG_TRUE )。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape

可能的后继

set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape

另见

set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape

模块

基础