nsITaskbarPreview 编辑

widget/public/nsITaskbarPreview.idlScriptable This interface is used on Microsoft Windows as a common interface for both window and tab taskbar previews. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

You can not directly instantiate this interface. Instead, you use nsITaskbarTabPreview or nsITaskbarWindowPreview as appropriate.

Method overview

void invalidate();

Attributes

AttributeTypeDescription
activebooleanIndicates whether or not the preview is marked as active (currently selected) in the taskbar.
controllernsITaskbarPreviewController

The controller for this preview. The controller provides the behavior and appearance for the taskbar preview, and is responsible for determining the size and contents of the preview, which buttons are displayed, and how the application responds to user actions on the preview. The controller is not allowed to be null.

Note:  Neither nsITaskbarTabPreview or nsITaskbarWindowPreview makes full use of the controller; see the documentation for each interface for details on which controller methods are used.
tooltipDOMStringA string containing the text displayed in the tooltip above the preview when the user hovers over it. By default, this is an empty string.
visibleboolean

Indicates whether or not the preview is visible; by default, this is false.

Note: Changing this value is computationally expensive for tab previews, because doing so causes the proxy window to be destroyed and rebuilt, then re-registered with the taskbar. If any step of that process fails, an exception is thrown. For window previews, changing this value is computationally trivial.

Methods

invalidate()

Invalidates the taskbar's cached image of the preview, forcing a redraw if necessary.

void invalidate();
Parameters

None.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:23 次

字数:4848

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文