use Adjustment;
use Buildable;
use CellEditable;
use DeleteType;
use Editable;
use EntryBuffer;
use EntryCompletion;
use EntryIconPosition;
use ImageType;
use InputHints;
use InputPurpose;
use MovementStep;
use ShadowType;
use TargetList;
use Widget;
use ffi;
use gdk;
use gdk_ffi;
use gdk_pixbuf;
use gio;
use glib;
use glib::GString;
use glib::StaticType;
use glib::Value;
use glib::object::Cast;
use glib::object::IsA;
use glib::object::ObjectExt;
use glib::signal::SignalHandlerId;
use glib::signal::connect_raw;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use libc;
use pango;
use std::boxed::Box as Box_;
use std::fmt;
use std::mem;
use std::mem::transmute;
glib_wrapper! {
pub struct Entry(Object<ffi::GtkEntry, ffi::GtkEntryClass, EntryClass>) @extends Widget, @implements Buildable, CellEditable, Editable;
match fn {
get_type => || ffi::gtk_entry_get_type(),
}
}
impl Entry {
pub fn new() -> Entry {
assert_initialized_main_thread!();
unsafe {
Widget::from_glib_none(ffi::gtk_entry_new()).unsafe_cast()
}
}
pub fn new_with_buffer<P: IsA<EntryBuffer>>(buffer: &P) -> Entry {
skip_assert_initialized!();
unsafe {
Widget::from_glib_none(ffi::gtk_entry_new_with_buffer(buffer.as_ref().to_glib_none().0)).unsafe_cast()
}
}
}
impl Default for Entry {
fn default() -> Self {
Self::new()
}
}
pub const NONE_ENTRY: Option<&Entry> = None;
pub trait EntryExt: 'static {
fn get_activates_default(&self) -> bool;
fn get_alignment(&self) -> f32;
fn get_attributes(&self) -> Option<pango::AttrList>;
fn get_buffer(&self) -> EntryBuffer;
fn get_completion(&self) -> Option<EntryCompletion>;
fn get_current_icon_drag_source(&self) -> i32;
fn get_cursor_hadjustment(&self) -> Option<Adjustment>;
fn get_has_frame(&self) -> bool;
fn get_icon_activatable(&self, icon_pos: EntryIconPosition) -> bool;
fn get_icon_area(&self, icon_pos: EntryIconPosition) -> gdk::Rectangle;
fn get_icon_at_pos(&self, x: i32, y: i32) -> i32;
fn get_icon_gicon(&self, icon_pos: EntryIconPosition) -> Option<gio::Icon>;
fn get_icon_name(&self, icon_pos: EntryIconPosition) -> Option<GString>;
fn get_icon_pixbuf(&self, icon_pos: EntryIconPosition) -> Option<gdk_pixbuf::Pixbuf>;
fn get_icon_sensitive(&self, icon_pos: EntryIconPosition) -> bool;
fn get_icon_storage_type(&self, icon_pos: EntryIconPosition) -> ImageType;
fn get_icon_tooltip_markup(&self, icon_pos: EntryIconPosition) -> Option<GString>;
fn get_icon_tooltip_text(&self, icon_pos: EntryIconPosition) -> Option<GString>;
fn get_input_hints(&self) -> InputHints;
fn get_input_purpose(&self) -> InputPurpose;
fn get_invisible_char(&self) -> Option<char>;
fn get_layout(&self) -> Option<pango::Layout>;
fn get_layout_offsets(&self) -> (i32, i32);
fn get_max_length(&self) -> i32;
fn get_max_width_chars(&self) -> i32;
fn get_overwrite_mode(&self) -> bool;
fn get_placeholder_text(&self) -> Option<GString>;
fn get_progress_fraction(&self) -> f64;
fn get_progress_pulse_step(&self) -> f64;
fn get_tabs(&self) -> Option<pango::TabArray>;
fn get_text(&self) -> Option<GString>;
fn get_text_area(&self) -> gdk::Rectangle;
fn get_text_length(&self) -> u16;
fn get_visibility(&self) -> bool;
fn get_width_chars(&self) -> i32;
#[cfg(any(feature = "v3_16", feature = "dox"))]
fn grab_focus_without_selecting(&self);
fn im_context_filter_keypress(&self, event: &gdk::EventKey) -> bool;
fn layout_index_to_text_index(&self, layout_index: i32) -> i32;
fn progress_pulse(&self);
fn reset_im_context(&self);
fn set_activates_default(&self, setting: bool);
fn set_alignment(&self, xalign: f32);
fn set_attributes(&self, attrs: &pango::AttrList);
fn set_buffer<P: IsA<EntryBuffer>>(&self, buffer: &P);
fn set_completion<'a, P: IsA<EntryCompletion> + 'a, Q: Into<Option<&'a P>>>(&self, completion: Q);
fn set_cursor_hadjustment<'a, P: IsA<Adjustment> + 'a, Q: Into<Option<&'a P>>>(&self, adjustment: Q);
fn set_has_frame(&self, setting: bool);
fn set_icon_activatable(&self, icon_pos: EntryIconPosition, activatable: bool);
fn set_icon_drag_source(&self, icon_pos: EntryIconPosition, target_list: &TargetList, actions: gdk::DragAction);
fn set_icon_from_gicon<'a, P: IsA<gio::Icon> + 'a, Q: Into<Option<&'a P>>>(&self, icon_pos: EntryIconPosition, icon: Q);
fn set_icon_from_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, icon_name: P);
fn set_icon_from_pixbuf<'a, P: Into<Option<&'a gdk_pixbuf::Pixbuf>>>(&self, icon_pos: EntryIconPosition, pixbuf: P);
fn set_icon_sensitive(&self, icon_pos: EntryIconPosition, sensitive: bool);
fn set_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, tooltip: P);
fn set_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, tooltip: P);
fn set_input_hints(&self, hints: InputHints);
fn set_input_purpose(&self, purpose: InputPurpose);
fn set_invisible_char<P: Into<Option<char>>>(&self, ch: P);
fn set_max_length(&self, max: i32);
fn set_max_width_chars(&self, n_chars: i32);
fn set_overwrite_mode(&self, overwrite: bool);
fn set_placeholder_text<'a, P: Into<Option<&'a str>>>(&self, text: P);
fn set_progress_fraction(&self, fraction: f64);
fn set_progress_pulse_step(&self, fraction: f64);
fn set_tabs(&self, tabs: &mut pango::TabArray);
fn set_text(&self, text: &str);
fn set_visibility(&self, visible: bool);
fn set_width_chars(&self, n_chars: i32);
fn text_index_to_layout_index(&self, text_index: i32) -> i32;
fn unset_invisible_char(&self);
fn get_property_caps_lock_warning(&self) -> bool;
fn set_property_caps_lock_warning(&self, caps_lock_warning: bool);
fn get_property_cursor_position(&self) -> i32;
fn get_property_enable_emoji_completion(&self) -> bool;
fn set_property_enable_emoji_completion(&self, enable_emoji_completion: bool);
fn get_property_im_module(&self) -> Option<GString>;
fn set_property_im_module<'a, P: Into<Option<&'a str>>>(&self, im_module: P);
fn get_property_invisible_char_set(&self) -> bool;
fn set_property_invisible_char_set(&self, invisible_char_set: bool);
fn get_property_populate_all(&self) -> bool;
fn set_property_populate_all(&self, populate_all: bool);
fn get_property_primary_icon_activatable(&self) -> bool;
fn set_property_primary_icon_activatable(&self, primary_icon_activatable: bool);
fn get_property_primary_icon_gicon(&self) -> Option<gio::Icon>;
fn set_property_primary_icon_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, primary_icon_gicon: Option<&P>);
fn get_property_primary_icon_name(&self) -> Option<GString>;
fn set_property_primary_icon_name<'a, P: Into<Option<&'a str>>>(&self, primary_icon_name: P);
fn get_property_primary_icon_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf>;
fn set_property_primary_icon_pixbuf(&self, primary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>);
fn get_property_primary_icon_sensitive(&self) -> bool;
fn set_property_primary_icon_sensitive(&self, primary_icon_sensitive: bool);
fn get_property_primary_icon_storage_type(&self) -> ImageType;
fn get_property_primary_icon_tooltip_markup(&self) -> Option<GString>;
fn set_property_primary_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, primary_icon_tooltip_markup: P);
fn get_property_primary_icon_tooltip_text(&self) -> Option<GString>;
fn set_property_primary_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, primary_icon_tooltip_text: P);
fn get_property_scroll_offset(&self) -> i32;
fn get_property_secondary_icon_activatable(&self) -> bool;
fn set_property_secondary_icon_activatable(&self, secondary_icon_activatable: bool);
fn get_property_secondary_icon_gicon(&self) -> Option<gio::Icon>;
fn set_property_secondary_icon_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, secondary_icon_gicon: Option<&P>);
fn get_property_secondary_icon_name(&self) -> Option<GString>;
fn set_property_secondary_icon_name<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_name: P);
fn get_property_secondary_icon_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf>;
fn set_property_secondary_icon_pixbuf(&self, secondary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>);
fn get_property_secondary_icon_sensitive(&self) -> bool;
fn set_property_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool);
fn get_property_secondary_icon_storage_type(&self) -> ImageType;
fn get_property_secondary_icon_tooltip_markup(&self) -> Option<GString>;
fn set_property_secondary_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_tooltip_markup: P);
fn get_property_secondary_icon_tooltip_text(&self) -> Option<GString>;
fn set_property_secondary_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_tooltip_text: P);
fn get_property_selection_bound(&self) -> i32;
#[cfg_attr(feature = "v3_20", deprecated)]
fn get_property_shadow_type(&self) -> ShadowType;
#[cfg_attr(feature = "v3_20", deprecated)]
fn set_property_shadow_type(&self, shadow_type: ShadowType);
fn get_property_show_emoji_icon(&self) -> bool;
fn set_property_show_emoji_icon(&self, show_emoji_icon: bool);
fn get_property_truncate_multiline(&self) -> bool;
fn set_property_truncate_multiline(&self, truncate_multiline: bool);
fn get_property_xalign(&self) -> f32;
fn set_property_xalign(&self, xalign: f32);
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_activate(&self);
fn connect_backspace<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_backspace(&self);
fn connect_copy_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_copy_clipboard(&self);
fn connect_cut_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_cut_clipboard(&self);
fn connect_delete_from_cursor<F: Fn(&Self, DeleteType, i32) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_delete_from_cursor(&self, type_: DeleteType, count: i32);
fn connect_icon_press<F: Fn(&Self, EntryIconPosition, &gdk::EventButton) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_icon_release<F: Fn(&Self, EntryIconPosition, &gdk::EventButton) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_insert_at_cursor<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_insert_at_cursor(&self, string: &str);
#[cfg(any(feature = "v3_22_27", feature = "dox"))]
fn connect_insert_emoji<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg(any(feature = "v3_22_27", feature = "dox"))]
fn emit_insert_emoji(&self);
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool);
fn connect_paste_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_paste_clipboard(&self);
fn connect_populate_popup<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_preedit_changed<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_preedit_changed(&self, preedit: &str);
fn connect_toggle_overwrite<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_toggle_overwrite(&self);
fn connect_property_activates_default_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_buffer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_caps_lock_warning_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_completion_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_cursor_position_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_enable_emoji_completion_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_has_frame_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_input_hints_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_input_purpose_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_invisible_char_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_invisible_char_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_max_length_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_overwrite_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_populate_all_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_sensitive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_primary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_progress_fraction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_progress_pulse_step_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_scroll_offset_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_sensitive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_secondary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_selection_bound_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[cfg_attr(feature = "v3_20", deprecated)]
fn connect_property_shadow_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_show_emoji_icon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_text_length_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_truncate_multiline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_visibility_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_xalign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<Entry>> EntryExt for O {
fn get_activates_default(&self) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_activates_default(self.as_ref().to_glib_none().0))
}
}
fn get_alignment(&self) -> f32 {
unsafe {
ffi::gtk_entry_get_alignment(self.as_ref().to_glib_none().0)
}
}
fn get_attributes(&self) -> Option<pango::AttrList> {
unsafe {
from_glib_none(ffi::gtk_entry_get_attributes(self.as_ref().to_glib_none().0))
}
}
fn get_buffer(&self) -> EntryBuffer {
unsafe {
from_glib_none(ffi::gtk_entry_get_buffer(self.as_ref().to_glib_none().0))
}
}
fn get_completion(&self) -> Option<EntryCompletion> {
unsafe {
from_glib_none(ffi::gtk_entry_get_completion(self.as_ref().to_glib_none().0))
}
}
fn get_current_icon_drag_source(&self) -> i32 {
unsafe {
ffi::gtk_entry_get_current_icon_drag_source(self.as_ref().to_glib_none().0)
}
}
fn get_cursor_hadjustment(&self) -> Option<Adjustment> {
unsafe {
from_glib_none(ffi::gtk_entry_get_cursor_hadjustment(self.as_ref().to_glib_none().0))
}
}
fn get_has_frame(&self) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_has_frame(self.as_ref().to_glib_none().0))
}
}
fn get_icon_activatable(&self, icon_pos: EntryIconPosition) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_icon_activatable(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_area(&self, icon_pos: EntryIconPosition) -> gdk::Rectangle {
unsafe {
let mut icon_area = gdk::Rectangle::uninitialized();
ffi::gtk_entry_get_icon_area(self.as_ref().to_glib_none().0, icon_pos.to_glib(), icon_area.to_glib_none_mut().0);
icon_area
}
}
fn get_icon_at_pos(&self, x: i32, y: i32) -> i32 {
unsafe {
ffi::gtk_entry_get_icon_at_pos(self.as_ref().to_glib_none().0, x, y)
}
}
fn get_icon_gicon(&self, icon_pos: EntryIconPosition) -> Option<gio::Icon> {
unsafe {
from_glib_none(ffi::gtk_entry_get_icon_gicon(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_name(&self, icon_pos: EntryIconPosition) -> Option<GString> {
unsafe {
from_glib_none(ffi::gtk_entry_get_icon_name(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_pixbuf(&self, icon_pos: EntryIconPosition) -> Option<gdk_pixbuf::Pixbuf> {
unsafe {
from_glib_none(ffi::gtk_entry_get_icon_pixbuf(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_sensitive(&self, icon_pos: EntryIconPosition) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_icon_sensitive(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_storage_type(&self, icon_pos: EntryIconPosition) -> ImageType {
unsafe {
from_glib(ffi::gtk_entry_get_icon_storage_type(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_tooltip_markup(&self, icon_pos: EntryIconPosition) -> Option<GString> {
unsafe {
from_glib_full(ffi::gtk_entry_get_icon_tooltip_markup(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_icon_tooltip_text(&self, icon_pos: EntryIconPosition) -> Option<GString> {
unsafe {
from_glib_full(ffi::gtk_entry_get_icon_tooltip_text(self.as_ref().to_glib_none().0, icon_pos.to_glib()))
}
}
fn get_input_hints(&self) -> InputHints {
unsafe {
from_glib(ffi::gtk_entry_get_input_hints(self.as_ref().to_glib_none().0))
}
}
fn get_input_purpose(&self) -> InputPurpose {
unsafe {
from_glib(ffi::gtk_entry_get_input_purpose(self.as_ref().to_glib_none().0))
}
}
fn get_invisible_char(&self) -> Option<char> {
unsafe {
from_glib(ffi::gtk_entry_get_invisible_char(self.as_ref().to_glib_none().0))
}
}
fn get_layout(&self) -> Option<pango::Layout> {
unsafe {
from_glib_none(ffi::gtk_entry_get_layout(self.as_ref().to_glib_none().0))
}
}
fn get_layout_offsets(&self) -> (i32, i32) {
unsafe {
let mut x = mem::uninitialized();
let mut y = mem::uninitialized();
ffi::gtk_entry_get_layout_offsets(self.as_ref().to_glib_none().0, &mut x, &mut y);
(x, y)
}
}
fn get_max_length(&self) -> i32 {
unsafe {
ffi::gtk_entry_get_max_length(self.as_ref().to_glib_none().0)
}
}
fn get_max_width_chars(&self) -> i32 {
unsafe {
ffi::gtk_entry_get_max_width_chars(self.as_ref().to_glib_none().0)
}
}
fn get_overwrite_mode(&self) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_overwrite_mode(self.as_ref().to_glib_none().0))
}
}
fn get_placeholder_text(&self) -> Option<GString> {
unsafe {
from_glib_none(ffi::gtk_entry_get_placeholder_text(self.as_ref().to_glib_none().0))
}
}
fn get_progress_fraction(&self) -> f64 {
unsafe {
ffi::gtk_entry_get_progress_fraction(self.as_ref().to_glib_none().0)
}
}
fn get_progress_pulse_step(&self) -> f64 {
unsafe {
ffi::gtk_entry_get_progress_pulse_step(self.as_ref().to_glib_none().0)
}
}
fn get_tabs(&self) -> Option<pango::TabArray> {
unsafe {
from_glib_none(ffi::gtk_entry_get_tabs(self.as_ref().to_glib_none().0))
}
}
fn get_text(&self) -> Option<GString> {
unsafe {
from_glib_none(ffi::gtk_entry_get_text(self.as_ref().to_glib_none().0))
}
}
fn get_text_area(&self) -> gdk::Rectangle {
unsafe {
let mut text_area = gdk::Rectangle::uninitialized();
ffi::gtk_entry_get_text_area(self.as_ref().to_glib_none().0, text_area.to_glib_none_mut().0);
text_area
}
}
fn get_text_length(&self) -> u16 {
unsafe {
ffi::gtk_entry_get_text_length(self.as_ref().to_glib_none().0)
}
}
fn get_visibility(&self) -> bool {
unsafe {
from_glib(ffi::gtk_entry_get_visibility(self.as_ref().to_glib_none().0))
}
}
fn get_width_chars(&self) -> i32 {
unsafe {
ffi::gtk_entry_get_width_chars(self.as_ref().to_glib_none().0)
}
}
#[cfg(any(feature = "v3_16", feature = "dox"))]
fn grab_focus_without_selecting(&self) {
unsafe {
ffi::gtk_entry_grab_focus_without_selecting(self.as_ref().to_glib_none().0);
}
}
fn im_context_filter_keypress(&self, event: &gdk::EventKey) -> bool {
unsafe {
from_glib(ffi::gtk_entry_im_context_filter_keypress(self.as_ref().to_glib_none().0, mut_override(event.to_glib_none().0)))
}
}
fn layout_index_to_text_index(&self, layout_index: i32) -> i32 {
unsafe {
ffi::gtk_entry_layout_index_to_text_index(self.as_ref().to_glib_none().0, layout_index)
}
}
fn progress_pulse(&self) {
unsafe {
ffi::gtk_entry_progress_pulse(self.as_ref().to_glib_none().0);
}
}
fn reset_im_context(&self) {
unsafe {
ffi::gtk_entry_reset_im_context(self.as_ref().to_glib_none().0);
}
}
fn set_activates_default(&self, setting: bool) {
unsafe {
ffi::gtk_entry_set_activates_default(self.as_ref().to_glib_none().0, setting.to_glib());
}
}
fn set_alignment(&self, xalign: f32) {
unsafe {
ffi::gtk_entry_set_alignment(self.as_ref().to_glib_none().0, xalign);
}
}
fn set_attributes(&self, attrs: &pango::AttrList) {
unsafe {
ffi::gtk_entry_set_attributes(self.as_ref().to_glib_none().0, attrs.to_glib_none().0);
}
}
fn set_buffer<P: IsA<EntryBuffer>>(&self, buffer: &P) {
unsafe {
ffi::gtk_entry_set_buffer(self.as_ref().to_glib_none().0, buffer.as_ref().to_glib_none().0);
}
}
fn set_completion<'a, P: IsA<EntryCompletion> + 'a, Q: Into<Option<&'a P>>>(&self, completion: Q) {
let completion = completion.into();
unsafe {
ffi::gtk_entry_set_completion(self.as_ref().to_glib_none().0, completion.map(|p| p.as_ref()).to_glib_none().0);
}
}
fn set_cursor_hadjustment<'a, P: IsA<Adjustment> + 'a, Q: Into<Option<&'a P>>>(&self, adjustment: Q) {
let adjustment = adjustment.into();
unsafe {
ffi::gtk_entry_set_cursor_hadjustment(self.as_ref().to_glib_none().0, adjustment.map(|p| p.as_ref()).to_glib_none().0);
}
}
fn set_has_frame(&self, setting: bool) {
unsafe {
ffi::gtk_entry_set_has_frame(self.as_ref().to_glib_none().0, setting.to_glib());
}
}
fn set_icon_activatable(&self, icon_pos: EntryIconPosition, activatable: bool) {
unsafe {
ffi::gtk_entry_set_icon_activatable(self.as_ref().to_glib_none().0, icon_pos.to_glib(), activatable.to_glib());
}
}
fn set_icon_drag_source(&self, icon_pos: EntryIconPosition, target_list: &TargetList, actions: gdk::DragAction) {
unsafe {
ffi::gtk_entry_set_icon_drag_source(self.as_ref().to_glib_none().0, icon_pos.to_glib(), target_list.to_glib_none().0, actions.to_glib());
}
}
fn set_icon_from_gicon<'a, P: IsA<gio::Icon> + 'a, Q: Into<Option<&'a P>>>(&self, icon_pos: EntryIconPosition, icon: Q) {
let icon = icon.into();
unsafe {
ffi::gtk_entry_set_icon_from_gicon(self.as_ref().to_glib_none().0, icon_pos.to_glib(), icon.map(|p| p.as_ref()).to_glib_none().0);
}
}
fn set_icon_from_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, icon_name: P) {
let icon_name = icon_name.into();
unsafe {
ffi::gtk_entry_set_icon_from_icon_name(self.as_ref().to_glib_none().0, icon_pos.to_glib(), icon_name.to_glib_none().0);
}
}
fn set_icon_from_pixbuf<'a, P: Into<Option<&'a gdk_pixbuf::Pixbuf>>>(&self, icon_pos: EntryIconPosition, pixbuf: P) {
let pixbuf = pixbuf.into();
unsafe {
ffi::gtk_entry_set_icon_from_pixbuf(self.as_ref().to_glib_none().0, icon_pos.to_glib(), pixbuf.to_glib_none().0);
}
}
fn set_icon_sensitive(&self, icon_pos: EntryIconPosition, sensitive: bool) {
unsafe {
ffi::gtk_entry_set_icon_sensitive(self.as_ref().to_glib_none().0, icon_pos.to_glib(), sensitive.to_glib());
}
}
fn set_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, tooltip: P) {
let tooltip = tooltip.into();
unsafe {
ffi::gtk_entry_set_icon_tooltip_markup(self.as_ref().to_glib_none().0, icon_pos.to_glib(), tooltip.to_glib_none().0);
}
}
fn set_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, icon_pos: EntryIconPosition, tooltip: P) {
let tooltip = tooltip.into();
unsafe {
ffi::gtk_entry_set_icon_tooltip_text(self.as_ref().to_glib_none().0, icon_pos.to_glib(), tooltip.to_glib_none().0);
}
}
fn set_input_hints(&self, hints: InputHints) {
unsafe {
ffi::gtk_entry_set_input_hints(self.as_ref().to_glib_none().0, hints.to_glib());
}
}
fn set_input_purpose(&self, purpose: InputPurpose) {
unsafe {
ffi::gtk_entry_set_input_purpose(self.as_ref().to_glib_none().0, purpose.to_glib());
}
}
fn set_invisible_char<P: Into<Option<char>>>(&self, ch: P) {
unsafe {
ffi::gtk_entry_set_invisible_char(self.as_ref().to_glib_none().0, ch.into().to_glib());
}
}
fn set_max_length(&self, max: i32) {
unsafe {
ffi::gtk_entry_set_max_length(self.as_ref().to_glib_none().0, max);
}
}
fn set_max_width_chars(&self, n_chars: i32) {
unsafe {
ffi::gtk_entry_set_max_width_chars(self.as_ref().to_glib_none().0, n_chars);
}
}
fn set_overwrite_mode(&self, overwrite: bool) {
unsafe {
ffi::gtk_entry_set_overwrite_mode(self.as_ref().to_glib_none().0, overwrite.to_glib());
}
}
fn set_placeholder_text<'a, P: Into<Option<&'a str>>>(&self, text: P) {
let text = text.into();
unsafe {
ffi::gtk_entry_set_placeholder_text(self.as_ref().to_glib_none().0, text.to_glib_none().0);
}
}
fn set_progress_fraction(&self, fraction: f64) {
unsafe {
ffi::gtk_entry_set_progress_fraction(self.as_ref().to_glib_none().0, fraction);
}
}
fn set_progress_pulse_step(&self, fraction: f64) {
unsafe {
ffi::gtk_entry_set_progress_pulse_step(self.as_ref().to_glib_none().0, fraction);
}
}
fn set_tabs(&self, tabs: &mut pango::TabArray) {
unsafe {
ffi::gtk_entry_set_tabs(self.as_ref().to_glib_none().0, tabs.to_glib_none_mut().0);
}
}
fn set_text(&self, text: &str) {
unsafe {
ffi::gtk_entry_set_text(self.as_ref().to_glib_none().0, text.to_glib_none().0);
}
}
fn set_visibility(&self, visible: bool) {
unsafe {
ffi::gtk_entry_set_visibility(self.as_ref().to_glib_none().0, visible.to_glib());
}
}
fn set_width_chars(&self, n_chars: i32) {
unsafe {
ffi::gtk_entry_set_width_chars(self.as_ref().to_glib_none().0, n_chars);
}
}
fn text_index_to_layout_index(&self, text_index: i32) -> i32 {
unsafe {
ffi::gtk_entry_text_index_to_layout_index(self.as_ref().to_glib_none().0, text_index)
}
}
fn unset_invisible_char(&self) {
unsafe {
ffi::gtk_entry_unset_invisible_char(self.as_ref().to_glib_none().0);
}
}
fn get_property_caps_lock_warning(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"caps-lock-warning\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_caps_lock_warning(&self, caps_lock_warning: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"caps-lock-warning\0".as_ptr() as *const _, Value::from(&caps_lock_warning).to_glib_none().0);
}
}
fn get_property_cursor_position(&self) -> i32 {
unsafe {
let mut value = Value::from_type(<i32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"cursor-position\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_enable_emoji_completion(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"enable-emoji-completion\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_enable_emoji_completion(&self, enable_emoji_completion: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"enable-emoji-completion\0".as_ptr() as *const _, Value::from(&enable_emoji_completion).to_glib_none().0);
}
}
fn get_property_im_module(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"im-module\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_im_module<'a, P: Into<Option<&'a str>>>(&self, im_module: P) {
let im_module = im_module.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"im-module\0".as_ptr() as *const _, Value::from(im_module).to_glib_none().0);
}
}
fn get_property_invisible_char_set(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"invisible-char-set\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_invisible_char_set(&self, invisible_char_set: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"invisible-char-set\0".as_ptr() as *const _, Value::from(&invisible_char_set).to_glib_none().0);
}
}
fn get_property_populate_all(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"populate-all\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_populate_all(&self, populate_all: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"populate-all\0".as_ptr() as *const _, Value::from(&populate_all).to_glib_none().0);
}
}
fn get_property_primary_icon_activatable(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-activatable\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_primary_icon_activatable(&self, primary_icon_activatable: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-activatable\0".as_ptr() as *const _, Value::from(&primary_icon_activatable).to_glib_none().0);
}
}
fn get_property_primary_icon_gicon(&self) -> Option<gio::Icon> {
unsafe {
let mut value = Value::from_type(<gio::Icon as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-gicon\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_primary_icon_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, primary_icon_gicon: Option<&P>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-gicon\0".as_ptr() as *const _, Value::from(primary_icon_gicon).to_glib_none().0);
}
}
fn get_property_primary_icon_name(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-name\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_primary_icon_name<'a, P: Into<Option<&'a str>>>(&self, primary_icon_name: P) {
let primary_icon_name = primary_icon_name.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-name\0".as_ptr() as *const _, Value::from(primary_icon_name).to_glib_none().0);
}
}
fn get_property_primary_icon_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf> {
unsafe {
let mut value = Value::from_type(<gdk_pixbuf::Pixbuf as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-pixbuf\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_primary_icon_pixbuf(&self, primary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-pixbuf\0".as_ptr() as *const _, Value::from(primary_icon_pixbuf).to_glib_none().0);
}
}
fn get_property_primary_icon_sensitive(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-sensitive\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_primary_icon_sensitive(&self, primary_icon_sensitive: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-sensitive\0".as_ptr() as *const _, Value::from(&primary_icon_sensitive).to_glib_none().0);
}
}
fn get_property_primary_icon_storage_type(&self) -> ImageType {
unsafe {
let mut value = Value::from_type(<ImageType as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-storage-type\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_primary_icon_tooltip_markup(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-tooltip-markup\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_primary_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, primary_icon_tooltip_markup: P) {
let primary_icon_tooltip_markup = primary_icon_tooltip_markup.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-tooltip-markup\0".as_ptr() as *const _, Value::from(primary_icon_tooltip_markup).to_glib_none().0);
}
}
fn get_property_primary_icon_tooltip_text(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-tooltip-text\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_primary_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, primary_icon_tooltip_text: P) {
let primary_icon_tooltip_text = primary_icon_tooltip_text.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"primary-icon-tooltip-text\0".as_ptr() as *const _, Value::from(primary_icon_tooltip_text).to_glib_none().0);
}
}
fn get_property_scroll_offset(&self) -> i32 {
unsafe {
let mut value = Value::from_type(<i32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"scroll-offset\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_secondary_icon_activatable(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-activatable\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_secondary_icon_activatable(&self, secondary_icon_activatable: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-activatable\0".as_ptr() as *const _, Value::from(&secondary_icon_activatable).to_glib_none().0);
}
}
fn get_property_secondary_icon_gicon(&self) -> Option<gio::Icon> {
unsafe {
let mut value = Value::from_type(<gio::Icon as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-gicon\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_secondary_icon_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, secondary_icon_gicon: Option<&P>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-gicon\0".as_ptr() as *const _, Value::from(secondary_icon_gicon).to_glib_none().0);
}
}
fn get_property_secondary_icon_name(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-name\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_secondary_icon_name<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_name: P) {
let secondary_icon_name = secondary_icon_name.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-name\0".as_ptr() as *const _, Value::from(secondary_icon_name).to_glib_none().0);
}
}
fn get_property_secondary_icon_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf> {
unsafe {
let mut value = Value::from_type(<gdk_pixbuf::Pixbuf as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-pixbuf\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_secondary_icon_pixbuf(&self, secondary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-pixbuf\0".as_ptr() as *const _, Value::from(secondary_icon_pixbuf).to_glib_none().0);
}
}
fn get_property_secondary_icon_sensitive(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-sensitive\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-sensitive\0".as_ptr() as *const _, Value::from(&secondary_icon_sensitive).to_glib_none().0);
}
}
fn get_property_secondary_icon_storage_type(&self) -> ImageType {
unsafe {
let mut value = Value::from_type(<ImageType as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-storage-type\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_secondary_icon_tooltip_markup(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-tooltip-markup\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_secondary_icon_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_tooltip_markup: P) {
let secondary_icon_tooltip_markup = secondary_icon_tooltip_markup.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-tooltip-markup\0".as_ptr() as *const _, Value::from(secondary_icon_tooltip_markup).to_glib_none().0);
}
}
fn get_property_secondary_icon_tooltip_text(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-tooltip-text\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_secondary_icon_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, secondary_icon_tooltip_text: P) {
let secondary_icon_tooltip_text = secondary_icon_tooltip_text.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"secondary-icon-tooltip-text\0".as_ptr() as *const _, Value::from(secondary_icon_tooltip_text).to_glib_none().0);
}
}
fn get_property_selection_bound(&self) -> i32 {
unsafe {
let mut value = Value::from_type(<i32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"selection-bound\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_shadow_type(&self) -> ShadowType {
unsafe {
let mut value = Value::from_type(<ShadowType as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"shadow-type\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_shadow_type(&self, shadow_type: ShadowType) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"shadow-type\0".as_ptr() as *const _, Value::from(&shadow_type).to_glib_none().0);
}
}
fn get_property_show_emoji_icon(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"show-emoji-icon\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_show_emoji_icon(&self, show_emoji_icon: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"show-emoji-icon\0".as_ptr() as *const _, Value::from(&show_emoji_icon).to_glib_none().0);
}
}
fn get_property_truncate_multiline(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"truncate-multiline\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_truncate_multiline(&self, truncate_multiline: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"truncate-multiline\0".as_ptr() as *const _, Value::from(&truncate_multiline).to_glib_none().0);
}
}
fn get_property_xalign(&self) -> f32 {
unsafe {
let mut value = Value::from_type(<f32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"xalign\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_xalign(&self, xalign: f32) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"xalign\0".as_ptr() as *const _, Value::from(&xalign).to_glib_none().0);
}
}
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"activate\0".as_ptr() as *const _,
Some(transmute(activate_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_activate(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("activate", &[]).unwrap() };
}
fn connect_backspace<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"backspace\0".as_ptr() as *const _,
Some(transmute(backspace_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_backspace(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("backspace", &[]).unwrap() };
}
fn connect_copy_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"copy-clipboard\0".as_ptr() as *const _,
Some(transmute(copy_clipboard_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_copy_clipboard(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("copy-clipboard", &[]).unwrap() };
}
fn connect_cut_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"cut-clipboard\0".as_ptr() as *const _,
Some(transmute(cut_clipboard_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_cut_clipboard(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("cut-clipboard", &[]).unwrap() };
}
fn connect_delete_from_cursor<F: Fn(&Self, DeleteType, i32) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"delete-from-cursor\0".as_ptr() as *const _,
Some(transmute(delete_from_cursor_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_delete_from_cursor(&self, type_: DeleteType, count: i32) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("delete-from-cursor", &[&type_, &count]).unwrap() };
}
fn connect_icon_press<F: Fn(&Self, EntryIconPosition, &gdk::EventButton) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"icon-press\0".as_ptr() as *const _,
Some(transmute(icon_press_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_icon_release<F: Fn(&Self, EntryIconPosition, &gdk::EventButton) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"icon-release\0".as_ptr() as *const _,
Some(transmute(icon_release_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_insert_at_cursor<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"insert-at-cursor\0".as_ptr() as *const _,
Some(transmute(insert_at_cursor_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_insert_at_cursor(&self, string: &str) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("insert-at-cursor", &[&string]).unwrap() };
}
#[cfg(any(feature = "v3_22_27", feature = "dox"))]
fn connect_insert_emoji<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"insert-emoji\0".as_ptr() as *const _,
Some(transmute(insert_emoji_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
#[cfg(any(feature = "v3_22_27", feature = "dox"))]
fn emit_insert_emoji(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("insert-emoji", &[]).unwrap() };
}
fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"move-cursor\0".as_ptr() as *const _,
Some(transmute(move_cursor_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("move-cursor", &[&step, &count, &extend_selection]).unwrap() };
}
fn connect_paste_clipboard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"paste-clipboard\0".as_ptr() as *const _,
Some(transmute(paste_clipboard_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_paste_clipboard(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("paste-clipboard", &[]).unwrap() };
}
fn connect_populate_popup<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"populate-popup\0".as_ptr() as *const _,
Some(transmute(populate_popup_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_preedit_changed<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"preedit-changed\0".as_ptr() as *const _,
Some(transmute(preedit_changed_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_preedit_changed(&self, preedit: &str) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("preedit-changed", &[&preedit]).unwrap() };
}
fn connect_toggle_overwrite<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"toggle-overwrite\0".as_ptr() as *const _,
Some(transmute(toggle_overwrite_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_toggle_overwrite(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("toggle-overwrite", &[]).unwrap() };
}
fn connect_property_activates_default_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::activates-default\0".as_ptr() as *const _,
Some(transmute(notify_activates_default_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_attributes_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::attributes\0".as_ptr() as *const _,
Some(transmute(notify_attributes_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_buffer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::buffer\0".as_ptr() as *const _,
Some(transmute(notify_buffer_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_caps_lock_warning_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::caps-lock-warning\0".as_ptr() as *const _,
Some(transmute(notify_caps_lock_warning_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_completion_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::completion\0".as_ptr() as *const _,
Some(transmute(notify_completion_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_cursor_position_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::cursor-position\0".as_ptr() as *const _,
Some(transmute(notify_cursor_position_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_editable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::editable\0".as_ptr() as *const _,
Some(transmute(notify_editable_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_enable_emoji_completion_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::enable-emoji-completion\0".as_ptr() as *const _,
Some(transmute(notify_enable_emoji_completion_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_has_frame_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::has-frame\0".as_ptr() as *const _,
Some(transmute(notify_has_frame_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_im_module_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::im-module\0".as_ptr() as *const _,
Some(transmute(notify_im_module_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_input_hints_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::input-hints\0".as_ptr() as *const _,
Some(transmute(notify_input_hints_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_input_purpose_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::input-purpose\0".as_ptr() as *const _,
Some(transmute(notify_input_purpose_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_invisible_char_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::invisible-char\0".as_ptr() as *const _,
Some(transmute(notify_invisible_char_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_invisible_char_set_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::invisible-char-set\0".as_ptr() as *const _,
Some(transmute(notify_invisible_char_set_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_max_length_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::max-length\0".as_ptr() as *const _,
Some(transmute(notify_max_length_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_max_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::max-width-chars\0".as_ptr() as *const _,
Some(transmute(notify_max_width_chars_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_overwrite_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::overwrite-mode\0".as_ptr() as *const _,
Some(transmute(notify_overwrite_mode_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_placeholder_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::placeholder-text\0".as_ptr() as *const _,
Some(transmute(notify_placeholder_text_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_populate_all_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::populate-all\0".as_ptr() as *const _,
Some(transmute(notify_populate_all_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-activatable\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_activatable_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-gicon\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_gicon_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-name\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_name_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-pixbuf\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_pixbuf_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_sensitive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-sensitive\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_sensitive_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-storage-type\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_storage_type_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-tooltip-markup\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_tooltip_markup_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_primary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::primary-icon-tooltip-text\0".as_ptr() as *const _,
Some(transmute(notify_primary_icon_tooltip_text_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_progress_fraction_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::progress-fraction\0".as_ptr() as *const _,
Some(transmute(notify_progress_fraction_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_progress_pulse_step_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::progress-pulse-step\0".as_ptr() as *const _,
Some(transmute(notify_progress_pulse_step_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_scroll_offset_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::scroll-offset\0".as_ptr() as *const _,
Some(transmute(notify_scroll_offset_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_activatable_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-activatable\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_activatable_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-gicon\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_gicon_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-name\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_name_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-pixbuf\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_pixbuf_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_sensitive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-sensitive\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_sensitive_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-storage-type\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_storage_type_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-tooltip-markup\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_tooltip_markup_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_secondary_icon_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::secondary-icon-tooltip-text\0".as_ptr() as *const _,
Some(transmute(notify_secondary_icon_tooltip_text_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_selection_bound_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::selection-bound\0".as_ptr() as *const _,
Some(transmute(notify_selection_bound_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_shadow_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::shadow-type\0".as_ptr() as *const _,
Some(transmute(notify_shadow_type_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_show_emoji_icon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::show-emoji-icon\0".as_ptr() as *const _,
Some(transmute(notify_show_emoji_icon_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::text\0".as_ptr() as *const _,
Some(transmute(notify_text_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_text_length_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::text-length\0".as_ptr() as *const _,
Some(transmute(notify_text_length_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_truncate_multiline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::truncate-multiline\0".as_ptr() as *const _,
Some(transmute(notify_truncate_multiline_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_visibility_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::visibility\0".as_ptr() as *const _,
Some(transmute(notify_visibility_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_width_chars_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::width-chars\0".as_ptr() as *const _,
Some(transmute(notify_width_chars_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_xalign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::xalign\0".as_ptr() as *const _,
Some(transmute(notify_xalign_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
}
unsafe extern "C" fn activate_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn backspace_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn copy_clipboard_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn cut_clipboard_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn delete_from_cursor_trampoline<P, F: Fn(&P, DeleteType, i32) + 'static>(this: *mut ffi::GtkEntry, type_: ffi::GtkDeleteType, count: libc::c_int, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), from_glib(type_), count)
}
unsafe extern "C" fn icon_press_trampoline<P, F: Fn(&P, EntryIconPosition, &gdk::EventButton) + 'static>(this: *mut ffi::GtkEntry, icon_pos: ffi::GtkEntryIconPosition, event: *mut gdk_ffi::GdkEventButton, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), from_glib(icon_pos), &from_glib_borrow(event))
}
unsafe extern "C" fn icon_release_trampoline<P, F: Fn(&P, EntryIconPosition, &gdk::EventButton) + 'static>(this: *mut ffi::GtkEntry, icon_pos: ffi::GtkEntryIconPosition, event: *mut gdk_ffi::GdkEventButton, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), from_glib(icon_pos), &from_glib_borrow(event))
}
unsafe extern "C" fn insert_at_cursor_trampoline<P, F: Fn(&P, &str) + 'static>(this: *mut ffi::GtkEntry, string: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(string))
}
#[cfg(any(feature = "v3_22_27", feature = "dox"))]
unsafe extern "C" fn insert_emoji_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn move_cursor_trampoline<P, F: Fn(&P, MovementStep, i32, bool) + 'static>(this: *mut ffi::GtkEntry, step: ffi::GtkMovementStep, count: libc::c_int, extend_selection: glib_ffi::gboolean, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), from_glib(step), count, from_glib(extend_selection))
}
unsafe extern "C" fn paste_clipboard_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn populate_popup_trampoline<P, F: Fn(&P, &Widget) + 'static>(this: *mut ffi::GtkEntry, widget: *mut ffi::GtkWidget, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(widget))
}
unsafe extern "C" fn preedit_changed_trampoline<P, F: Fn(&P, &str) + 'static>(this: *mut ffi::GtkEntry, preedit: *mut libc::c_char, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(preedit))
}
unsafe extern "C" fn toggle_overwrite_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_activates_default_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_attributes_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_buffer_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_caps_lock_warning_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_completion_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_cursor_position_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_editable_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_enable_emoji_completion_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_has_frame_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_im_module_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_input_hints_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_input_purpose_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_invisible_char_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_invisible_char_set_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_max_length_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_max_width_chars_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_overwrite_mode_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_placeholder_text_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_populate_all_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_activatable_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_gicon_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_name_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_pixbuf_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_sensitive_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_storage_type_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_tooltip_markup_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_primary_icon_tooltip_text_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_progress_fraction_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_progress_pulse_step_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_scroll_offset_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_activatable_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_gicon_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_name_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_pixbuf_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_sensitive_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_storage_type_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_tooltip_markup_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_secondary_icon_tooltip_text_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_selection_bound_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_shadow_type_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_show_emoji_icon_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_text_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_text_length_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_truncate_multiline_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_visibility_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_width_chars_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_xalign_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkEntry, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<Entry> {
let f: &F = transmute(f);
f(&Entry::from_glib_borrow(this).unsafe_cast())
}
impl fmt::Display for Entry {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Entry")
}
}