@@ -98,7 +98,11 @@ public bool Editing
9898 set => AddOrUpdate ( "editing" , value . ToStackEntry ( ) ) ;
9999 }
100100
101- public string extent { get ; set ; }
101+ public string Extent
102+ {
103+ get => GetVariable ( "extent" ) . GetValue < TString > ( ) ?? string . Empty ;
104+ set => AddOrUpdate ( "extent" , value . ToStackEntry ( ) ) ;
105+ }
102106
103107 public bool Flickering
104108 {
@@ -112,13 +116,37 @@ public int FlickerTime
112116 set => AddOrUpdate ( "flickertime" , value . ToStackEntry ( ) ) ;
113117 }
114118
115- public string hint { get ; set ; }
116- public string horizsizing { get ; set ; }
119+ public string Hint
120+ {
121+ get => GetVariable ( "hint" ) . GetValue < TString > ( ) ?? string . Empty ;
122+ set => AddOrUpdate ( "hint" , value . ToStackEntry ( ) ) ;
123+ }
124+ public string HorizSizing
125+ {
126+ get => GetVariable ( "horizsizing" ) . GetValue < TString > ( ) ?? string . Empty ;
127+ set => AddOrUpdate ( "horizsizing" , value . ToStackEntry ( ) ) ;
128+ }
117129 public int layer { get ; }
118- public string minextent { get ; set ; }
119- public string minsize { get ; set ; }
120- public string position { get ; set ; }
121- public object profile { get ; set ; }
130+ public string MinExtent
131+ {
132+ get => GetVariable ( "minextent" ) . GetValue < TString > ( ) ?? string . Empty ;
133+ set => AddOrUpdate ( "minextent" , value . ToStackEntry ( ) ) ;
134+ }
135+ public string MinSize
136+ {
137+ get => GetVariable ( "minsize" ) . GetValue < TString > ( ) ?? string . Empty ;
138+ set => AddOrUpdate ( "minsize" , value . ToStackEntry ( ) ) ;
139+ }
140+ public string position
141+ {
142+ get => GetVariable ( "position" ) . GetValue < TString > ( ) ?? string . Empty ;
143+ set => AddOrUpdate ( "position" , value . ToStackEntry ( ) ) ;
144+ }
145+ public IGuiControl ? profile
146+ {
147+ get => GetVariable ( "profile" ) . GetValue < IGuiControl > ( ) ;
148+ set => AddOrUpdate ( "profile" , value . ToStackEntry ( ) ) ;
149+ }
122150
123151 public bool ResizeHeight
124152 {
@@ -147,7 +175,11 @@ public bool UseOwnProfile
147175 set => AddOrUpdate ( "useownprofile" , value . ToStackEntry ( ) ) ;
148176 }
149177
150- public string vertsizing { get ; set ; }
178+ public string vertsizing
179+ {
180+ get => GetVariable ( "vertsizing" ) . GetValue < TString > ( ) ?? string . Empty ;
181+ set => AddOrUpdate ( "vertsizing" , value . ToStackEntry ( ) ) ;
182+ }
151183
152184 public bool Visible
153185 {
@@ -194,14 +226,20 @@ public void Destroy()
194226 Dispose ( ) ;
195227 }
196228
197- public IGuiControl parent { get ; set ; }
229+ public IGuiControl ? parent
230+ {
231+ get => GetVariable ( "parent" ) . GetValue < IGuiControl > ( ) ;
232+ set => AddOrUpdate ( "parent" , value . ToStackEntry ( ) ) ;
233+ }
198234
199235 public void AddControl ( IGuiControl ? obj )
200236 {
201237 if ( obj == null ) return ;
202-
203238 obj . parent = this ;
204- Controls . Add ( obj ) ;
239+ lock ( Controls )
240+ {
241+ Controls . Add ( obj ) ;
242+ }
205243 }
206244
207245 public virtual void Draw ( )
0 commit comments