// Generated by gmmproc 2.84.0 -- DO NOT MODIFY!


#include <glibmm.h>

#include <gtkmm/searchentry2.h>
#include <gtkmm/private/searchentry2_p.h>


/* Copyright (C) 2023 The gtkmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#include <gtk/gtk.h>

namespace Gtk
{

void SearchEntry2::unset_key_capture_widget()
{
  gtk_search_entry_set_key_capture_widget(gobj(), nullptr);
}

} // namespace Gtk

namespace Glib
{
Gtk::SearchEntry2* wrap2(GtkSearchEntry* object, bool take_copy)
{
  return dynamic_cast<Gtk::SearchEntry2*>(Glib::wrap_auto((GObject*)object, take_copy));
}

} /* namespace Glib */

namespace
{


static const Glib::SignalProxyInfo SearchEntry2_signal_activate_info =
{
  "activate",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo SearchEntry2_signal_search_changed_info =
{
  "search-changed",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo SearchEntry2_signal_next_match_info =
{
  "next-match",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo SearchEntry2_signal_previous_match_info =
{
  "previous-match",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo SearchEntry2_signal_stop_search_info =
{
  "stop-search",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static const Glib::SignalProxyInfo SearchEntry2_signal_search_started_info =
{
  "search-started",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


} // anonymous namespace


namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& SearchEntry2_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Do not derive a GType, or use a derived class:
    gtype_ = gtk_search_entry_get_type();

  }

  return *this;
}


Glib::ObjectBase* SearchEntry2_Class::wrap_new(GObject* o)
{
  return manage(new SearchEntry2((GtkSearchEntry*)(o)));

}


/* The implementation: */

SearchEntry2::SearchEntry2(const Glib::ConstructParams& construct_params)
:
  Gtk::Widget(construct_params)
{
  }

SearchEntry2::SearchEntry2(GtkSearchEntry* castitem)
:
  Gtk::Widget((GtkWidget*)(castitem))
{
  }


SearchEntry2::SearchEntry2(SearchEntry2&& src) noexcept
: Gtk::Widget(std::move(src))
  , Editable(std::move(src))
{}

SearchEntry2& SearchEntry2::operator=(SearchEntry2&& src) noexcept
{
  Gtk::Widget::operator=(std::move(src));
  Editable::operator=(std::move(src));
  return *this;
}

SearchEntry2::~SearchEntry2() noexcept
{
  destroy_();
}

SearchEntry2::CppClassType SearchEntry2::searchentry2_class_; // initialize static member

GType SearchEntry2::get_type()
{
  return searchentry2_class_.init().get_type();
}


GType SearchEntry2::get_base_type()
{
  return gtk_search_entry_get_type();
}


SearchEntry2::SearchEntry2()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gtk::Widget(Glib::ConstructParams(searchentry2_class_.init()))
{
  

}

void SearchEntry2::set_key_capture_widget(Widget& widget)
{
  gtk_search_entry_set_key_capture_widget(gobj(), (widget).gobj());
}

Widget* SearchEntry2::get_key_capture_widget()
{
  return Glib::wrap(gtk_search_entry_get_key_capture_widget(gobj()));
}

const Widget* SearchEntry2::get_key_capture_widget() const
{
  return const_cast<SearchEntry2*>(this)->get_key_capture_widget();
}

void SearchEntry2::set_search_delay(unsigned int delay)
{
  gtk_search_entry_set_search_delay(gobj(), delay);
}

unsigned int SearchEntry2::get_search_delay() const
{
  return gtk_search_entry_get_search_delay(const_cast<GtkSearchEntry*>(gobj()));
}

void SearchEntry2::set_placeholder_text(const Glib::ustring& text)
{
  gtk_search_entry_set_placeholder_text(gobj(), text.c_str());
}

Glib::ustring SearchEntry2::get_placeholder_text() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_search_entry_get_placeholder_text(const_cast<GtkSearchEntry*>(gobj())));
}

void SearchEntry2::set_input_purpose(InputPurpose purpose)
{
  gtk_search_entry_set_input_purpose(gobj(), static_cast<GtkInputPurpose>(purpose));
}

InputPurpose SearchEntry2::get_input_purpose() const
{
  return static_cast<InputPurpose>(gtk_search_entry_get_input_purpose(const_cast<GtkSearchEntry*>(gobj())));
}

void SearchEntry2::set_input_hints(InputHints hints)
{
  gtk_search_entry_set_input_hints(gobj(), static_cast<GtkInputHints>(hints));
}

InputHints SearchEntry2::get_input_hints() const
{
  return static_cast<InputHints>(gtk_search_entry_get_input_hints(const_cast<GtkSearchEntry*>(gobj())));
}


Glib::SignalProxy<void()> SearchEntry2::signal_activate()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_activate_info);
}


