wxMaxima
Loading...
Searching...
No Matches
ArtProvider.h
Go to the documentation of this file.
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2004-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4// (C) 2008-2009 Ziga Lenarcic <zigalenarcic@users.sourceforge.net>
5// (C) 2012-2013 Doug Ilijev <doug.ilijev@gmail.com>
6// (C) 2015-2016 Gunter Königsmann <wxMaxima@physikbuch.de>
7//
8// This program is free software; you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation; either version 2 of the License, or
11// (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18//
19// You should have received a copy of the GNU General Public License
20// along with this program; if not, write to the Free Software
21// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22//
23// SPDX-License-Identifier: GPL-2.0+
24
29#include <wx/bitmap.h>
30#include <wx/window.h>
31#include <wx/bmpbndl.h>
32
33#ifndef _ARTPROVIDER_H
34#define _ARTPROVIDER_H
35
37{
38public:
39 ArtProvider(){}
40 static wxBitmap GetImage(wxWindow *win, const wxString &name, int width,
41 unsigned const char *data,
42 std::size_t dataLen);
43 static wxBitmap GetQuestionmarkBitmap(wxWindow *win, wxSize siz);
44 static wxBitmapBundle GetQuestionmarkBundle(){return m_questionmarkBundle;}
45 static wxBitmapBundle GetDivideCellBundle(){return m_dividecellBundle;}
46 static wxBitmapBundle GetAddToWatchlistBundle(){return m_addToWatchlistBundle;}
47 static wxBitmapBundle GetCellMergeBundle(){return m_cellMergeBundle;}
48private:
49 static wxBitmapBundle m_questionmarkBundle;
50 static wxBitmapBundle m_dividecellBundle;
51 static wxBitmapBundle m_addToWatchlistBundle;
52 static wxBitmapBundle m_cellMergeBundle;
53};
54
55#endif
Definition: ArtProvider.h:37