query_line_widthquery_line_widthQueryLineWidthQueryLineWidthquery_line_width (算子)
名称
query_line_widthquery_line_widthQueryLineWidthQueryLineWidthquery_line_width — 查询可能的线宽。
签名
query_line_width( : : : Min, Max)
Herror query_line_width(Hlong* Min, Hlong* Max)
Herror T_query_line_width(Htuple* Min, Htuple* Max)
void QueryLineWidth(HTuple* Min, HTuple* Max)
static void HInfo::QueryLineWidth(Hlong* Min, Hlong* Max)
def query_line_width() -> Tuple[int, int]
描述
query_line_widthquery_line_widthQueryLineWidthQueryLineWidthQueryLineWidthquery_line_width returns the minimal (MinMinMinMinminmin)
and maximal (MaxMaxMaxMaxmaxmax) values of widths of region
border which can be displayed. Setting of the border width is done with
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width。Border width is used by operators like
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_linedisp_lineDispLineDispLineDispLinedisp_line,
disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle, disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1,
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2 etc. if the drawing mode is “margin”
(set_drawset_drawSetDrawSetDrawSetDrawset_draw(::WindowHandle,'margin':)).
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
MinMinMinMinminmin (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Displayable minimum width.
MaxMaxMaxMaxmaxmax (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Displayable maximum width.
结果
query_line_widthquery_line_widthQueryLineWidthQueryLineWidthQueryLineWidthquery_line_width returns 2 (
H_MSG_TRUE)
if the window is valid.否则将抛出异常。
可能的后继
get_line_widthget_line_widthGetLineWidthGetLineWidthGetLineWidthget_line_width,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style,
disp_linedisp_lineDispLineDispLineDispLinedisp_line
另见
disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle,
disp_linedisp_lineDispLineDispLineDispLinedisp_line,
disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1,
disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
get_line_widthget_line_widthGetLineWidthGetLineWidthGetLineWidthget_line_width,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style
模块
基础