1 | import { Color } from '../../color';
|
2 | import { View } from '../core/view';
|
3 | import { BackgroundRepeat } from '../../css/parser';
|
4 | import { LinearGradient } from '../styling/linear-gradient';
|
5 | import { BoxShadow } from './box-shadow';
|
6 |
|
7 | export * from './background-common';
|
8 |
|
9 | export enum CacheMode {
|
10 | none,
|
11 | memory,
|
12 | diskAndMemory,
|
13 | }
|
14 |
|
15 | // export declare class Background {
|
16 | // public static default: Background;
|
17 | // public color: Color;
|
18 | // public image: string | LinearGradient;
|
19 | // public repeat: BackgroundRepeat;
|
20 | // public position: string;
|
21 | // public size: string;
|
22 | // public borderTopColor: Color;
|
23 | // public borderRightColor: Color;
|
24 | // public borderBottomColor: Color;
|
25 | // public borderLeftColor: Color;
|
26 | // public borderTopWidth: number;
|
27 | // public borderRightWidth: number;
|
28 | // public borderBottomWidth: number;
|
29 | // public borderLeftWidth: number;
|
30 | // public borderTopLeftRadius: number;
|
31 | // public borderTopRightRadius: number;
|
32 | // public borderBottomRightRadius: number;
|
33 | // public borderBottomLeftRadius: number;
|
34 | // public clipPath: string;
|
35 | // public boxShadow: string | BoxShadow;
|
36 | // public clearFlags: number;
|
37 |
|
38 | // public withColor(value: Color): Background;
|
39 | // public withImage(value: string | LinearGradient): Background;
|
40 | // public withRepeat(value: BackgroundRepeat): Background;
|
41 | // public withPosition(value: string): Background;
|
42 | // public withSize(value: string): Background;
|
43 | // public withBorderTopColor(value: Color): Background;
|
44 | // public withBorderRightColor(value: Color): Background;
|
45 | // public withBorderBottomColor(value: Color): Background;
|
46 | // public withBorderLeftColor(value: Color): Background;
|
47 | // public withBorderTopWidth(value: number): Background;
|
48 | // public withBorderRightWidth(value: number): Background;
|
49 | // public withBorderBottomWidth(value: number): Background;
|
50 | // public withBorderLeftWidth(value: number): Background;
|
51 | // public withBorderTopLeftRadius(value: number): Background;
|
52 | // public withBorderTopRightRadius(value: number): Background;
|
53 | // public withBorderBottomRightRadius(value: number): Background;
|
54 | // public withBorderBottomLeftRadius(value: number): Background;
|
55 | // public withClipPath(value: string): Background;
|
56 | // public withBoxShadow(value: BoxShadow): Background;
|
57 |
|
58 | // public isEmpty(): boolean;
|
59 |
|
60 | // public static equals(value1: Background, value2: Background): boolean;
|
61 |
|
62 | // public hasBorderColor(): boolean;
|
63 | // public hasBorderWidth(): boolean;
|
64 | // public hasBorderRadius(): boolean;
|
65 | // public hasBorder(): boolean;
|
66 | // public hasUniformBorderColor(): boolean;
|
67 | // public hasUniformBorderWidth(): boolean;
|
68 | // public hasUniformBorderRadius(): boolean;
|
69 | // public hasUniformBorder(): boolean;
|
70 | // public getUniformBorderColor(): Color;
|
71 | // public getUniformBorderWidth(): number;
|
72 | // public getUniformBorderRadius(): number;
|
73 | // public hasBoxShadow(): boolean;
|
74 | // public getBoxShadow(): BoxShadow;
|
75 | // }
|
76 |
|
77 | export namespace ios {
|
78 | export function createBackgroundUIColor(view: View, callback: (uiColor: any /* UIColor */) => void, flip?: boolean): void;
|
79 | export function drawBackgroundVisualEffects(view: View): void;
|
80 | export function clearBackgroundVisualEffects(view: View): void;
|
81 | export function generateClipPath(view: View, bounds: CGRect): any;
|
82 | export function generateShadowLayerPaths(view: View, bounds: CGRect): { maskPath: any; shadowPath: any };
|
83 | export function getUniformBorderRadius(view: View, bounds: CGRect): number;
|
84 | export function generateNonUniformBorderInnerClipRoundedPath(view: View, bounds: CGRect): any;
|
85 | export function generateNonUniformBorderOuterClipRoundedPath(view: View, bounds: CGRect): any;
|
86 | export function generateNonUniformMultiColorBorderRoundedPaths(view: View, bounds: CGRect): Array<any>;
|
87 | }
|
88 |
|
89 | export namespace ad {
|
90 | export function onBackgroundOrBorderPropertyChanged(v: View);
|
91 | }
|
92 |
|
93 | export function refreshBorderDrawable(view: View, borderDrawable: any /* org.nativescript.widgets.BorderDrawable */): void;
|