Skip to content

Commit

Permalink
Make class names follow the FX guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Dec 20, 2011
1 parent 3c5236d commit 2ceb43d
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
100 changes: 50 additions & 50 deletions ATMHud/binding/atmhud.cs
Expand Up @@ -8,15 +8,15 @@

namespace ATMHud {
//@interface ATMHud : UIViewController {
[BaseType (typeof (UIViewController), Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (ATMHudDelegate)})]
interface ATMHud {
[BaseType (typeof (UIViewController), Name="ATMHud", Delegates=new string [] { "WeakDelegate" }, Events=new Type [] { typeof (AtmHudDelegate)})]
interface AtmHud {
#region Delegates

[Export ("delegate"), NullAllowed]
NSObject WeakDelegate { get; set; }

[Wrap ("WeakDelegate")]
ATMHudDelegate Delegate { get; set; }
AtmHudDelegate Delegate { get; set; }

#endregion

Expand Down Expand Up @@ -86,17 +86,17 @@ interface ATMHud {
[Export ("hideSound", ArgumentSemantic.Retain)]
string HideSound { get; set; }

//@property (nonatomic, assign) ATMHudAccessoryPosition accessoryPosition;
//@property (nonatomic, assign) AtmHudAccessoryPosition accessoryPosition;
[Export ("accessoryPosition", ArgumentSemantic.Assign)]
ATMHudAccessoryPosition AccessoryPosition { get; set; }
AtmHudAccessoryPosition AccessoryPosition { get; set; }

//@property (nonatomic, retain) ATMHudView *__view;
//@property (nonatomic, retain) AtmHudView *__view;
[Export ("__view", ArgumentSemantic.Retain)]
ATMHudView HudView { get; set; }
AtmHudView HudView { get; set; }

//@property (nonatomic, retain) ATMSoundFX *sound;
[Export ("sound", ArgumentSemantic.Retain)]
ATMSoundFX Sound { get; set; }
AtmSoundFX Sound { get; set; }

//@property (nonatomic, retain) NSMutableArray *displayQueue;
[Export ("displayQueue", ArgumentSemantic.Retain)]
Expand All @@ -110,7 +110,7 @@ interface ATMHud {

//- (id)initWithDelegate:(id)hudDelegate;
[Export ("initWithDelegate:")]
IntPtr Constructor (ATMHudDelegate hudDelegate);
IntPtr Constructor (AtmHudDelegate hudDelegate);

#region Methods

Expand Down Expand Up @@ -142,9 +142,9 @@ interface ATMHud {
[Export ("setProgress:")]
void SetProgress (float progress);

//- (void)addQueueItem:(ATMHudQueueItem *)item;
//- (void)addQueueItem:(AtmHudQueueItem *)item;
[Export ("addQueueItem:")]
void AddToQueue (ATMHudQueueItem item);
void AddToQueue (AtmHudQueueItem item);

//- (void)addQueueItems:(NSArray *)items;
[Export ("addQueueItems:")]
Expand Down Expand Up @@ -191,46 +191,46 @@ interface ATMHud {


[Model]
[BaseType (typeof (NSObject))]
interface ATMHudDelegate {
//- (void)userDidTapHud:(ATMHud *)_hud;
[BaseType (typeof (NSObject), Name="ATMHudDelegate")]
interface AtmHudDelegate {
//- (void)userDidTapHud:(AtmHud *)_hud;
[Abstract]//, DelegateName ("UserTappedHud")]
[Export ("userDidTapHud:")]
void UserDidTapHud (ATMHudViewController hud);
void UserDidTapHud (AtmHud hud);

//- (void)hudWillAppear:(ATMHud *)_hud;
//- (void)hudWillAppear:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudWillAppear")]
[Export ("hudWillAppear:")]
void HudWillAppear (ATMHudViewController hud);
void HudWillAppear (AtmHud hud);

//- (void)hudDidAppear:(ATMHud *)_hud;
//- (void)hudDidAppear:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudDidAppear")]
[Export ("hudDidAppear:")]
void HudDidAppear (ATMHudViewController hud);
void HudDidAppear (AtmHud hud);

//- (void)hudWillUpdate:(ATMHud *)_hud;
//- (void)hudWillUpdate:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudWillUpdate")]
[Export ("hudWillUpdate:")]
void HudWillUpdate (ATMHudViewController hud);
void HudWillUpdate (AtmHud hud);

//- (void)hudDidUpdate:(ATMHud *)_hud;
//- (void)hudDidUpdate:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudDidUpdate")]
[Export ("hudDidUpdate:")]
void HudDidUpdate (ATMHudViewController hud);
void HudDidUpdate (AtmHud hud);

//- (void)hudWillDisappear:(ATMHud *)_hud;
//- (void)hudWillDisappear:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudWillDisappear")]
[Export ("hudWillDisappear:")]
void HudWillDisappear (ATMHudViewController hud);
void HudWillDisappear (AtmHud hud);

//- (void)hudDidDisappear:(ATMHud *)_hud;
//- (void)hudDidDisappear:(AtmHud *)_hud;
[Abstract]//, DelegateName ("HudDidDisappear")]
[Export ("hudDidDisappear:")]
void HudDidDisappear (ATMHudViewController hud);
void HudDidDisappear (AtmHud hud);
}

[BaseType (typeof (NSObject))]
interface ATMHudQueueItem {
[BaseType (typeof (NSObject), Name="ATMHudQueueItem")]
interface AtmHudQueueItem {
#region Properties

//@property (nonatomic, retain) NSString *caption;
Expand All @@ -245,9 +245,9 @@ interface ATMHudQueueItem {
[Export ("showActivity")]
bool ShowActivity { get; set; }

//@property (nonatomic, assign) ATMHudAccessoryPosition accessoryPosition;
//@property (nonatomic, assign) AtmHudAccessoryPosition accessoryPosition;
[Export ("accessoryPosition")]
ATMHudAccessoryPosition AccessoryPosition { get; set; }
AtmHudAccessoryPosition AccessoryPosition { get; set; }

//@property (nonatomic, assign) UIActivityIndicatorViewStyle activityStyle;
[Export ("activityStyle")]
Expand All @@ -256,8 +256,8 @@ interface ATMHudQueueItem {
#endregion
}

[BaseType (typeof (NSObject))]
interface ATMHudView {
[BaseType (typeof (NSObject), Name="ATMHudView")]
interface AtmHudView {
#region Properties

//@property (nonatomic, retain) NSString *caption;
Expand All @@ -276,9 +276,9 @@ interface ATMHudView {
[Export ("activityStyle")]
UIActivityIndicatorViewStyle ActivityStyle { get; set; }

//@property (nonatomic, retain) ATMHud *p;
//@property (nonatomic, retain) AtmHud *p;
[Export ("p")]
ATMHudViewController ParentHudController { get; set; }
AtmHud ParentHudController { get; set; }

//@property (nonatomic, assign) BOOL showActivity;
[Export ("showActivity")]
Expand Down Expand Up @@ -326,19 +326,19 @@ interface ATMHudView {

//@property (nonatomic, retain) ATMTextLayer *captionLayer;
[Export ("captionLayer")]
ATMTextLayer CaptionLayer { get; set; }
AtmTextLayer CaptionLayer { get; set; }

//@property (nonatomic, retain) ATMProgressLayer *progressLayer;
[Export ("progressLayer")]
ATMProgressLayer ProgressLayer { get; set; }
AtmProgressLayer ProgressLayer { get; set; }

#endregion

#region Constructors

//- (id)initWithFrame:(CGRect)frame andController:(ATMHud *)c;
//- (id)initWithFrame:(CGRect)frame andController:(AtmHud *)c;
[Export ("initWithFrame:andController:")]
IntPtr Constructor (RectangleF frame, ATMHudViewController controller);
IntPtr Constructor (RectangleF frame, AtmHud controller);

#endregion

Expand All @@ -356,17 +356,17 @@ interface ATMHudView {
[Export ("calculate")]
void Calculate ();

//- (CGSize)calculateSizeForQueueItem:(ATMHudQueueItem *)item;
//- (CGSize)calculateSizeForQueueItem:(AtmHudQueueItem *)item;
[Export ("calculateSizeForQueueItem:")]
SizeF CalculateSize (ATMHudQueueItem item);
SizeF CalculateSize (AtmHudQueueItem item);

//- (CGSize)sizeForActivityStyle:(UIActivityIndicatorViewStyle)style;
[Export ("sizeForActivityStyle:")]
SizeF SizeForActivityStyle (UIActivityIndicatorViewStyle style);

//- (void)applyWithMode:(ATMHudApplyMode)mode;
//- (void)applyWithMode:(AtmHudApplyMode)mode;
[Export ("applyWithMode:")]
void Apply (ATMHudApplyMode mode);
void Apply (AtmHudApplyMode mode);

//- (void)show;
[Export ("show")]
Expand All @@ -387,8 +387,8 @@ interface ATMHudView {
#endregion
}

[BaseType (typeof (CALayer))]
interface ATMProgressLayer {
[BaseType (typeof (CALayer), Name="ATMProgressLayer")]
interface AtmProgressLayer {
#region Properties

//@property (nonatomic, assign) CGFloat theProgress;
Expand All @@ -414,8 +414,8 @@ interface ATMProgressLayer {
#endregion
}

[BaseType (typeof (CALayer))]
interface ATMTextLayer {
[BaseType (typeof (CALayer), Name="ATMTextLayer")]
interface AtmTextLayer {
#region Properties

//@property (nonatomic, assign) NSString *caption;
Expand All @@ -425,11 +425,11 @@ interface ATMTextLayer {
#endregion
}

[BaseType (typeof (NSObject))]
interface ATMSoundFX {
[BaseType (typeof (NSObject), Name="ATMSoundFX")]
interface AtmSoundFX {
//+ (id)soundEffectWithContentsOfFile:(NSString *)aPath;
[Static, Export ("soundEffectWithContentsOfFile:")]
ATMSoundFX FromFile (string path);
AtmSoundFX FromFile (string path);

//- (id)initWithContentsOfFile:(NSString *)path;
[Export ("initWithContentsOfFile:")]
Expand Down
4 changes: 2 additions & 2 deletions ATMHud/binding/enums.cs
@@ -1,14 +1,14 @@
using System;

namespace ATMHud {
public enum ATMHudAccessoryPosition {
public enum AtmHudAccessoryPosition {
Top,
Right,
Bottom,
Left
}

public enum ATMHudApplyMode {
public enum AtmHudApplyMode {
Show = 0,
Update,
Hide
Expand Down

0 comments on commit 2ceb43d

Please sign in to comment.