INNER CODE UNIT · TypeScript

applyFontFamily

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

export function applyFontFamily(handle: number, family: string): void {
  perry_ui_text_set_font_family(handle, family);
}

// -------------------------------------------------------------------
// Widget styling — background, radius, width, tooltip
// -------------------------------------------------------------------

export function applyBg(handle: number, r: number, g: number, b: number, a: number): void {
  perry_ui_widget_set_background_color(handle, r, g, b, a);
}

export function applyRadius(handle: number, radius: number): void {
  perry_ui_widget_set_corner_radius(handle, radius);
}

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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…