This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-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