text_input_set_result_callback

Function text_input_set_result_callback 

Source
pub unsafe extern "C" fn text_input_set_result_callback(
    text_input: *mut TextInput,
    callback: TextInputCallback,
    callback_context: *mut c_void,
    text_buffer: *mut c_char,
    text_buffer_size: usize,
    clear_default_text: bool,
)
Expand description

Set text input result callback

ยงArguments

  • text_input - TextInput instance
  • callback - callback fn
  • callback_context - callback context
  • text_buffer - pointer to YOUR text buffer, that we going to modify
  • text_buffer_size - YOUR text buffer size in bytes. Max string length will be text_buffer_size-1.
  • clear_default_text - clear text from text_buffer on first OK event