Chandra

 view release on metacpan or  search on metacpan

examples/splash_example.pl  view on Meta::CPAN

    width  => 1,
    height => 1,
);

# Init the underlying webview — this bootstraps NSApplication
# (setActivationPolicy, finishLaunching, etc.) which is required
# before any child windows will display.
my $wv = $app->webview;
$wv->init;

# Non-blocking event loop pump — call repeatedly to keep GUI alive
sub pump { $wv->loop(0) for 1..5 }

# Pump + sleep helper
sub pump_sleep {
    my ($secs) = @_;
    my $end = time + $secs;
    while (time < $end) {
        pump();
        select(undef, undef, undef, 0.02);
    }

include/chandra/chandra_splash.h  view on Meta::CPAN

/*
 * csplash_close — destroy the splash window.
 */
static void
csplash_close(int wid)
{
    cwin_destroy(wid);
}

/*
 * csplash_is_open — 1 if the window is still alive, 0 otherwise.
 */
static int
csplash_is_open(int wid)
{
    return (wid > 0) ? cwin_exists(wid) : 0;
}

#endif /* CHANDRA_XS_IMPLEMENTATION */
#endif /* CHANDRA_SPLASH_H */

lib/Chandra/Socket/Client.pm  view on Meta::CPAN

=head2 request

	$client->request($channel, \%data, sub { my ($reply) = @_; ... });

Send a request and register a callback for the correlated reply.

=head2 is_connected

	if ($client->is_connected) { ... }

Returns true if the underlying connection is alive.

=head2 poll

	$client->poll;

Non-blocking check for incoming messages. Triggers auto-reconnect if
the connection has dropped.

=head2 reconnect



( run in 4.242 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )