File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ ofxTextInputField::ofxTextInputField() {
69
69
fontRef = new ofxTextInput::BitmapFontRenderer ();
70
70
// isSetup = false;
71
71
72
- VERTICAL_PADDING = 12 ;
73
- HORIZONTAL_PADDING = 10 ;
72
+ verticalPadding = 12 ;
73
+ horizontalPadding = 10 ;
74
74
lastTimeCursorMoved = ofGetElapsedTimef ();
75
75
}
76
76
@@ -141,6 +141,13 @@ void ofxTextInputField::setFont(OFX_TEXTFIELD_FONT_RENDERER& font){
141
141
fontRef = new ofxTextInput::TypedFontRenderer (&font);
142
142
}
143
143
144
+ void ofxTextInputField::setHorizontalPadding (int val){
145
+ horizontalPadding = val;
146
+ }
147
+
148
+ void ofxTextInputField::setVerticalPadding (int val){
149
+ verticalPadding = val;
150
+ }
144
151
bool ofxTextInputField::getIsEditing (){
145
152
return isEditing;
146
153
}
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ class ofxTextInputField {
49
49
void setFont (OFX_TEXTFIELD_FONT_RENDERER& font);
50
50
51
51
void setup ();
52
+ void setHorizontalPadding (int val);
53
+ void setVerticalPadding (int val);
52
54
53
55
void enable ();
54
56
void disable ();
@@ -100,8 +102,8 @@ class ofxTextInputField {
100
102
101
103
protected:
102
104
float lastTimeCursorMoved;
103
- int VERTICAL_PADDING ;
104
- int HORIZONTAL_PADDING ;
105
+ int verticalPadding ;
106
+ int capsVerticalOffset ;
105
107
ofxTextInput::FontRenderer* fontRef;
106
108
107
109
bool isEnabled;
You can’t perform that action at this time.
0 commit comments