project_files/HedgewarsMobile/Classes/MNEValueTrackingSlider.h
author koda
Sun, 12 Feb 2012 18:50:22 +0100
changeset 6679 d8b98aa486a6
child 6700 e04da46ee43c
permissions -rwxr-xr-x
tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6679
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     1
//
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     2
// MNEValueTrackingSlider
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     3
//
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     4
// Copyright 2011 Michael Neuwert
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     5
// "You can use the code in your own project and modify it as you like."
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     6
// http://blog.neuwert-media.com/2011/04/customized-uislider-with-visual-value-tracking/
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     7
//
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     8
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
     9
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    10
#import <Foundation/Foundation.h>
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    11
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    12
@class SliderValuePopupView;
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    13
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    14
@interface MNEValueTrackingSlider : UISlider {
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    15
    SliderValuePopupView *valuePopupView;
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    16
    NSString *textValue;
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    17
}
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    18
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    19
@property (nonatomic, readonly) CGRect thumbRect;
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    20
@property (nonatomic, retain) NSString *textValue;
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    21
d8b98aa486a6 tweaks to the value tracking slider (doesn't draw outside the superview bounds) and assign proper copyright notice to it
koda
parents:
diff changeset
    22
@end