INNER CODE UNIT · TypeScript

applyWidth

PerryTS/perry · packages/perry-styling/src/index.ts:137

export function applyWidth(handle: number, width: number): void {
  perry_ui_widget_set_width(handle, width);
}

export function applyTooltip(handle: number, text: string): void {
  perry_ui_widget_set_tooltip(handle, text);
}

// -------------------------------------------------------------------
// Gradient — direction: 0 = vertical (top→bottom), 1 = horizontal (left→right)
// -------------------------------------------------------------------

export function applyGradient(
  handle: number,
  r1: number, g1: number, b1: number, a1: number,
  r2: number, g2: number, b2: number, a2: number,
  direction: number,
): void {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…