Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/layout/base/nsISVGPaintContext.idl
*/
#ifndef __gen_nsISVGPaintContext_h__
#define __gen_nsISVGPaintContext_h__
#include "nsISupports.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsISVGPaintContext */
#define NS_ISVGPAINTCONTEXT_IID_STR "43966236-3146-4518-ab39-f938795cd1a1"
#define NS_ISVGPAINTCONTEXT_IID \
{0x43966236, 0x3146, 0x4518, \
{ 0xab, 0x39, 0xf9, 0x38, 0x79, 0x5c, 0xd1, 0xa1 }}
class NS_NO_VTABLE nsISVGPaintContext : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISVGPAINTCONTEXT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsISVGPaintContext;
/* readonly attribute ACString fillColor; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFillColor(nsACString& aFillColor) = 0;
/* readonly attribute ACString strokeColor; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStrokeColor(nsACString& aStrokeColor) = 0;
/* readonly attribute float fillOpacity; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFillOpacity(float *aFillOpacity) = 0;
/* readonly attribute float strokeOpacity; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStrokeOpacity(float *aStrokeOpacity) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISVGPaintContext, NS_ISVGPAINTCONTEXT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISVGPAINTCONTEXT \
NS_IMETHOD GetFillColor(nsACString& aFillColor) override; \
NS_IMETHOD GetStrokeColor(nsACString& aStrokeColor) override; \
NS_IMETHOD GetFillOpacity(float *aFillOpacity) override; \
NS_IMETHOD GetStrokeOpacity(float *aStrokeOpacity) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISVGPAINTCONTEXT \
nsresult GetFillColor(nsACString& aFillColor); \
nsresult GetStrokeColor(nsACString& aStrokeColor); \
nsresult GetFillOpacity(float *aFillOpacity); \
nsresult GetStrokeOpacity(float *aStrokeOpacity);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISVGPAINTCONTEXT(_to) \
NS_IMETHOD GetFillColor(nsACString& aFillColor) override { return _to GetFillColor(aFillColor); } \
NS_IMETHOD GetStrokeColor(nsACString& aStrokeColor) override { return _to GetStrokeColor(aStrokeColor); } \
NS_IMETHOD GetFillOpacity(float *aFillOpacity) override { return _to GetFillOpacity(aFillOpacity); } \
NS_IMETHOD GetStrokeOpacity(float *aStrokeOpacity) override { return _to GetStrokeOpacity(aStrokeOpacity); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISVGPAINTCONTEXT(_to) \
NS_IMETHOD GetFillColor(nsACString& aFillColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillColor(aFillColor); } \
NS_IMETHOD GetStrokeColor(nsACString& aStrokeColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeColor(aStrokeColor); } \
NS_IMETHOD GetFillOpacity(float *aFillOpacity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillOpacity(aFillOpacity); } \
NS_IMETHOD GetStrokeOpacity(float *aStrokeOpacity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeOpacity(aStrokeOpacity); }
#endif /* __gen_nsISVGPaintContext_h__ */