forked from kasper/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPHAXUIElement.h
36 lines (22 loc) · 964 Bytes
/
PHAXUIElement.h
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
/*
* Phoenix is released under the MIT License. Refer to https://github.com/kasper/phoenix/blob/master/LICENSE.md
*/
@import Foundation;
@interface PHAXUIElement : NSObject
#pragma mark - Initialising
+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithElement:(id)element NS_DESIGNATED_INITIALIZER;
#pragma mark - System Accessors
+ (instancetype)elementForSystemAttribute:(NSString *)attribute;
+ (instancetype)elementAtPosition:(CGPoint)position;
#pragma mark - Element Accessors
- (pid_t)processIdentifier;
- (id)valueForAttribute:(NSString *)attribute;
- (id)valueForAttribute:(NSString *)attribute withDefaultValue:(id)defaultValue;
- (NSArray *)valuesForAttribute:(NSString *)attribute fromIndex:(NSUInteger)index count:(NSUInteger)count;
#pragma mark - Setters
- (BOOL)setAttribute:(NSString *)attribute withValue:(id)value;
#pragma mark - Actions
- (BOOL)performAction:(NSString *)action;
@end