NAME

Chandra::Same::Boy::App - ready-to-run Game Boy window

VERSION

Version 0.02

SYNOPSIS

use Chandra::Same::Boy::App;

Chandra::Same::Boy::App->new(
    title => 'Game Boy',
    rom   => 'game.gbc',
    scale => 3,
)->run;

DESCRIPTION

A thin wrapper that builds a Chandra::App, creates one Chandra::Same::Boy widget for rom, mounts it and blocks in run.

CONSTRUCTOR

new(%args)

Requires rom. Optional: title, model (default cgb), scale (default 3), width, height, sample_rate, debug, and on (a hashref of Chandra::Same::Boy event callbacks). Window size defaults to 160*scale by 144*scale.

METHODS

run

Build the window and widget, mount, and enter the event loop (blocks).

app / widget

Accessors, valid after run has constructed them.

SEE ALSO

Chandra::Same::Boy, Same::Boy, Chandra::App.

AUTHOR

LNATION <email@lnation.org>

LICENSE AND COPYRIGHT

This software is Copyright (c) 2026 by LNATION.

This is free software, licensed under the Artistic License 2.0.