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
42 lines (41 loc) • 1.49 kB
TypeScript
import { UIObject } from "./UIObject";
export interface UIColorDescriptor {
red: number;
green: number;
blue: number;
alpha?: number;
}
export declare class UIColor extends UIObject {
stringValue: string;
constructor(stringValue: string);
toString(): string;
static get redColor(): UIColor;
static get blueColor(): UIColor;
static get greenColor(): UIColor;
static get yellowColor(): UIColor;
static get blackColor(): UIColor;
static get brownColor(): UIColor;
static get whiteColor(): UIColor;
static get greyColor(): UIColor;
static get lightGreyColor(): UIColor;
static get transparentColor(): UIColor;
static get undefinedColor(): UIColor;
static get nilColor(): UIColor;
static nameToHex(name: string): string | undefined;
static hexToDescriptor(c: string): UIColorDescriptor;
static rgbToDescriptor(colorString: string): {
red: number;
green: number;
blue: number;
alpha: number;
};
get colorDescriptor(): UIColorDescriptor;
colorWithRed(red: number): UIColor;
colorWithGreen(green: number): UIColor;
colorWithBlue(blue: number): UIColor;
colorWithAlpha(alpha: number): UIColor;
static colorWithRGBA(red: number, green: number, blue: number, alpha?: number): UIColor;
static colorWithDescriptor(descriptor: UIColorDescriptor): UIColor;
private static defaultAlphaToOne;
colorByMultiplyingRGB(multiplier: number): UIColor;
}