Sha256: 7476d85042f9035b3b8f443b359634944e82ec612e419597efe32a64f30fe53f
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
############################################################################# ## Name: lib/Wx/Timer.pm ## Purpose: Wx::Timer and Wx::TimerRunner ## Author: Mattia Barbon ## Modified by: ## Created: 14/02/2001 ## RCS-ID: $Id: Timer.pm 2057 2007-06-18 23:03:00Z mbarbon $ ## Copyright: (c) 2001-2002 Mattia Barbon ## Licence: This program is free software; you can redistribute it and/or ## modify it under the same terms as Perl itself ############################################################################# package Wx::Timer; use strict; sub new { my $class = shift; @_ == 0 && return Wx::Timer::newDefault( $class, ); Wx::_match( @_, $Wx::_wehd_n, 1, 1 ) && return Wx::Timer::newEH( $class, @_ ); Wx::_croak Wx::_ovl_error; } package Wx::TimerRunner; use strict; sub new { my $class = shift; my $this = { TIMER => shift }; if( @_ > 0 ) { $this->{TIMER}->Start( @_ ) } bless $this, $class; $this; } sub DESTROY { my $this = shift; $this->{TIMER}->Stop if $this->{TIMER}->IsRunning; } sub Start { my( $this, $milliseconds, $oneshot ) = @_; $this->{TIMER}->Start( $milliseconds, $oneshot ); } 1; # Local variables: # # mode: cperl # # End: #
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
STLExtract-1.0.1 | Slic3r/Linux/lib/std/Wx/Timer.pm |
STLExtract-1.0.0 | Slic3r/Linux/lib/std/Wx/Timer.pm |