how to dynamically create a bitmap mask

Disclaimer:  I'm new to X, GTK+, and gtkmm...

I'm looking at the example
to see how a mask can be created, and how it gets used in the call to

What I would like, is to dynamically create a mask on-the-fly.  I'm
trying to modify the clock example
to generate the right mask (a circle) when it starts up.

Problem is -- I cannot figure out how to dynamically create a
Gdk::Bitmap.  There are 2 Gdk::Bitmap::create() methods, but both
require a pre-existing XBM image.

Any help greatly appreciated.  Thanks!

Stéphane Charette

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]