uipanel对象的属性(另请参阅用户界面面板):
外观 |回调执行 |创建/删除 |显示 |鼠标交互 |对象标识 |对象位置 |父级/子级 |文本外观
backgroundcolor: colorspec, def. [0.9400 0.9400 0.9400] ¶此面板背景的颜色值。
bordertype: "beveledin" | "beveledout" | {"etchedin"} | "etchedout" | "line" | "none" ¶设置线条边框是否围绕面板。
borderwidth: whole number scalar, def. 1 ¶线条边框的宽度(以像素为单位)。
foregroundcolor: colorspec, def. [0 0 0] ¶此面板标题文本的颜色值。
highlightcolor: colorspec, def. [1 1 1] ¶此面板边界线的颜色值。
shadowcolor: colorspec, def. [0.7000 0.7000 0.7000] ¶此面板边框外侧阴影线的颜色值。另请参阅颜色规格。
busyaction: "cancel" | {"queue"} ¶定义当 Octave 无法中断另一个对象正在执行的回调时,如何处理此对象回调属性的执行。这仅当当前正在执行回调的对象的 interruptible 属性设置为 "off" 时才相关。中断回调对象的 busyaction 属性指示中断回调是排队("queue"(默认))还是丢弃("cancel")。另请参阅回调部分 。
interruptible: "off" | {"on"} ¶指定此对象的回调函数是否可以被其他回调中断。默认情况下,interruptible 为 "on",使用了 drawnow、figure、waitfor、getframe 或 pause 函数的回调最终会被中断。另请参阅回调部分 。
resizefcn: string | function handle, def. [](0x0) ¶resizefcn 已弃用。请改用 sizechangedfcn。
sizechangedfcn: string | function handle, def. [](0x0) ¶面板大小更改时触发的回调。
有关如何编写图形监听器函数的信息,请参阅回调部分 。
beingdeleted: {"off"} | "on" ¶指示某个函数已启动对象删除的属性。在对象不再存在之前,beingdeleted 保持为 true。
createfcn: string | function handle, def. [](0x0) ¶创建 uipanel 后立即执行的回调函数。可以通过设置根对象的默认属性来设置该函数,例如 set (groot, "defaultuipanelcreatefcn", 'disp ("uipanel created!")')。
有关如何编写图形监听器函数的信息,请参阅回调部分 。
deletefcn: string | function handle, def. [](0x0) ¶在 uipanel 刚刚删除之前执行的回调函数。
有关如何编写图形监听器函数的信息,请参阅回调部分 。
clipping: "off" | {"on"} ¶如果 clipping 为 "on",则 uipanel 将被裁剪到其父级边界。
visible: "off" | {"on"} ¶如果 visible 为 "off",则 uipanel 不显示在屏幕上,但仍存在于对象层次结构中。
buttondownfcn: string | function handle, def. [](0x0) ¶在 uipanel 上按下鼠标按钮时执行的回调函数。
有关如何编写图形监听器函数的信息,请参阅回调部分 。
selectionhighlight: "off" | {"on"} ¶当 uipanel 被选中时是否显示视觉高亮。
tag: string, def. "" ¶表示 uipanel 对象标签的字符串。
type (read-only): string, def. "uipanel" ¶图形对象类的字符串(只读)。
userdata: Any Octave data, def. [](0x0) ¶要与屏幕上的对象关联的用户指定数据。
position: four-element vector [x y w h], def. [0 0 1 1] ¶位置向量 [x y w h]。
units: "centimeters" | "characters" | "inches" | "millimeters" | "normalized" | {"pixels"} | "points" ¶用于解释 "position" 属性的单位。
children (read-only): vector of graphics handles, def. [](0x0) ¶uipanel 的子对象的图形句柄。
handlevisibility: "callback" | "off" | {"on"} ¶如果 handlevisibility 为 "off",则 uipanel 的句柄在其父级的 "children" 属性中不可见。
parent: graphics handle ¶父图形对象的句柄。
fontangle: "italic" | {"normal"} ¶控制字体是斜体还是正常体。
fontname: string, def. "*" ¶用于文本渲染的字体名称。设置此属性时,文本渲染引擎将在系统中搜索匹配的字体。如果未找到,则使用默认的无衬线字体进行文本渲染(与默认的 "*" 值相同)。
编程注意事项:在本机不使用 FontConfig 的系统上(除 Linux 以外的所有系统),字体缓存在 Octave 安装时构建。安装新字体后,您需要手动运行 system ("fc-cache -fv")。
fontsize: scalar, def. 10 ¶用于文本渲染的字体大小。另请参阅fontunits属性。
fontunits: "centimeters" | "inches" | "normalized" | "pixels" | {"points"} ¶用于解释 "fontsize" 属性的单位。
fontweight: "bold" | {"normal"} ¶控制用于文本渲染的基本字体的粗细变体。
title: string, def. "" ¶面板标题的文本。
titleposition: "centerbottom" | "centertop" | "leftbottom" | {"lefttop"} | "rightbottom" | "righttop" ¶标题在面板中的相对位置。