ZeroTierOne/ext/mac-ui-macgap1-wrapper/MacGap/Classes/Utils.h

21 lines
494 B
C
Raw Normal View History

#import <Foundation/Foundation.h>
#import <Webkit/WebScriptObject.h>
#define DEG_EPS 0.001
#define fequal(a,b) (fabs((a) - (b)) < DEG_EPS)
#define fequalzero(a) (fabs(a) < DEG_EPS)
@class LoadingView;
@interface Utils : NSObject {
}
- (float) titleBarHeight:(NSWindow*)aWindow;
- (NSString*) pathForResource:(NSString*)resourcepath;
- (NSString*) convertDictionaryToJSON:(NSDictionary*)dict;
- (NSArray*) convertJSarrayToNSArray:(WebScriptObject*)jsArray;
+ (Utils*) sharedInstance;
@end