Glib::SignalProxy<void()> SearchEntry2::signal_search_changed()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_search_changed_info);
}


Glib::SignalProxy<void()> SearchEntry2::signal_next_match()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_next_match_info);
}


Glib::SignalProxy<void()> SearchEntry2::signal_previous_match()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_previous_match_info);
}


Glib::SignalProxy<void()> SearchEntry2::signal_stop_search()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_stop_search_info);
}


Glib::SignalProxy<void()> SearchEntry2::signal_search_started()
{
  return Glib::SignalProxy<void() >(this, &SearchEntry2_signal_search_started_info);
}


Glib::PropertyProxy< Glib::ustring > SearchEntry2::property_placeholder_text() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "placeholder-text");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > SearchEntry2::property_placeholder_text() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "placeholder-text");
}

static_assert(Glib::Traits::ValueCompatibleWithWrapProperty<InputPurpose>::value,
  "Type InputPurpose cannot be used in _WRAP_PROPERTY. "
  "There is no suitable template specialization of Glib::Value<>.");

Glib::PropertyProxy< InputPurpose > SearchEntry2::property_input_purpose() 
{
  return Glib::PropertyProxy< InputPurpose >(this, "input-purpose");
}

Glib::PropertyProxy_ReadOnly< InputPurpose > SearchEntry2::property_input_purpose() const
{
  return Glib::PropertyProxy_ReadOnly< InputPurpose >(this, "input-purpose");
}

static_assert(Glib::Traits::ValueCompatibleWithWrapProperty<InputHints>::value,
  "Type InputHints cannot be used in _WRAP_PROPERTY. "
  "There is no suitable template specialization of Glib::Value<>.");

Glib::PropertyProxy< InputHints > SearchEntry2::property_input_hints() 
{
  return Glib::PropertyProxy< InputHints >(this, "input-hints");
}

Glib::PropertyProxy_ReadOnly< InputHints > SearchEntry2::property_input_hints() const
{
  return Glib::PropertyProxy_ReadOnly< InputHints >(this, "input-hints");
}

Glib::PropertyProxy< bool > SearchEntry2::property_activates_default() 
{
  return Glib::PropertyProxy< bool >(this, "activates-default");
}

Glib::PropertyProxy_ReadOnly< bool > SearchEntry2::property_activates_default() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "activates-default");
}

Glib::PropertyProxy< unsigned int > SearchEntry2::property_search_delay() 
{
  return Glib::PropertyProxy< unsigned int >(this, "search-delay");
}

Glib::PropertyProxy_ReadOnly< unsigned int > SearchEntry2::property_search_delay() const
{
  return Glib::PropertyProxy_ReadOnly< unsigned int >(this, "search-delay");
}

Glib::PropertyProxy< Widget* > SearchEntry2::property_key_capture_widget() 
{
  return Glib::PropertyProxy< Widget* >(this, "key-capture-widget");
}

Glib::PropertyProxy_ReadOnly< Widget* > SearchEntry2::property_key_capture_widget() const
{
  return Glib::PropertyProxy_ReadOnly< Widget* >(this, "key-capture-widget");
}


} // namespace Gtk


