@@ -4555,89 +4555,6 @@ public static void Bullet()
45554555 {
45564556 ImGuiNative . igBullet ( ) ;
45574557 }
4558- public static bool InputText ( string label , string buf , uint buf_size )
4559- {
4560- int label_byteCount = Encoding . UTF8 . GetByteCount ( label ) ;
4561- byte * native_label = stackalloc byte [ label_byteCount + 1 ] ;
4562- fixed ( char * label_ptr = label )
4563- {
4564- int native_label_offset = Encoding . UTF8 . GetBytes ( label_ptr , label . Length , native_label , label_byteCount ) ;
4565- native_label [ native_label_offset ] = 0 ;
4566- }
4567- int buf_byteCount = Encoding . UTF8 . GetByteCount ( buf ) ;
4568- byte * native_buf = stackalloc byte [ buf_byteCount + 1 ] ;
4569- fixed ( char * buf_ptr = buf )
4570- {
4571- int native_buf_offset = Encoding . UTF8 . GetBytes ( buf_ptr , buf . Length , native_buf , buf_byteCount ) ;
4572- native_buf [ native_buf_offset ] = 0 ;
4573- }
4574- ImGuiInputTextFlags flags = 0 ;
4575- ImGuiInputTextCallback callback = null ;
4576- void * user_data = null ;
4577- byte ret = ImGuiNative . igInputText ( native_label , native_buf , buf_size , flags , callback , user_data ) ;
4578- return ret != 0 ;
4579- }
4580- public static bool InputText ( string label , string buf , uint buf_size , ImGuiInputTextFlags flags )
4581- {
4582- int label_byteCount = Encoding . UTF8 . GetByteCount ( label ) ;
4583- byte * native_label = stackalloc byte [ label_byteCount + 1 ] ;
4584- fixed ( char * label_ptr = label )
4585- {
4586- int native_label_offset = Encoding . UTF8 . GetBytes ( label_ptr , label . Length , native_label , label_byteCount ) ;
4587- native_label [ native_label_offset ] = 0 ;
4588- }
4589- int buf_byteCount = Encoding . UTF8 . GetByteCount ( buf ) ;
4590- byte * native_buf = stackalloc byte [ buf_byteCount + 1 ] ;
4591- fixed ( char * buf_ptr = buf )
4592- {
4593- int native_buf_offset = Encoding . UTF8 . GetBytes ( buf_ptr , buf . Length , native_buf , buf_byteCount ) ;
4594- native_buf [ native_buf_offset ] = 0 ;
4595- }
4596- ImGuiInputTextCallback callback = null ;
4597- void * user_data = null ;
4598- byte ret = ImGuiNative . igInputText ( native_label , native_buf , buf_size , flags , callback , user_data ) ;
4599- return ret != 0 ;
4600- }
4601- public static bool InputText ( string label , string buf , uint buf_size , ImGuiInputTextFlags flags , ImGuiInputTextCallback callback )
4602- {
4603- int label_byteCount = Encoding . UTF8 . GetByteCount ( label ) ;
4604- byte * native_label = stackalloc byte [ label_byteCount + 1 ] ;
4605- fixed ( char * label_ptr = label )
4606- {
4607- int native_label_offset = Encoding . UTF8 . GetBytes ( label_ptr , label . Length , native_label , label_byteCount ) ;
4608- native_label [ native_label_offset ] = 0 ;
4609- }
4610- int buf_byteCount = Encoding . UTF8 . GetByteCount ( buf ) ;
4611- byte * native_buf = stackalloc byte [ buf_byteCount + 1 ] ;
4612- fixed ( char * buf_ptr = buf )
4613- {
4614- int native_buf_offset = Encoding . UTF8 . GetBytes ( buf_ptr , buf . Length , native_buf , buf_byteCount ) ;
4615- native_buf [ native_buf_offset ] = 0 ;
4616- }
4617- void * user_data = null ;
4618- byte ret = ImGuiNative . igInputText ( native_label , native_buf , buf_size , flags , callback , user_data ) ;
4619- return ret != 0 ;
4620- }
4621- public static bool InputText ( string label , string buf , uint buf_size , ImGuiInputTextFlags flags , ImGuiInputTextCallback callback , IntPtr user_data )
4622- {
4623- int label_byteCount = Encoding . UTF8 . GetByteCount ( label ) ;
4624- byte * native_label = stackalloc byte [ label_byteCount + 1 ] ;
4625- fixed ( char * label_ptr = label )
4626- {
4627- int native_label_offset = Encoding . UTF8 . GetBytes ( label_ptr , label . Length , native_label , label_byteCount ) ;
4628- native_label [ native_label_offset ] = 0 ;
4629- }
4630- int buf_byteCount = Encoding . UTF8 . GetByteCount ( buf ) ;
4631- byte * native_buf = stackalloc byte [ buf_byteCount + 1 ] ;
4632- fixed ( char * buf_ptr = buf )
4633- {
4634- int native_buf_offset = Encoding . UTF8 . GetBytes ( buf_ptr , buf . Length , native_buf , buf_byteCount ) ;
4635- native_buf [ native_buf_offset ] = 0 ;
4636- }
4637- void * native_user_data = ( void * ) user_data . ToPointer ( ) ;
4638- byte ret = ImGuiNative . igInputText ( native_label , native_buf , buf_size , flags , callback , native_user_data ) ;
4639- return ret != 0 ;
4640- }
46414558 public static bool InputInt3 ( string label , ref int v )
46424559 {
46434560 int label_byteCount = Encoding . UTF8 . GetByteCount ( label ) ;
0 commit comments