mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 06:21:28 +00:00
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/generic/icon.cpp
|
|
// Purpose: wxIcon implementation for ports where it's same as wxBitmap
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 17/09/98
|
|
// RCS-ID: $Id: icon.cpp 51211 2008-01-14 18:16:37Z PC $
|
|
// Copyright: (c) Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// for compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#include "wx/icon.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// wxIcon
|
|
//-----------------------------------------------------------------------------
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
|
|
|
|
wxIcon::wxIcon(const char* const* bits) :
|
|
wxBitmap( bits )
|
|
{
|
|
}
|
|
|
|
#ifdef wxNEEDS_CHARPP
|
|
wxIcon::wxIcon(char **bits) :
|
|
wxBitmap( bits )
|
|
{
|
|
}
|
|
#endif
|
|
|
|
wxIcon::wxIcon() : wxBitmap()
|
|
{
|
|
}
|
|
|
|
void wxIcon::CopyFromBitmap(const wxBitmap& bmp)
|
|
{
|
|
wxIcon *icon = (wxIcon*)(&bmp);
|
|
*this = *icon;
|
|
}
|