From e675e9784a20bb07d33f0feb3724a2a1f072f52b Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 5 Jun 2024 13:16:28 +0200 Subject: more widget subclasses * levelbar * overlay * scrollable * slider --- gjs/src/widgets.ts | 89 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 73 insertions(+), 16 deletions(-) (limited to 'gjs') diff --git a/gjs/src/widgets.ts b/gjs/src/widgets.ts index e8adf65..c731b02 100644 --- a/gjs/src/widgets.ts +++ b/gjs/src/widgets.ts @@ -4,32 +4,89 @@ import astalify, { type ConstructProps } from "./astalify.js" export { astalify, ConstructProps } -// Label -export const Label = astalify(Gtk.Label) -export type LabelProps = ConstructProps - -// Icon -export const Icon = astalify(Astal.Icon) -export type IconProps = ConstructProps +// Box +export const Box = astalify(Astal.Box) +export type BoxProps = ConstructProps // Button export const Button = astalify(Astal.Button) export type ButtonProps = ConstructProps -// Window -export const Window = astalify(Astal.Window) -export type WindowProps = ConstructProps - -// Box -export const Box = astalify(Astal.Box) -export type BoxProps = ConstructProps - // CenterBox export const CenterBox = astalify(Astal.CenterBox) export type CenterBoxProps = ConstructProps +// TODO: CircularProgress + +// DrawingArea +export const DrawingArea = astalify(Gtk.DrawingArea) +export type DrawingAreaProps = ConstructProps + +// Entry +export const Entry = astalify(Gtk.Entry) +export type EntryProps = ConstructProps + // EventBox export const EventBox = astalify(Astal.EventBox) -export type EventBoxProps = ConstructProps +export type EventBoxProps = ConstructProps + +// TODO: Fixed +// TODO: FlowBox + +// Icon +export const Icon = astalify(Astal.Icon) +export type IconProps = ConstructProps + +// Label +export const Label = astalify(Gtk.Label) +export type LabelProps = ConstructProps + +// LevelBar +export const LevelBar = astalify(Astal.LevelBar) +export type LevelBarProps = ConstructProps + +// TODO: ListBox + +// Overlay +export const Overlay = astalify(Astal.Overlay) +export type OverlayProps = ConstructProps + +// Revealer +export const Revealer = astalify(Gtk.Revealer) +export type RevealerProps = ConstructProps + +// Scrollable +export const Scrollable = astalify(Astal.Scrollable) +export type ScrollableProps = ConstructProps + +// Slider +export const Slider = astalify(Astal.Slider) +export type SliderProps = ConstructProps + +// TODO: Stack + +// Switch +export const Switch = astalify(Gtk.Switch) +export type SwitchProps = ConstructProps + +// Window +export const Window = astalify(Astal.Window) +export type WindowProps = ConstructProps -- cgit v1.2.3