nsITaskbarPreview 编辑
widget/public/nsITaskbarPreview.idl
Scriptable 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
Attribute | Type | Description |
active | boolean | Indicates whether or not the preview is marked as active (currently selected) in the taskbar. |
controller |
| 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 nsITaskbarTabPreview or nsITaskbarWindowPreview makes full use of the controller; see the documentation for each interface for details on which controller methods are used. |
tooltip | DOMString | A string containing the text displayed in the tooltip above the preview when the user hovers over it. By default, this is an empty string. |
visible | boolean | Indicates whether or not the preview is visible; by default, this is |
Methods
invalidate()
Invalidates the taskbar's cached image of the preview, forcing a redraw if necessary.
void invalidate();
Parameters
None.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论