PageRenderTime 204ms CodeModel.GetById 100ms app.highlight 4ms RepoModel.GetById 97ms app.codeStats 0ms

/src/backend/iphone/ftk_iphone_view.h

http://ftk.googlecode.com/
C++ Header | 36 lines | 25 code | 11 blank | 0 comment | 0 complexity | 9a0a1e41e38cbd36361abebd86fb8423 MD5 | raw file
 1
 2#ifndef FTK_IPHONE_VIEW_H
 3#define FTK_IPHONE_VIEW_H
 4
 5#include "ftk_event.h"
 6#include "ftk_bitmap.h"
 7#import <UIKit/UIKit.h>
 8
 9@interface FtkView : UIView<UITextFieldDelegate>
10{
11@private
12	UITextField* text_field;
13	FtkEvent ev;
14}
15
16-(id)initWithFrame:(CGRect)frame;
17
18-(void)drawView:(FtkBitmap*)bitmap rect:(FtkRect*)rect bits:(void*)bits xoffset:(int)xoffset yoffset:(int)yoffset width:(int)width height:(int)height;
19
20-(void)showKeyboard;
21-(void)hideKeyboard;
22
23-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
24-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
25-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
26@end
27
28void ftk_iphone_view_create_win(void);
29void ftk_iphone_view_destroy_win(void);
30
31void ftk_iphone_view_draw(FtkBitmap* bitmap, FtkRect* rect, void* bits, int xoffset, int yoffset, int width, int height);
32
33void ftk_iphone_view_show_keyboard(void);
34void ftk_iphone_view_hide_keyboard(void);
35
36#endif/*FTK_IPHONE_VIEW_H*/