示例#1
0
void tpassword_box::handle_key_delete(SDLMod /*modifier*/, bool& handled) {
	pre_function();

	// Copy & paste from ttext_::handle_key_delete()
	DBG_GUI_E << LOG_SCOPE_HEADER << '\n';

	handled = true;
	if(get_selection_length() != 0) {
		delete_selection();
	} else if (get_selection_start() < get_text_length(text())) {
		delete_char(false);
	}

	post_function();
}
示例#2
0
void tpassword_box::delete_char(const bool before_cursor)
{
	pre_function();
	ttext_box::delete_char(before_cursor);
	post_function();
}
示例#3
0
void tpassword_box::insert_char(const utf8::string& unicode)
{
	pre_function();
	ttext_box::insert_char(unicode);
	post_function();
}
示例#4
0
void tpassword_box::paste_selection(const bool mouse)
{
	pre_function();
	ttext_box::paste_selection(mouse);
	post_function();
}
示例#5
0
void tpassword_box::insert_char(const Uint16 unicode) {
	pre_function();
	ttext_box::insert_char(unicode);
	post_function();
}