uicore-ts
Version:
UICore is a library to build native-like user interfaces using pure Typescript. No HTML is needed at all. Components are described as TS classes and all user interactions are handled explicitly. This library is strongly inspired by the UIKit framework tha
72 lines (17 loc) • 694 B
text/typescript
import { UIObject } from "./UIObject"
import { UIRectangle } from "./UIRectangle"
export class UILayoutGrid extends UIObject {
_frame: UIRectangle
_subframes: UILayoutGrid[] = []
constructor(frame: UIRectangle) {
super()
this._frame = frame
}
splitXInto(numberOfFrames: number) {
if (this._subframes.length == 0) {
for (var i = 0; i < numberOfFrames; i++) {
const asd = 1
}
}
}
}