sbIClickablePropertyInfo.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
33 #include "nsISupports.idl"
34 #include "sbIPropertyInfo.idl"
35 
37 interface sbIMediaItem;
38 
48 [scriptable, uuid(b684129e-1dd1-11b2-bdb0-f02ef2b938e4)]
50 {
55  attribute boolean suppressSelect;
56 
63  boolean isDisabled(in AString aCurrentValue);
64 
78  boolean hitTest(in AString aCurrentValue,
79  in AString aPart,
80  in unsigned long aBoxWidth,
81  in unsigned long aBoxHeight,
82  in unsigned long aMouseX,
83  in unsigned long aMouseY);
84 
92  boolean onClick(in sbIMediaItem aItem,
93  [optional] in nsISupports aEvent,
94  [optional] in nsISupports aContext);
95 
105  AString getValueForClick(in AString aCurrentValue,
106  in unsigned long aBoxWidth,
107  in unsigned long aBoxHeight,
108  in unsigned long aMouseX,
109  in unsigned long aMouseY);
110 };
111 
112 [scriptable, function, uuid(74f08874-1dd2-11b2-9bf2-c0919899c308)]
114 {
126  boolean onClick(in sbIPropertyInfo aPropertyInfo,
127  in sbIMediaItem aItem,
128  [optional] in nsISupports aEvent,
129  [optional] in nsISupports aContext);
130 };
boolean hitTest(in AString aCurrentValue, in AString aPart, in unsigned long aBoxWidth, in unsigned long aBoxHeight, in unsigned long aMouseX, in unsigned long aMouseY)
Hit testing for a cell.
boolean isDisabled(in AString aCurrentValue)
Whether the tree cell widget representing this property should be disabled given a value (for this pr...
The property information specific to clickable properties.
var uuid
boolean onClick(in sbIPropertyInfo aPropertyInfo, in sbIMediaItem aItem, [optional] in nsISupports aEvent, [optional] in nsISupports aContext)
An interface used to describe a metadata property for use by the UI and other sbILibrary interfaces (...
boolean onClick(in sbIMediaItem aItem, [optional] in nsISupports aEvent, [optional] in nsISupports aContext)
Callback for a click event for special handling.
AString getValueForClick(in AString aCurrentValue, in unsigned long aBoxWidth, in unsigned long aBoxHeight, in unsigned long aMouseX, in unsigned long aMouseY)
Convert a mouse click to a value for this property.
Interface that defines a single item of media in the system.