1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
|
#############################################################################
## Name: XS/Utils.xs
## Purpose: XS for some utility classes
## Author: Mattia Barbon
## Modified by:
## Created: 09/02/2001
## RCS-ID: $Id: Utils.xs 3096 2011-10-13 05:52:30Z mdootson $
## Copyright: (c) 2001-2003, 2005-2008, 2010 Mattia Barbon
## Licence: This program is free software; you can redistribute it and/or
## modify it under the same terms as Perl itself
#############################################################################
#include <wx/busyinfo.h>
#include <wx/settings.h>
#include <wx/caret.h>
#include <wx/snglinst.h>
#include <wx/splash.h>
#include <wx/utils.h>
#include <wx/debug.h>
#include <wx/tipdlg.h>
#if WXPERL_W_VERSION_GE( 2, 8, 0 )
#include <wx/sysopt.h>
#endif
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
#ifdef __WXGTK20__
#define __WXGTK20__DEFINED
#undef __WXGTK20__
#endif
#include <wx/stockitem.h>
#ifdef __WXGTK20__DEFINED
#define __WXGTK20__
#endif
#endif
#include "cpp/tipprovider.h"
MODULE=Wx PACKAGE=Wx::CaretSuspend
wxCaretSuspend*
wxCaretSuspend::new( window )
wxWindow* window
static void
wxCaretSuspend::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxCaretSuspend::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::CaretSuspend", THIS, ST(0) );
delete THIS;
MODULE=Wx PACKAGE=Wx::SplashScreen
#ifndef wxFRAME_FLOAT_ON_PARENT
#define wxFRAME_FLOAT_ON_PARENT 0
#endif
#ifndef wxFRAME_TOOL_WINDOW
#define wxFRAME_TOOL_WINDOW 0
#endif
wxSplashScreen*
wxSplashScreen::new( bitmap, splashStyle, milliseconds, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP )
wxBitmap* bitmap
long splashStyle
int milliseconds
wxWindow* parent
wxWindowID id
wxPoint pos
wxSize size
long style
CODE:
RETVAL = new wxSplashScreen( *bitmap, splashStyle, milliseconds, parent,
id, pos, size, style );
OUTPUT:
RETVAL
long
wxSplashScreen::GetSplashStyle()
wxSplashScreenWindow*
wxSplashScreen::GetSplashWindow()
int
wxSplashScreen::GetTimeout()
MODULE=Wx PACKAGE=Wx::WindowDisabler
#if WXPERL_W_VERSION_GE( 2, 9, 2 )
void
new( ... )
PPCODE:
BEGIN_OVERLOAD()
MATCH_VOIDM_REDISP( newBool )
MATCH_REDISP( wxPliOvl_wwin, newWindow )
MATCH_REDISP( wxPliOvl_n, newBool )
END_OVERLOAD( "Wx::WindowDisabler::new" )
wxWindowDisabler*
newWindow( CLASS, skip )
SV* CLASS
wxWindow* skip
CODE:
RETVAL = new wxWindowDisabler( skip );
OUTPUT: RETVAL
wxWindowDisabler*
newBool( CLASS, disable = true )
SV* CLASS
bool disable
CODE:
RETVAL = new wxWindowDisabler( disable );
OUTPUT: RETVAL
#else
wxWindowDisabler*
wxWindowDisabler::new( skip = 0 )
wxWindow* skip
#endif
static void
wxWindowDisabler::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxWindowDisabler::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::WindowDisabler", THIS, ST(0) );
delete THIS;
MODULE=Wx PACKAGE=Wx::BusyCursor
#if WXPERL_W_VERSION_GE( 2, 7, 0 )
wxBusyCursor*
wxBusyCursor::new( cursor = wxHOURGLASS_CURSOR )
const wxCursor* cursor
#else
wxBusyCursor*
wxBusyCursor::new( cursor = wxHOURGLASS_CURSOR )
wxCursor* cursor
#endif
static void
wxBusyCursor::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxBusyCursor::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::BusyCursor", THIS, ST(0) );
delete THIS;
MODULE=Wx PACKAGE=Wx::BusyInfo
wxBusyInfo*
wxBusyInfo::new( message )
wxString message
static void
wxBusyInfo::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxBusyInfo::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::BusyInfo", THIS, ST(0) );
delete THIS;
MODULE=Wx PACKAGE=Wx::StopWatch
#ifdef Pause
#undef Pause
#endif
wxStopWatch*
wxStopWatch::new()
static void
wxStopWatch::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxStopWatch::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::StopWatch", THIS, ST(0) );
delete THIS;
void
wxStopWatch::Pause()
void
wxStopWatch::Start( milliseconds = 0 )
long milliseconds
void
wxStopWatch::Resume()
long
wxStopWatch::Time()
MODULE=Wx PACKAGE=Wx::SingleInstanceChecker
#if wxUSE_SNGLINST_CHECKER
wxSingleInstanceChecker*
wxSingleInstanceChecker::new()
static void
wxSingleInstanceChecker::CLONE()
CODE:
wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
## // thread OK
void
wxSingleInstanceChecker::DESTROY()
CODE:
wxPli_thread_sv_unregister( aTHX_ "Wx::SingleInstanceChecker", THIS, ST(0) );
delete THIS;
bool
wxSingleInstanceChecker::Create( name, path = wxEmptyString )
wxString name
wxString path
bool
wxSingleInstanceChecker::IsAnotherRunning()
#endif
#if WXPERL_W_VERSION_GE( 2, 8, 0 )
MODULE=Wx PACKAGE=Wx::SystemOptions
#define wxSystemOptions_SetOption wxSystemOptions::SetOption
#define wxSystemOptions_GetOption wxSystemOptions::GetOption
#define wxSystemOptions_GetOptionInt wxSystemOptions::GetOptionInt
#define wxSystemOptions_HasOption wxSystemOptions::HasOption
#define wxSystemOptions_IsFalse wxSystemOptions::IsFalse
void
SetOption( name, value )
wxString name
wxString value
CODE:
wxSystemOptions_SetOption( name, value);
void
SetOptionInt( name, value )
wxString name
int value
CODE:
wxSystemOptions_SetOption( name, value);
wxString
GetOption( name )
wxString name
CODE:
RETVAL = wxSystemOptions_GetOption( name );
OUTPUT: RETVAL
int
GetOptionInt( name )
wxString name
CODE:
RETVAL = wxSystemOptions_GetOptionInt( name );
OUTPUT: RETVAL
bool
HasOption( name )
wxString name
CODE:
RETVAL = wxSystemOptions_HasOption( name );
OUTPUT: RETVAL
bool
IsFalse( name )
wxString name
CODE:
RETVAL = wxSystemOptions_IsFalse( name );
OUTPUT: RETVAL
#endif
MODULE=Wx PACKAGE=Wx::SystemSettings
#if WXPERL_W_VERSION_GE( 2, 5, 2 )
#define wxSystemSettings_GetSystemColour wxSystemSettings::GetColour
#define wxSystemSettings_GetSystemFont wxSystemSettings::GetFont
#define wxSystemSettings_GetSystemMetric wxSystemSettings::GetMetric
#else
#define wxSystemSettings_GetSystemColour wxSystemSettings::GetSystemColour
#define wxSystemSettings_GetSystemFont wxSystemSettings::GetSystemFont
#define wxSystemSettings_GetSystemMetric wxSystemSettings::GetSystemMetric
#endif
wxColour*
GetColour( index )
wxSystemColour index
CODE:
RETVAL = new wxColour( wxSystemSettings_GetSystemColour( index ) );
OUTPUT: RETVAL
wxColour*
GetSystemColour( index )
wxSystemColour index
CODE:
RETVAL = new wxColour( wxSystemSettings_GetSystemColour( index ) );
OUTPUT: RETVAL
wxFont*
GetFont( index )
wxSystemFont index
CODE:
RETVAL = new wxFont( wxSystemSettings_GetSystemFont( index ) );
OUTPUT: RETVAL
wxFont*
GetSystemFont( index )
wxSystemFont index
CODE:
RETVAL = new wxFont( wxSystemSettings_GetSystemFont( index ) );
OUTPUT: RETVAL
int
GetMetric( index )
wxSystemMetric index
CODE:
RETVAL = wxSystemSettings_GetSystemMetric( index );
OUTPUT: RETVAL
int
GetSystemMetric( index )
wxSystemMetric index
CODE:
RETVAL = wxSystemSettings_GetSystemMetric( index );
OUTPUT: RETVAL
wxSystemScreenType
GetScreenType()
CODE:
RETVAL = wxSystemSettings::GetScreenType();
OUTPUT: RETVAL
MODULE=Wx PACKAGE=Wx::TipProvider
wxTipProvider*
wxTipProvider::new( currentTip )
size_t currentTip
CODE:
RETVAL = new wxPliTipProvider( CLASS, currentTip );
OUTPUT:
RETVAL
void
wxTipProvider::Destroy()
CODE:
delete THIS;
size_t
wxTipProvider::GetCurrentTip()
wxString
wxTipProvider::GetTip()
wxString
wxTipProvider::PreprocessTip( tip )
wxString tip
void
wxTipProvider::SetCurrentTip( number )
size_t number
CODE:
((wxPliTipProvider*)THIS)->SetCurrentTip( number );
MODULE=Wx PACKAGE=Wx::Thread
#if wxUSE_THREADS
#include <wx/thread.h>
bool
IsMain()
CODE:
RETVAL = wxThread::IsMain();
OUTPUT:
RETVAL
#endif
MODULE=Wx PACKAGE=Wx PREFIX=wx
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
bool
wxIsStockID( wxWindowID id )
bool
wxIsStockLabel( wxWindowID id, wxString label )
#if WXPERL_W_VERSION_GE( 2, 6, 3 )
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
wxString
wxGetStockLabel( wxWindowID id, long flags = wxSTOCK_WITH_MNEMONIC )
#else
wxString
wxGetStockLabel( wxWindowID id, bool withCodes = true, wxString accelerator = wxEmptyString )
#endif
#else
wxString
wxGetStockLabel( wxWindowID id )
#endif
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 1 )
wxAcceleratorEntry*
wxGetStockAccelerator( wxWindowID id )
CODE:
RETVAL = new wxAcceleratorEntry( wxGetStockAccelerator( id ) );
OUTPUT: RETVAL
wxString
wxGetStockHelpString( wxWindowID id, wxStockHelpStringClient client = wxSTOCK_MENU )
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 0 )
bool
wxLaunchDefaultBrowser( url, flags = 0 )
wxString url
int flags
#else
#if WXPERL_W_VERSION_GE( 2, 6, 1 )
bool
wxLaunchDefaultBrowser( url )
wxString url
#endif
#endif
bool
wxShowTip( parent, tipProvider, showAtStartup = true )
wxWindow* parent
wxTipProvider* tipProvider
bool showAtStartup
wxTipProvider*
wxCreateFileTipProvider( filename, currentTip )
wxString filename
size_t currentTip
void
wxUsleep( ms )
unsigned long ms
CODE:
#if WXPERL_W_VERSION_LE( 2, 5, 2 )
wxUsleep( ms );
#else
wxMilliSleep( ms );
#endif
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
void
wxMicroSleep( ms )
unsigned long ms
#endif
void
wxMilliSleep( ms )
unsigned long ms
CODE:
#if WXPERL_W_VERSION_LE( 2, 5, 2 )
wxUsleep( ms );
#else
wxMilliSleep( ms );
#endif
void
wxSleep( sec )
int sec
bool
wxYield()
bool
wxSafeYield( window = 0, onlyIfNeeded = false )
wxWindow* window
bool onlyIfNeeded
bool
wxYieldIfNeeded()
void
wxTrap()
wxString
wxGetOsDescription()
long
wxNewId()
wxEventType
wxNewEventType()
void
wxRegisterId( id )
long id
void
wxBell()
void
wxExit()
bool
wxShell( command = wxEmptyString )
wxString command
#if WXPERL_W_VERSION_GE( 2, 6, 0 )
bool
wxGetKeyState( key )
wxKeyCode key
#endif
void
wxSetCursor( wxCursor* cursor)
C_ARGS: *cursor
MODULE=Wx PACKAGE=Wx
void
_utf8_on( sv )
SV* sv
CODE:
SvUTF8_on( sv );
void
_utf8_off( sv )
SV* sv
CODE:
SvUTF8_off( sv );
|