Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScrollable.idl
3 : */
4 :
5 : #ifndef __gen_nsIScrollable_h__
6 : #define __gen_nsIScrollable_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIScrollable */
19 : #define NS_ISCROLLABLE_IID_STR "3507fc93-313e-4a4c-8ca8-4d0ea0f97315"
20 :
21 : #define NS_ISCROLLABLE_IID \
22 : {0x3507fc93, 0x313e, 0x4a4c, \
23 : { 0x8c, 0xa8, 0x4d, 0x0e, 0xa0, 0xf9, 0x73, 0x15 }}
24 :
25 6 : class NS_NO_VTABLE nsIScrollable : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCROLLABLE_IID)
29 :
30 : enum {
31 : ScrollOrientation_X = 1,
32 : ScrollOrientation_Y = 2,
33 : Scrollbar_Auto = 1,
34 : Scrollbar_Never = 2,
35 : Scrollbar_Always = 3
36 : };
37 :
38 : /* long getDefaultScrollbarPreferences (in long scrollOrientation); */
39 : NS_IMETHOD GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval) = 0;
40 :
41 : /* void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref); */
42 : NS_IMETHOD SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref) = 0;
43 :
44 : /* void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible); */
45 : NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScrollable, NS_ISCROLLABLE_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSISCROLLABLE \
53 : NS_IMETHOD GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval) override; \
54 : NS_IMETHOD SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref) override; \
55 : NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSISCROLLABLE \
60 : nsresult GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval); \
61 : nsresult SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref); \
62 : nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
65 : #define NS_FORWARD_NSISCROLLABLE(_to) \
66 : NS_IMETHOD GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval) override { return _to GetDefaultScrollbarPreferences(scrollOrientation, _retval); } \
67 : NS_IMETHOD SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref) override { return _to SetDefaultScrollbarPreferences(scrollOrientation, scrollbarPref); } \
68 : NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible) override { return _to GetScrollbarVisibility(verticalVisible, horizontalVisible); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSISCROLLABLE(_to) \
72 : NS_IMETHOD GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultScrollbarPreferences(scrollOrientation, _retval); } \
73 : NS_IMETHOD SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultScrollbarPreferences(scrollOrientation, scrollbarPref); } \
74 : NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbarVisibility(verticalVisible, horizontalVisible); }
75 :
76 : #if 0
77 : /* Use the code below as a template for the implementation class for this interface. */
78 :
79 : /* Header file */
80 : class nsScrollable : public nsIScrollable
81 : {
82 : public:
83 : NS_DECL_ISUPPORTS
84 : NS_DECL_NSISCROLLABLE
85 :
86 : nsScrollable();
87 :
88 : private:
89 : ~nsScrollable();
90 :
91 : protected:
92 : /* additional members */
93 : };
94 :
95 : /* Implementation file */
96 : NS_IMPL_ISUPPORTS(nsScrollable, nsIScrollable)
97 :
98 : nsScrollable::nsScrollable()
99 : {
100 : /* member initializers and constructor code */
101 : }
102 :
103 : nsScrollable::~nsScrollable()
104 : {
105 : /* destructor code */
106 : }
107 :
108 : /* long getDefaultScrollbarPreferences (in long scrollOrientation); */
109 : NS_IMETHODIMP nsScrollable::GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref); */
115 : NS_IMETHODIMP nsScrollable::SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible); */
121 : NS_IMETHODIMP nsScrollable::GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* End of implementation class template. */
127 : #endif
128 :
129 :
130 : #endif /* __gen_nsIScrollable_h__ */
|