@compass-framework/core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +9 -0
- package/.eslintrc.js +76 -0
- package/include/AbsoluteLayout.d.ts +7 -0
- package/include/AccelerateDecelerateInterpolator.d.ts +7 -0
- package/include/AccelerateInterpolator.d.ts +10 -0
- package/include/Adapter.d.ts +20 -0
- package/include/AlphaAnimation.d.ts +11 -0
- package/include/Animation.d.ts +119 -0
- package/include/AnimationSet.d.ts +58 -0
- package/include/Animator.d.ts +53 -0
- package/include/Application.d.ts +19 -0
- package/include/ApplicationContext.d.ts +11 -0
- package/include/ApplicationFrame.d.ts +62 -0
- package/include/ApplicationFrameContext.ts +25 -0
- package/include/ApplicationFrameObserver.d.ts +14 -0
- package/include/ApplicationManager.d.ts +9 -0
- package/include/ApplicationManifest.d.ts +5 -0
- package/include/ApplicationSettings.d.ts +3 -0
- package/include/ApplicationWindow.d.ts +37 -0
- package/include/ArrayAdapter.d.ts +52 -0
- package/include/Assets.d.ts +3 -0
- package/include/AttributeSet.d.ts +40 -0
- package/include/BaseAdapter.d.ts +23 -0
- package/include/Bitmap.d.ts +7 -0
- package/include/BitmapDrawable.d.ts +33 -0
- package/include/BounceInterpolator.d.ts +5 -0
- package/include/Button.d.ts +3 -0
- package/include/Canvas.d.ts +106 -0
- package/include/Color.d.ts +46 -0
- package/include/ColorDrawable.d.ts +18 -0
- package/include/Configuration.d.ts +5 -0
- package/include/Context.d.ts +8 -0
- package/include/ContextUtils.d.ts +5 -0
- package/include/CornerPathEffect.ts +5 -0
- package/include/CycleInterpolator.d.ts +7 -0
- package/include/DecelerateInterpolator.d.ts +8 -0
- package/include/DecorView.d.ts +5 -0
- package/include/DensityMetrics.d.ts +11 -0
- package/include/DisplayMetrics.d.ts +7 -0
- package/include/DoubleClick.d.ts +9 -0
- package/include/DoubleClickListener.d.ts +10 -0
- package/include/Drawable.d.ts +67 -0
- package/include/EditText.d.ts +17 -0
- package/include/Editable.d.ts +5 -0
- package/include/FrameLayout.d.ts +7 -0
- package/include/FreezeAbsoluteLayout.d.ts +7 -0
- package/include/FreezeLayoutViewGroup.d.ts +23 -0
- package/include/Gravity.d.ts +38 -0
- package/include/GridLayout.d.ts +9 -0
- package/include/GridLayoutAnimationController.d.ts +5 -0
- package/include/GridView.d.ts +8 -0
- package/include/HorizontalScrollView.ts +11 -0
- package/include/ICursor.d.ts +33 -0
- package/include/IWindow.d.ts +28 -0
- package/include/ImageView.d.ts +3 -0
- package/include/Interpolator.d.ts +6 -0
- package/include/KeyEvent.d.ts +97 -0
- package/include/LayerDrawable.d.ts +28 -0
- package/include/LayoutAnimationController.d.ts +51 -0
- package/include/LayoutInflater.ts +10 -0
- package/include/LinearGradient.d.ts +5 -0
- package/include/LinearGradientDrawable.d.ts +23 -0
- package/include/LinearInterpolator.d.ts +5 -0
- package/include/LinearLayout.d.ts +14 -0
- package/include/ListAdapter.d.ts +5 -0
- package/include/ListView.d.ts +8 -0
- package/include/Matrix.d.ts +81 -0
- package/include/MotionEvent.d.ts +57 -0
- package/include/Outline.d.ts +23 -0
- package/include/Paint.d.ts +126 -0
- package/include/Path.d.ts +77 -0
- package/include/PathEffect.ts +3 -0
- package/include/Picture.d.ts +26 -0
- package/include/PictureDrawable.d.ts +14 -0
- package/include/PopupWindow.d.ts +38 -0
- package/include/PropertyValuesHolder.d.ts +3 -0
- package/include/Readying.ts +3 -0
- package/include/Rect.d.ts +75 -0
- package/include/RelativeLayout.d.ts +7 -0
- package/include/Resources.d.ts +62 -0
- package/include/RotateAnimation.d.ts +12 -0
- package/include/RoundedCornersDrawable.d.ts +47 -0
- package/include/ScaleAnimation.d.ts +12 -0
- package/include/ScrollView.d.ts +13 -0
- package/include/Shader.d.ts +1 -0
- package/include/Shadow.d.ts +8 -0
- package/include/StackLayout.d.ts +9 -0
- package/include/TabBarLayout.d.ts +23 -0
- package/include/TableLayout.d.ts +8 -0
- package/include/TableRow.d.ts +8 -0
- package/include/TextView.d.ts +20 -0
- package/include/TimeInterpolator.d.ts +3 -0
- package/include/Transformation.d.ts +24 -0
- package/include/TranslateAnimation.d.ts +11 -0
- package/include/TypeEvaluator.d.ts +3 -0
- package/include/Typeface.d.ts +14 -0
- package/include/TypefaceFactory.d.ts +9 -0
- package/include/ValueAnimator.d.ts +111 -0
- package/include/View.d.ts +342 -0
- package/include/ViewGroup.d.ts +108 -0
- package/include/ViewGroupOverlay.d.ts +11 -0
- package/include/ViewOutlineProvider.d.ts +8 -0
- package/include/ViewOverlay.d.ts +16 -0
- package/include/ViewParent.d.ts +5 -0
- package/include/ViewTreeObserver.d.ts +33 -0
- package/include/WindowContext.d.ts +9 -0
- package/include/WindowManager.d.ts +13 -0
- package/include/XMLLayoutParser.d.ts +9 -0
- package/include/XMLResourcesParser.d.ts +8 -0
- package/include/XMLViewFactoryRegistry.d.ts +42 -0
- package/index.d.ts +105 -0
- package/package.json +17 -0
- package/tsconfig.json +32 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ListAdapter } from "./ListAdapter";
|
|
2
|
+
import { View } from "./View";
|
|
3
|
+
import { ViewGroup } from "./ViewGroup";
|
|
4
|
+
|
|
5
|
+
export declare abstract class BaseAdapter implements ListAdapter {
|
|
6
|
+
protected constructor();
|
|
7
|
+
|
|
8
|
+
hasStableIds(): boolean;
|
|
9
|
+
|
|
10
|
+
isEmpty(): boolean;
|
|
11
|
+
|
|
12
|
+
getItemId(position: number): number;
|
|
13
|
+
|
|
14
|
+
getCount(): number;
|
|
15
|
+
|
|
16
|
+
getItem(position: number): Object;
|
|
17
|
+
|
|
18
|
+
getItemViewType(position: number): number;
|
|
19
|
+
|
|
20
|
+
getViewTypeCount(): number;
|
|
21
|
+
|
|
22
|
+
getView(position: number, convertView: View, parent: ViewGroup): View;
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Drawable } from "./Drawable";
|
|
2
|
+
import { Bitmap } from "./Bitmap";
|
|
3
|
+
import { Canvas } from "./Canvas";
|
|
4
|
+
import { Context } from "./Context";
|
|
5
|
+
|
|
6
|
+
export declare abstract class BitmapDrawable extends Drawable {
|
|
7
|
+
protected constructor(context: Context);
|
|
8
|
+
protected constructor(context: Context, bitmap: Bitmap);
|
|
9
|
+
protected constructor(context: Context, bitmapState: BitmapDrawable.BitmapState);
|
|
10
|
+
|
|
11
|
+
public draw(canvas: Canvas): void;
|
|
12
|
+
|
|
13
|
+
public getOpacity(): number;
|
|
14
|
+
|
|
15
|
+
public setAlpha(alpha: number): void;
|
|
16
|
+
|
|
17
|
+
public setBitmap(bitmap: Bitmap): void;
|
|
18
|
+
|
|
19
|
+
public setGravity(gravity: number): void;
|
|
20
|
+
|
|
21
|
+
public getBitmap(): Bitmap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export declare namespace BitmapDrawable {
|
|
25
|
+
class BitmapState extends Drawable.ConstantState {
|
|
26
|
+
public constructor(bitmapState: BitmapState);
|
|
27
|
+
public constructor(bitmap: Bitmap);
|
|
28
|
+
|
|
29
|
+
public newDrawable(context: Context): Drawable;
|
|
30
|
+
|
|
31
|
+
public getChangingConfigurations(): number;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { CharSequence } from "@compass-framework/library";
|
|
2
|
+
import { Paint } from "./Paint";
|
|
3
|
+
import { Path } from "./Path";
|
|
4
|
+
import { Picture } from "./Picture";
|
|
5
|
+
import { Rect } from "./Rect";
|
|
6
|
+
import { Matrix } from "./Matrix";
|
|
7
|
+
import { Bitmap } from "./Bitmap";
|
|
8
|
+
|
|
9
|
+
export declare class Canvas {
|
|
10
|
+
constructor(width: number, height: number);
|
|
11
|
+
|
|
12
|
+
rotate(degrees: number): void;
|
|
13
|
+
rotate(degrees: number, px: number, py: number): void;
|
|
14
|
+
|
|
15
|
+
scale(sx: number, sy: number): void;
|
|
16
|
+
|
|
17
|
+
concat(matrix: Matrix): void;
|
|
18
|
+
|
|
19
|
+
translate(dx: number, dy: number): void;
|
|
20
|
+
|
|
21
|
+
save(): number;
|
|
22
|
+
|
|
23
|
+
restore(): void;
|
|
24
|
+
|
|
25
|
+
clearCanvas(): void;
|
|
26
|
+
clearCanvas(rect: Rect): void;
|
|
27
|
+
clearCanvas(width: number, height: number): void;
|
|
28
|
+
|
|
29
|
+
getClipBounds(): Rect;
|
|
30
|
+
getClipBounds(rect: Rect): boolean;
|
|
31
|
+
|
|
32
|
+
getMatrix(): Matrix;
|
|
33
|
+
|
|
34
|
+
getWidth(): number;
|
|
35
|
+
|
|
36
|
+
getHeight(): number;
|
|
37
|
+
|
|
38
|
+
clipRRect(rect: Rect, radius: number): void;
|
|
39
|
+
clipRRect(rect: Rect, ltr: number, lbr: number, rtr: number, rbr: number): void;
|
|
40
|
+
clipRRect(left: number, top: number, right: number, bottom: number, ltr: number, lbr: number, rtr: number, rbr: number): void;
|
|
41
|
+
|
|
42
|
+
clipPath(path: Path): void;
|
|
43
|
+
|
|
44
|
+
clipRect(rect: Rect): void;
|
|
45
|
+
clipRect(left: number, top: number, right: number, bottom: number): void;
|
|
46
|
+
|
|
47
|
+
quickReject(rect: Rect): boolean;
|
|
48
|
+
quickReject(path: Path): boolean;
|
|
49
|
+
quickReject(left: number, top: number, right: number, bottom: number): boolean;
|
|
50
|
+
|
|
51
|
+
drawOval(oval: Rect, paint: Paint): void;
|
|
52
|
+
drawOval(left: number, top: number, right: number, bottom: number, paint: Paint): void;
|
|
53
|
+
|
|
54
|
+
drawRect(rect: Rect, paint: Paint): void;
|
|
55
|
+
drawRect(left: number, top: number, right: number, bottom: number, paint: Paint): void;
|
|
56
|
+
|
|
57
|
+
drawLine(sx: number, sy: number, ex: number, ey: number, paint: Paint): void;
|
|
58
|
+
|
|
59
|
+
drawLines(pts: number[], paint: Paint): void;
|
|
60
|
+
|
|
61
|
+
drawPath(path: Path, paint: Paint): void;
|
|
62
|
+
|
|
63
|
+
drawRRect(rect: Rect, radius: number, paint: Paint): void;
|
|
64
|
+
drawRRect(rect: Rect, ltr: number, lbr: number, rtr: number, rbr: number, paint: Paint): void;
|
|
65
|
+
drawRRect(left: number, top: number, right: number, bottom: number, ltr: number, lbr: number, rtr: number, rbr: number, paint: Paint): void;
|
|
66
|
+
|
|
67
|
+
drawPicture(canvas: Picture): void;
|
|
68
|
+
drawPicture(canvas: Picture, dst: Rect): void;
|
|
69
|
+
drawPicture(canvas: Picture, dst: Rect, paint: Paint): void;
|
|
70
|
+
|
|
71
|
+
drawText(text: CharSequence, x: number, y: number, paint: Paint): void;
|
|
72
|
+
drawText(text: CharSequence, start: number, end: number, x: number, y: number, paint: Paint): void;
|
|
73
|
+
|
|
74
|
+
drawDashLine(sx: number, sy: number, ex: number, ey: number, dash: number[], offset: number, paint: Paint): void;
|
|
75
|
+
|
|
76
|
+
drawDashLines(pts: number[], dash: number[], offset: number, paint: Paint): void;
|
|
77
|
+
|
|
78
|
+
drawBitmap(bitmap: Bitmap, pt: number[], paint: Paint): void;
|
|
79
|
+
drawBitmap(bitmap: Bitmap, src: Rect, dst: Rect, paint: Paint): void;
|
|
80
|
+
|
|
81
|
+
drawCircle(cx: number, cy: number, radius: number, paint: Paint): void;
|
|
82
|
+
|
|
83
|
+
drawArc(oval: Rect, startAngle: number, sweepAngle: number, useCenter: boolean, paint: Paint): void;
|
|
84
|
+
drawArc(left: number, top: number, right: number, bottom: number, startAngle: number, sweepAngle: number, useCenter: boolean, paint: Paint): void;
|
|
85
|
+
|
|
86
|
+
drawRGB(rect: Rect, r: number, g: number, b: number): void;
|
|
87
|
+
drawRGB(rect: Rect, r: number, g: number, b: number, paint: Paint): void;
|
|
88
|
+
drawRGB(left: number, top: number, right: number, bottom: number, r: number, g: number, b: number): void;
|
|
89
|
+
drawRGB(left: number, top: number, right: number, bottom: number, r: number, g: number, b: number, paint: Paint): void;
|
|
90
|
+
|
|
91
|
+
drawARGB(rect: Rect, a: number, r: number, g: number, b: number): void;
|
|
92
|
+
drawARGB(rect: Rect, a: number, r: number, g: number, b: number, paint: Paint): void;
|
|
93
|
+
drawARGB(left: number, top: number, right: number, bottom: number, a: number, r: number, g: number, b: number): void;
|
|
94
|
+
drawARGB(left: number, top: number, right: number, bottom: number, a: number, r: number, g: number, b: number, paint: Paint): void;
|
|
95
|
+
|
|
96
|
+
drawColor(rect: Rect, color: number): void;
|
|
97
|
+
drawColor(rect: Rect, color: number, paint: Paint): void;
|
|
98
|
+
drawColor(left: number, top: number, right: number, bottom: number, color: number): void;
|
|
99
|
+
drawColor(left: number, top: number, right: number, bottom: number, color: number, paint: Paint): void;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare namespace Canvas {
|
|
103
|
+
export function build(): Canvas;
|
|
104
|
+
|
|
105
|
+
export function radians(degrees: number): number;
|
|
106
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare class Color {
|
|
2
|
+
public static BLACK: number;
|
|
3
|
+
public static DKGRAY: number;
|
|
4
|
+
public static GRAY: number;
|
|
5
|
+
public static LTGRAY: number;
|
|
6
|
+
public static WHITE: number;
|
|
7
|
+
public static RED: number;
|
|
8
|
+
public static GREEN: number;
|
|
9
|
+
public static BLUE: number;
|
|
10
|
+
public static YELLOW: number;
|
|
11
|
+
public static CYAN: number;
|
|
12
|
+
public static MAGENTA: number;
|
|
13
|
+
public static TRANSPARENT: number;
|
|
14
|
+
|
|
15
|
+
public static alpha(color: number): number;
|
|
16
|
+
|
|
17
|
+
public static red(color: number): number;
|
|
18
|
+
|
|
19
|
+
public static green(color: number): number;
|
|
20
|
+
|
|
21
|
+
public static blue(color: number): number;
|
|
22
|
+
|
|
23
|
+
public static argb(alpha: number, red: number, green: number, blue: number);
|
|
24
|
+
|
|
25
|
+
public static rgb(red: number, green: number, blue: number);
|
|
26
|
+
|
|
27
|
+
public static hue(color: number): number;
|
|
28
|
+
|
|
29
|
+
public static pin(value: number): number;
|
|
30
|
+
|
|
31
|
+
public static rgbaString(color: number): string;
|
|
32
|
+
|
|
33
|
+
public static rgbString(color: number): string;
|
|
34
|
+
|
|
35
|
+
public static parseColor(colorString: string, colorType?: 'rgba' | 'argb'): number;
|
|
36
|
+
|
|
37
|
+
public static saturation(color: number): number;
|
|
38
|
+
|
|
39
|
+
public static brightness(color: number): number;
|
|
40
|
+
|
|
41
|
+
public static HSBtoColor(hsb: number[]): number;
|
|
42
|
+
public static HSBtoColor(h: number, s: number, b: number): number;
|
|
43
|
+
|
|
44
|
+
public static HSVToColor(hsv: number[]): number;
|
|
45
|
+
public static HSVToColor(alpha: number, hsv: number[]): number;
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Drawable } from "./Drawable";
|
|
2
|
+
import { Canvas } from "./Canvas";
|
|
3
|
+
import { Context } from "./Context";
|
|
4
|
+
|
|
5
|
+
export declare class ColorDrawable extends Drawable {
|
|
6
|
+
public constructor(context: Context);
|
|
7
|
+
public constructor(context: Context, color: number);
|
|
8
|
+
|
|
9
|
+
public draw(canvas: Canvas): void;
|
|
10
|
+
|
|
11
|
+
public getOpacity(): number;
|
|
12
|
+
|
|
13
|
+
public getColor(): number;
|
|
14
|
+
|
|
15
|
+
public setColor(color: number): void;
|
|
16
|
+
|
|
17
|
+
public setAlpha(alpha: number): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DoubleClickListener } from "./DoubleClickListener";
|
|
2
|
+
import { View } from "./View";
|
|
3
|
+
import { MotionEvent } from "./MotionEvent";
|
|
4
|
+
|
|
5
|
+
export declare class DoubleClick implements View.OnTouchListener {
|
|
6
|
+
public constructor(doubleClickListener: DoubleClickListener, timeDifference?: number);
|
|
7
|
+
|
|
8
|
+
public onTouch(view: View, event: MotionEvent): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MotionEvent } from "./MotionEvent";
|
|
2
|
+
import { View } from "./View";
|
|
3
|
+
|
|
4
|
+
export declare interface DoubleClickListener {
|
|
5
|
+
onSingleClick(event: MotionEvent, view: View): void;
|
|
6
|
+
|
|
7
|
+
onDoubleClick(event: MotionEvent, view: View): void;
|
|
8
|
+
|
|
9
|
+
onTouchPointer(event: MotionEvent, view: View): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Runnable } from "@compass-framework/library";
|
|
2
|
+
import { Canvas } from "./Canvas";
|
|
3
|
+
import { Outline } from "./Outline";
|
|
4
|
+
import { Rect } from "./Rect";
|
|
5
|
+
import { Resources } from "./Resources";
|
|
6
|
+
import { Context } from "./Context";
|
|
7
|
+
import { Configuration } from "./Configuration";
|
|
8
|
+
import { DensityMetrics } from "./DensityMetrics";
|
|
9
|
+
|
|
10
|
+
export declare abstract class Drawable {
|
|
11
|
+
protected constructor(context: Context);
|
|
12
|
+
protected constructor(context: Context, drawable: Drawable);
|
|
13
|
+
|
|
14
|
+
public abstract draw(canvas: Canvas): void;
|
|
15
|
+
|
|
16
|
+
public abstract setAlpha(alpha: number): void;
|
|
17
|
+
|
|
18
|
+
public abstract getOpacity(): number;
|
|
19
|
+
|
|
20
|
+
public onBoundsChange(bounds: Rect): void;
|
|
21
|
+
|
|
22
|
+
public onConfigurationChanged(newConfig: Configuration): void;
|
|
23
|
+
|
|
24
|
+
public copyBounds() : Rect;
|
|
25
|
+
public copyBounds(bounds: Rect): void;
|
|
26
|
+
|
|
27
|
+
public getMinimumWidth(): number;
|
|
28
|
+
|
|
29
|
+
public getMinimumHeight(): number;
|
|
30
|
+
|
|
31
|
+
public getBounds(): Rect;
|
|
32
|
+
|
|
33
|
+
public getDensityMetrics(): DensityMetrics;
|
|
34
|
+
|
|
35
|
+
public getOutline(outline:Outline):void;
|
|
36
|
+
|
|
37
|
+
public getCallback() :Drawable.Callback;
|
|
38
|
+
|
|
39
|
+
public getIntrinsicWidth(): number;
|
|
40
|
+
|
|
41
|
+
public getIntrinsicHeight():number;
|
|
42
|
+
|
|
43
|
+
public setBounds(bounds: Rect): void;
|
|
44
|
+
public setBounds(left: number, top: number, right: number, bottom: number): void;
|
|
45
|
+
|
|
46
|
+
public setCallback(callback: Drawable.Callback): void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export declare namespace Drawable {
|
|
50
|
+
abstract class ConstantState {
|
|
51
|
+
public abstract newDrawable(context: Context): Drawable;
|
|
52
|
+
|
|
53
|
+
public newResourcesDrawable(context: Context, res: Resources): Drawable;
|
|
54
|
+
|
|
55
|
+
public abstract getChangingConfigurations(): number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface Callback {
|
|
59
|
+
invalidateDrawable(who:Drawable): void
|
|
60
|
+
|
|
61
|
+
scheduleDrawable(who: Drawable, what: Runnable, when: number): void
|
|
62
|
+
|
|
63
|
+
unScheduleDrawable(who: Drawable, what: Runnable): void
|
|
64
|
+
|
|
65
|
+
getResources(): Resources;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TextView } from "./TextView";
|
|
2
|
+
import { Editable } from "./Editable";
|
|
3
|
+
|
|
4
|
+
export declare class EditText extends TextView {
|
|
5
|
+
public isReadonly(): boolean;
|
|
6
|
+
|
|
7
|
+
public selectAll(): void;
|
|
8
|
+
|
|
9
|
+
public getText(): Editable;
|
|
10
|
+
|
|
11
|
+
public setSelection(index: number): void;
|
|
12
|
+
public setSelection(start:number, stop:number): void;
|
|
13
|
+
|
|
14
|
+
public setReadonly(readonly: boolean): void;
|
|
15
|
+
|
|
16
|
+
public setTouchOutSideUnFocus(value: boolean): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FreezeLayoutViewGroup } from "./FreezeLayoutViewGroup";
|
|
2
|
+
|
|
3
|
+
export declare class FreezeAbsoluteLayout extends FreezeLayoutViewGroup {}
|
|
4
|
+
|
|
5
|
+
export declare namespace FreezeAbsoluteLayout {
|
|
6
|
+
export class LayoutParams extends FreezeLayoutViewGroup.LayoutParams {}
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ViewGroup } from "./ViewGroup";
|
|
2
|
+
|
|
3
|
+
export declare class FreezeLayoutViewGroup extends ViewGroup {
|
|
4
|
+
public getFreezeLayoutScrollXStart(): number;
|
|
5
|
+
|
|
6
|
+
public getFreezeLayoutScrollYStart(): number;
|
|
7
|
+
|
|
8
|
+
public getFreezeLayoutTopRegion(): number;
|
|
9
|
+
|
|
10
|
+
public getFreezeLayoutLeftRegion(): number;
|
|
11
|
+
|
|
12
|
+
public setFreezeScrollTo(x: number, y: number): void;
|
|
13
|
+
|
|
14
|
+
public setFreezeScrollBy(x: number, y: number): void;
|
|
15
|
+
|
|
16
|
+
public setFreezeLayoutTopRegion(top: number): void;
|
|
17
|
+
|
|
18
|
+
public setFreezeLayoutLeftRegion(left: number): void;
|
|
19
|
+
|
|
20
|
+
public setFreezeLayoutScrollXStart(start: number): void;
|
|
21
|
+
|
|
22
|
+
public setFreezeLayoutScrollYStart(start: number): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Rect } from "./Rect";
|
|
2
|
+
|
|
3
|
+
export declare class Gravity {
|
|
4
|
+
public static NO_GRAVITY;
|
|
5
|
+
public static AXIS_PULL_BEFORE;
|
|
6
|
+
public static AXIS_SPECIFIED;
|
|
7
|
+
public static AXIS_PULL_AFTER;
|
|
8
|
+
public static AXIS_CLIP;
|
|
9
|
+
public static AXIS_X_SHIFT;
|
|
10
|
+
public static AXIS_Y_SHIFT;
|
|
11
|
+
public static TOP;
|
|
12
|
+
public static BOTTOM;
|
|
13
|
+
public static LEFT;
|
|
14
|
+
public static RIGHT;
|
|
15
|
+
public static CENTER_VERTICAL;
|
|
16
|
+
public static FILL_VERTICAL;
|
|
17
|
+
public static CENTER_HORIZONTAL;
|
|
18
|
+
public static FILL_HORIZONTAL;
|
|
19
|
+
public static CENTER;
|
|
20
|
+
public static FILL;
|
|
21
|
+
public static CLIP_VERTICAL;
|
|
22
|
+
public static CLIP_HORIZONTAL;
|
|
23
|
+
public static HORIZONTAL_GRAVITY_MASK;
|
|
24
|
+
public static VERTICAL_GRAVITY_MASK;
|
|
25
|
+
public static DISPLAY_CLIP_VERTICAL;
|
|
26
|
+
public static DISPLAY_CLIP_HORIZONTAL;
|
|
27
|
+
|
|
28
|
+
public static convert(type: string, defaultValue?: number): number;
|
|
29
|
+
|
|
30
|
+
public static apply(gravity: number, w: number, h: number, container: Rect, outRect: Rect): void;
|
|
31
|
+
public static apply(gravity: number, w: number, h: number, container: Rect, xAdj: number, yAdj: number, outRect: Rect): void;
|
|
32
|
+
|
|
33
|
+
public static applyDisplay(gravity: number, display: Rect, inoutObj: Rect): void;
|
|
34
|
+
|
|
35
|
+
public static isVertical(gravity: number): boolean;
|
|
36
|
+
|
|
37
|
+
public static isHorizontal(gravity: number): boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FrameLayout } from "./FrameLayout";
|
|
2
|
+
|
|
3
|
+
export declare class HorizontalScrollView extends FrameLayout {
|
|
4
|
+
public scrollTo(x:number, y:number) :void;
|
|
5
|
+
|
|
6
|
+
public abortScroll(): void;
|
|
7
|
+
|
|
8
|
+
public setOverScrollMode(mode: number) : void;
|
|
9
|
+
|
|
10
|
+
public setSmoothScrollingEnabled(smoothScrollingEnabled: boolean): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { View } from "./View";
|
|
2
|
+
|
|
3
|
+
export declare interface ICursor {
|
|
4
|
+
reset(): void
|
|
5
|
+
|
|
6
|
+
lock(view: View, type: ICursor.Type): void;
|
|
7
|
+
|
|
8
|
+
unlock(view: View): void
|
|
9
|
+
|
|
10
|
+
hover(view: View, event: number, type: ICursor.Type): void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export declare namespace ICursor {
|
|
14
|
+
export enum Type {
|
|
15
|
+
DEFAULT = 'default',
|
|
16
|
+
AUTO = 'auto',
|
|
17
|
+
HAND = 'hand',
|
|
18
|
+
MOVE = 'move',
|
|
19
|
+
HELP = 'help',
|
|
20
|
+
WAIT = 'wait',
|
|
21
|
+
TEXT = 'text',
|
|
22
|
+
W_RESIZE = 'w-resize',
|
|
23
|
+
S_RESIZE = 's-resize',
|
|
24
|
+
N_RESIZE = 'n-resize',
|
|
25
|
+
E_RESIZE = 'e-resize',
|
|
26
|
+
NE_RESIZE = 'ne-resize',
|
|
27
|
+
SW_RESIZE = 'sw-resize',
|
|
28
|
+
SE_RESIZE = 'se-resize',
|
|
29
|
+
NW_RESIZE = 'nw-resize',
|
|
30
|
+
POINTER = 'pointer',
|
|
31
|
+
URL = 'url',
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Interface, XML } from "@compass-framework/library";
|
|
2
|
+
import { Resources } from "./Resources";
|
|
3
|
+
import { View } from "./View";
|
|
4
|
+
import { WindowContext } from "./WindowContext";
|
|
5
|
+
import { WindowManager } from "./WindowManager";
|
|
6
|
+
|
|
7
|
+
export const IWindowInterface: Interface<IWindow>;
|
|
8
|
+
export interface IWindow {
|
|
9
|
+
createViewQuery(): View.ViewQuery;
|
|
10
|
+
|
|
11
|
+
onAttach(context: WindowContext): void
|
|
12
|
+
|
|
13
|
+
onCreate(): void;
|
|
14
|
+
|
|
15
|
+
onResume(): void;
|
|
16
|
+
|
|
17
|
+
onDestroy(): void;
|
|
18
|
+
|
|
19
|
+
onDetach(): void;
|
|
20
|
+
|
|
21
|
+
getWindowContext(): WindowContext;
|
|
22
|
+
|
|
23
|
+
getResources(): Resources;
|
|
24
|
+
|
|
25
|
+
getLayoutParams(): WindowManager.LayoutParams;
|
|
26
|
+
|
|
27
|
+
setContentXML(xml: XML): void;
|
|
28
|
+
}
|