mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 11:52:08 +00:00
52 lines
1.7 KiB
Objective-C
52 lines
1.7 KiB
Objective-C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2013-2014 - Jason Fetters
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _RARCH_APPLE_VIEWS_H
|
|
#define _RARCH_APPLE_VIEWS_H
|
|
|
|
#include <UIKit/UIKit.h>
|
|
#include "../../core_info.h"
|
|
|
|
|
|
#include "menu.h"
|
|
|
|
// browser.m
|
|
@interface RADirectoryItem : NSObject<RAMenuItemBase>
|
|
@property (nonatomic) NSString* path;
|
|
@property (nonatomic) bool isDirectory;
|
|
@end
|
|
|
|
@interface RADirectoryList : RAMenuBase<UIActionSheetDelegate>
|
|
@property (nonatomic, weak) RADirectoryItem* selectedItem;
|
|
|
|
@property (nonatomic, copy) void (^chooseAction)(RADirectoryList* list, RADirectoryItem* item);
|
|
@property (nonatomic, copy) NSString* path;
|
|
@property (nonatomic, copy) NSString* extensions;
|
|
|
|
@property (nonatomic) bool allowBlank;
|
|
@property (nonatomic) bool forDirectory;
|
|
|
|
- (id)initWithPath:(NSString*)path extensions:(const char*)extensions action:(void (^)(RADirectoryList* list, RADirectoryItem* item))action;
|
|
- (void)browseTo:(NSString*)path;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RAFoldersList : RAMenuBase
|
|
- (id) initWithFilePath:(NSString*)path;
|
|
@end
|
|
|
|
#endif
|