mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
drawable06_19
Signed-off-by: quguiren <quguiren@huawei.com>
This commit is contained in:
parent
95cbbaf83c
commit
0448caf1be
64
api/@ohos.arkui.drawableDescriptor.d.ts
vendored
64
api/@ohos.arkui.drawableDescriptor.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user