icon-widget.cpp revision 5576f09fac8d3f88a3b22e176123fbd51d4a958c
/*
* Author:
* Bryce Harrington <bryce@bryceharrington.org>
*
* Copyright (C) 2004 Bryce Harrington
* based on work by Lauris Kaplinski in 2002 released under GPL
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <glib.h>
#include "icon-widget.h"
namespace Inkscape {
namespace UI {
namespace Widget {
IconWidget::IconWidget() :
_size(0),
_pb(0),
_do_bitmap_icons(false)
{
}
_pb(0),
_do_bitmap_icons(false)
{
char c[256];
//_pb = NULL;
} else {
/* TODO
_pb = gdk_pixbuf_new_from_data(pixels, GDK_COLORSPACE_RGB,
TRUE, 8, _size, _size, _size * 4,
(GdkPixbufDestroyNotify)g_free, NULL);
*/
}
}
_pb(0),
_do_bitmap_icons(false)
{
/*
_pb = gdk_pixbuf_new_from_data((guchar *)px, GDK_COLORSPACE_RGB,
TRUE, 8, _size, _size, _size * 4, NULL, NULL);
*/
}
IconWidget::~IconWidget() {
}
{
}
{
if (this->is_drawable()) {
this->queue_draw();
}
}
{
if (this->is_drawable()) {
}
return true;
}
{
if (_pb) {
}
}
{
if (_do_bitmap_icons) {
if (!px) {
}
} else {
if (!px) {
}
}
return px;
}
guchar* IconWidget::image_load_pixmap(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
}
guchar* IconWidget::image_load_svg(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
}
guchar* IconWidget::image_load_gtk(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
}
} // namespace Widget
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :