Re: signal_damage_event and connect.
- From: Phil Wolff <adiabat centurylink net>
- To: gtkmm-list gnome org, linuxkid zeuz gmail com
- Subject: Re: signal_damage_event and connect.
- Date: Mon, 19 Oct 2015 15:00:39 -0700
bool Dock::dibujarDock ( GdkEventExpose* event )
On 10/19/2015 02:50 PM, Anibal F. Martinez Cortina wrote:
What seems to be wrong with this?
signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock));
Entire code:
Dock::Dock() : Gtk::Window()
{
set_decorated(false);
set_default_size(200,200);
set_app_paintable(true);
contenedor = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0));
add(*contenedor);
botonPrueba = Gtk::manage(new Gtk::Button("Gran boton"));
contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK);
contenedor->show_all();
signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock));
}
void Dock::dibujarDock()
{
contextoVentana = get_window()->create_cairo_context();
contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0);
contextoVentana->set_operator(Cairo::OPERATOR_SOURCE);
contextoVentana->paint();
//contextoVentana->destroy();
}
It won't build even though it should be correct right?
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]