diff options
author | Patrick Luby <pluby@openoffice.org> | 2000-11-29 23:01:54 +0000 |
---|---|---|
committer | Patrick Luby <pluby@openoffice.org> | 2000-11-29 23:01:54 +0000 |
commit | 7ca1e9a9bfbdd66cf036e5a26e07072d86c59920 (patch) | |
tree | 49edbaf132682571d3e06dea01e62b7034eb81dc /vcl/aqua/source/app/saltimer.cxx | |
parent | 3b556615bc3108823098dd11f08b52c690076da6 (diff) |
Implemented event handlers and timers that manage painting.
Diffstat (limited to 'vcl/aqua/source/app/saltimer.cxx')
-rw-r--r-- | vcl/aqua/source/app/saltimer.cxx | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/vcl/aqua/source/app/saltimer.cxx b/vcl/aqua/source/app/saltimer.cxx index 663667633f83..d698759bbb20 100644 --- a/vcl/aqua/source/app/saltimer.cxx +++ b/vcl/aqua/source/app/saltimer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saltimer.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: pluby $ $Date: 2000-11-01 22:12:30 $ + * last change: $Author: pluby $ $Date: 2000-11-30 00:01:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,25 +61,53 @@ #define _SV_SALTIMER_CXX +#ifndef _SV_SALDATA_HXX +#include <saldata.hxx> +#endif #ifndef _SV_SALTIMER_HXX #include <saltimer.hxx> #endif +#ifndef _SV_SALTIMER_HXX +#include <saltimer.h> +#endif +#ifndef _SV_VCLAPPLICATION_H +#include <VCLApplication.h> +#endif + +// ======================================================================= +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +void CallSalTimerCallbackProc() +{ + SalData* pSalData = GetSalData(); + pSalData->mpTimerProc(); +} + +#ifdef __cplusplus +} +#endif // __cplusplus // ======================================================================= void SalTimer::Start( ULONG nMS ) { + VCLApplication_StartTimer( nMS ); } // ----------------------------------------------------------------------- void SalTimer::Stop() { + VCLApplication_StopTimer(); } // ----------------------------------------------------------------------- void SalTimer::SetCallback( SALTIMERPROC pProc ) { + SalData* pSalData = GetSalData(); + pSalData->mpTimerProc = pProc; } |