get_shapeT_get_shapeGetShapeGetShapeget_shape (算子)

名称

get_shapeT_get_shapeGetShapeGetShapeget_shape — 获取当前区域输出形状。

签名

get_shape( : : WindowHandle : DisplayShape)

Herror T_get_shape(const Htuple WindowHandle, Htuple* DisplayShape)

void GetShape(const HTuple& WindowHandle, HTuple* DisplayShape)

HString HWindow::GetShape() const

static void HOperatorSet.GetShape(HTuple windowHandle, out HTuple displayShape)

string HWindow.GetShape()

def get_shape(window_handle: HHandle) -> str

描述

get_shapeget_shapeGetShapeGetShapeGetShapeget_shape returns the shape in which regions are displayed. The available shapes can be queried with query_shapequery_shapeQueryShapeQueryShapeQueryShapequery_shape and then changed with set_shapeset_shapeSetShapeSetShapeSetShapeset_shape

执行信息

参数

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

窗口句柄。

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

Current region output shape.

结果

get_shapeget_shapeGetShapeGetShapeGetShapeget_shape returns 2 ( H_MSG_TRUE) if the window is valid.否则将抛出异常。

可能的前趋

query_shapequery_shapeQueryShapeQueryShapeQueryShapequery_shape

可能的后继

set_shapeset_shapeSetShapeSetShapeSetShapeset_shape, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

set_shapeset_shapeSetShapeSetShapeSetShapeset_shape, query_shapequery_shapeQueryShapeQueryShapeQueryShapequery_shape, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

模块

基础