/////////////////////////////////////////////////////////////////////////////
-// Name: src/osx/cocoa/utils.mm
+// Name: src/osx/iphone/utils.mm
// Purpose: various cocoa utility functions
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id: utils.mm 48805 2007-09-19 14:52:25Z SC $
+// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include <AudioToolbox/AudioServices.h>
-#if wxUSE_BASE
-
-// Emit a beeeeeep
-void wxBell()
-{
- // would be kSystemSoundID_UserPreferredAlert but since the headers aren't correct, add it manually
- AudioServicesPlayAlertSound(0x00001000 );
-}
+#if 1 // wxUSE_BASE
// ----------------------------------------------------------------------------
// Common Event Support
{
}
-void wxMacWakeUp()
-{
- // TODO
-}
-
#endif // wxUSE_BASE
#if wxUSE_GUI
+// Emit a beeeeeep
+void wxBell()
+{
+ // would be kSystemSoundID_UserPreferredAlert but since the headers aren't correct, add it manually
+ AudioServicesPlayAlertSound(0x00001000 );
+}
+
// ----------------------------------------------------------------------------
// Launch default browser
// ----------------------------------------------------------------------------
return [UIFont fontWithName:wxCFStringRef(font.GetFaceName() ).AsNSString() size:font.GetPointSize()];
}
+CFArrayRef CopyAvailableFontFamilyNames()
+{
+ return (CFArrayRef) [[UIFont familyNames] retain];
+}
+
extern void DrawTextInContext( CGContextRef context, CGPoint where, UIFont *font, NSString* text )
{
bool contextChanged = ( UIGraphicsGetCurrentContext() != context );
}
-#endif // wxOSX_USE_IPHONE
\ No newline at end of file
+#endif // wxOSX_USE_IPHONE