@deafwave/osrs-botmaker-types 0.5.15 → 0.5.16
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference path="./Component.d.ts" />
|
|
2
|
+
/// <reference path="./Container.d.ts" />
|
|
3
|
+
/// <reference path="./Dimension.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare namespace java.awt {
|
|
6
|
+
export class GridLayout {
|
|
7
|
+
constructor();
|
|
8
|
+
constructor(rows: number, cols: number);
|
|
9
|
+
constructor(rows: number, cols: number, hgap: number, vgap: number);
|
|
10
|
+
|
|
11
|
+
getRows(): number;
|
|
12
|
+
setRows(rows: number): void;
|
|
13
|
+
getColumns(): number;
|
|
14
|
+
setColumns(cols: number): void;
|
|
15
|
+
getHgap(): number;
|
|
16
|
+
setHgap(hgap: number): void;
|
|
17
|
+
getVgap(): number;
|
|
18
|
+
setVgap(vgap: number): void;
|
|
19
|
+
|
|
20
|
+
addLayoutComponent(name: string, comp: java.awt.Component): void;
|
|
21
|
+
removeLayoutComponent(comp: java.awt.Component): void;
|
|
22
|
+
preferredLayoutSize(parent: java.awt.Container): java.awt.Dimension;
|
|
23
|
+
minimumLayoutSize(parent: java.awt.Container): java.awt.Dimension;
|
|
24
|
+
layoutContainer(parent: java.awt.Container): void;
|
|
25
|
+
|
|
26
|
+
toString(): string;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type GridLayout = java.awt.GridLayout;
|
|
@@ -65,10 +65,11 @@
|
|
|
65
65
|
/// <reference path="./swing/DefaultTableModel.d.ts" />
|
|
66
66
|
/// <reference path="./swing/DefaultListModel.d.ts" />
|
|
67
67
|
/// <reference path="./swing/JTextArea.d.ts" />
|
|
68
|
+
/// <reference path="./swing/SwingUtilities.d.ts" />
|
|
68
69
|
/// <reference path="./swing/table/DefaultTableCellRenderer.d.ts" />
|
|
69
|
-
/// <reference path="./swing/table
|
|
70
|
-
/// <reference path="./swing/table
|
|
71
|
-
/// <reference path="./
|
|
70
|
+
/// <reference path="./swing/table/TableColumn.d.ts" />
|
|
71
|
+
/// <reference path="./swing/table/TableColumnModel.d.ts" />
|
|
72
|
+
/// <reference path="./JavaImporter.d.ts" />
|
|
72
73
|
/// <reference path="./awt/event/ActionListener.d.ts" />
|
|
73
74
|
/// <reference path="./awt/event/ChangeListener.d.ts" />
|
|
74
75
|
/// <reference path="./awt/event/FocusListener.d.ts" />
|
|
@@ -80,8 +81,9 @@
|
|
|
80
81
|
/// <reference path="./awt/Component.d.ts" />
|
|
81
82
|
/// <reference path="./awt/GradientPaint.d.ts" />
|
|
82
83
|
/// <reference path="./awt/Container.d.ts" />
|
|
83
|
-
/// <reference path="./awt/
|
|
84
|
+
/// <reference path="./awt/GridBagConstraints.d.ts" />
|
|
84
85
|
/// <reference path="./awt/GridBagLayout.d.ts" />
|
|
86
|
+
/// <reference path="./awt/GridLayout.d.ts" />
|
|
85
87
|
/// <reference path="./awt/Insets.d.ts" />
|
|
86
88
|
/// <reference path="./awt/event/WindowListener.d.ts" />
|
|
87
89
|
/// <reference path="./awt/event/MouseAdapter.d.ts" />
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference path="../awt/Component.d.ts" />
|
|
2
|
+
/// <reference path="../awt/Container.d.ts" />
|
|
3
|
+
/// <reference path="../awt/Point.d.ts" />
|
|
4
|
+
/// <reference path="../awt/Rectangle.d.ts" />
|
|
5
|
+
/// <reference path="../awt/Dimension.d.ts" />
|
|
6
|
+
/// <reference path="./JComponent.d.ts" />
|
|
7
|
+
|
|
8
|
+
declare namespace javax.swing {
|
|
9
|
+
export class SwingUtilities {
|
|
10
|
+
// Event dispatch thread methods
|
|
11
|
+
static isEventDispatchThread(): boolean;
|
|
12
|
+
static invokeLater(doRun: () => void): void;
|
|
13
|
+
static invokeAndWait(doRun: () => void): void;
|
|
14
|
+
|
|
15
|
+
// Component tree methods
|
|
16
|
+
static getWindowAncestor(c: java.awt.Component): java.awt.Component | null;
|
|
17
|
+
static getRootPane(c: java.awt.Component): javax.swing.JComponent | null;
|
|
18
|
+
static getRoot(c: java.awt.Component): java.awt.Component | null;
|
|
19
|
+
static isDescendingFrom(a: java.awt.Component, b: java.awt.Component): boolean;
|
|
20
|
+
static getDeepestComponentAt(parent: java.awt.Component, x: number, y: number): java.awt.Component | null;
|
|
21
|
+
|
|
22
|
+
// Coordinate conversion methods
|
|
23
|
+
static convertPoint(source: java.awt.Component, p: java.awt.Point, destination: java.awt.Component): java.awt.Point;
|
|
24
|
+
static convertPoint(
|
|
25
|
+
source: java.awt.Component,
|
|
26
|
+
x: number,
|
|
27
|
+
y: number,
|
|
28
|
+
destination: java.awt.Component,
|
|
29
|
+
): java.awt.Point;
|
|
30
|
+
static convertPointToScreen(p: java.awt.Point, c: java.awt.Component): void;
|
|
31
|
+
static convertPointFromScreen(p: java.awt.Point, c: java.awt.Component): void;
|
|
32
|
+
static convertRectangle(
|
|
33
|
+
source: java.awt.Component,
|
|
34
|
+
aRectangle: java.awt.Rectangle,
|
|
35
|
+
destination: java.awt.Component,
|
|
36
|
+
): java.awt.Rectangle;
|
|
37
|
+
|
|
38
|
+
// Layout and sizing methods
|
|
39
|
+
static calculateInnerArea(c: javax.swing.JComponent, r: java.awt.Rectangle): java.awt.Rectangle;
|
|
40
|
+
static getLocalBounds(aComponent: java.awt.Component): java.awt.Rectangle;
|
|
41
|
+
|
|
42
|
+
// Painting methods
|
|
43
|
+
static updateComponentTreeUI(c: java.awt.Component): void;
|
|
44
|
+
static paintComponent(
|
|
45
|
+
g: any,
|
|
46
|
+
c: java.awt.Component,
|
|
47
|
+
p: java.awt.Container,
|
|
48
|
+
x: number,
|
|
49
|
+
y: number,
|
|
50
|
+
w: number,
|
|
51
|
+
h: number,
|
|
52
|
+
): void;
|
|
53
|
+
static paintComponent(g: any, c: java.awt.Component, p: java.awt.Container, r: java.awt.Rectangle): void;
|
|
54
|
+
|
|
55
|
+
// Mouse event methods
|
|
56
|
+
static isLeftMouseButton(anEvent: any): boolean;
|
|
57
|
+
static isMiddleMouseButton(anEvent: any): boolean;
|
|
58
|
+
static isRightMouseButton(anEvent: any): boolean;
|
|
59
|
+
|
|
60
|
+
// Utility methods
|
|
61
|
+
static computeStringWidth(fm: any, str: string): number;
|
|
62
|
+
static layoutCompoundLabel(
|
|
63
|
+
c: javax.swing.JComponent,
|
|
64
|
+
fm: any,
|
|
65
|
+
text: string,
|
|
66
|
+
icon: any,
|
|
67
|
+
verticalAlignment: number,
|
|
68
|
+
horizontalAlignment: number,
|
|
69
|
+
verticalTextPosition: number,
|
|
70
|
+
horizontalTextPosition: number,
|
|
71
|
+
viewR: java.awt.Rectangle,
|
|
72
|
+
iconR: java.awt.Rectangle,
|
|
73
|
+
textR: java.awt.Rectangle,
|
|
74
|
+
textIconGap: number,
|
|
75
|
+
): string;
|
|
76
|
+
static layoutCompoundLabel(
|
|
77
|
+
fm: any,
|
|
78
|
+
text: string,
|
|
79
|
+
icon: any,
|
|
80
|
+
verticalAlignment: number,
|
|
81
|
+
horizontalAlignment: number,
|
|
82
|
+
verticalTextPosition: number,
|
|
83
|
+
horizontalTextPosition: number,
|
|
84
|
+
viewR: java.awt.Rectangle,
|
|
85
|
+
iconR: java.awt.Rectangle,
|
|
86
|
+
textR: java.awt.Rectangle,
|
|
87
|
+
textIconGap: number,
|
|
88
|
+
): string;
|
|
89
|
+
|
|
90
|
+
// Window methods
|
|
91
|
+
static windowForComponent(c: java.awt.Component): java.awt.Component | null;
|
|
92
|
+
static isValidComponent(c: java.awt.Component): boolean;
|
|
93
|
+
|
|
94
|
+
// String utility methods
|
|
95
|
+
static computeStringWidth(text: string): number;
|
|
96
|
+
static getStringBounds(text: string): java.awt.Rectangle;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type SwingUtilities = javax.swing.SwingUtilities;
|