Gtk::DrawingArea and libglademm
- From: "Javier Aranega" <javi aranega gmail com>
- To: gtkmm-list gnome org
- Subject: Gtk::DrawingArea and libglademm
- Date: Wed, 30 Aug 2006 11:49:40 +0200
Hi !
I work with Gtkmm 2.4 and libglademm and I have to do a simple draw that represents a midi track, something like that
-------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------------------
Bar 1 Bar
2 Bar
3 Bar
4 Bar
5 Bar
6 Bar 7
My program do music style classification of midi files and I have to
fill the bars with different colors according to the results of
classification, and if the user clicks on each bar I have to show some
extra information.
I have differents questions about that.
* With the gtkmm-2.4 API I have to work with GDK functions, not with
cairomm? I have to install the 2.10 version to work with cairomm? It's
really better?
* My Gtk::DrawingArea is created with Glade and it's referenced with
refXml->get_widget(). I don't know how to do that my class be a
subclass of the DrawingArea that I've created with Glade and the widget
call the on_expose_event(GdkEventExpose *event) to redraw every time is
needed.
Every help or example is welcome.
Thanks in advance.
Javi Aránega
University of Alicante
Spain
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]