drawable06_19

Signed-off-by: quguiren <quguiren@huawei.com>
This commit is contained in:
quguiren 2024-06-19 16:24:27 +08:00
parent 95cbbaf83c
commit 0448caf1be

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -33,6 +33,14 @@ import image from './@ohos.multimedia.image';
* @atomicservice
* @since 11
*/
/**
* Use the DrawableDescriptor class to get drawable image.
*
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
export class DrawableDescriptor {
/**
* Creates a new DrawableDescriptor.
@ -58,6 +66,15 @@ export class DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Get pixelMap of drawable image.
*
* @returns { image.PixelMap } Return the PixelMap of the calling DrawableDescriptor object.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
getPixelMap(): image.PixelMap;
}
@ -76,6 +93,15 @@ export class DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Use the LayeredDrawableDescriptor class to get the foreground, the background and the mask DrawableDescriptor.
*
* @extends DrawableDescriptor
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
export class LayeredDrawableDescriptor extends DrawableDescriptor {
/**
* Creates a new LayeredDrawableDescriptor.
@ -107,6 +133,15 @@ export class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Get DrawableDescriptor for the foreground.
*
* @returns { DrawableDescriptor } Return the DrawableDescriptor object of foreground.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
getForeground(): DrawableDescriptor;
/**
@ -124,6 +159,15 @@ export class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Get DrawableDescriptor for the background.
*
* @returns { DrawableDescriptor } Return the DrawableDescriptor object of background.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
getBackground(): DrawableDescriptor;
/**
@ -141,6 +185,15 @@ export class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Get DrawableDescriptor for the mask.
*
* @returns { DrawableDescriptor } Return the DrawableDescriptor object of mask.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
getMask(): DrawableDescriptor;
@ -159,6 +212,15 @@ export class LayeredDrawableDescriptor extends DrawableDescriptor {
* @atomicservice
* @since 11
*/
/**
* Get the clip path info of the adaptive icon mask.
*
* @returns { string } Return the clip path info of mask.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
static getMaskClipPath(): string;
}