replaced by stubs files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1998-08-12 09:16:21 +00:00
parent 0acb94947f
commit 01b2eeec59
85 changed files with 9910 additions and 7156 deletions

View File

@@ -1,103 +1,91 @@
/////////////////////////////////////////////////////////////////////////////
// Name: palette.cpp
// Purpose:
// Author: Robert Roebling
// Created: 01/02/97
// Id:
// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
// Purpose: wxPalette
// Author: AUTHOR
// Modified by:
// Created: ??/??/98
// RCS-ID: $Id$
// Copyright: (c) AUTHOR
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "palette.h"
#endif
#include "wx/palette.h"
//-----------------------------------------------------------------------------
// wxPalette
//-----------------------------------------------------------------------------
#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject)
#endif
class wxPaletteRefData: public wxObjectRefData
/*
* Palette
*
*/
wxPaletteRefData::wxPaletteRefData()
{
public:
wxPaletteRefData(void);
~wxPaletteRefData(void);
};
// TODO
}
wxPaletteRefData::wxPaletteRefData(void)
wxPaletteRefData::~wxPaletteRefData()
{
};
// TODO
}
wxPaletteRefData::~wxPaletteRefData(void)
wxPalette::wxPalette()
{
};
}
//-----------------------------------------------------------------------------
#define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
IMPLEMENT_DYNAMIC_CLASS(wxPalette,wxGDIObject)
wxPalette::wxPalette(void)
wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
{
};
Create(n, red, green, blue);
}
wxPalette::wxPalette( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue )
wxPalette::~wxPalette()
{
m_refData = new wxPaletteRefData();
Create( n, red, green, blue );
};
}
wxPalette::wxPalette( const wxPalette& palette )
bool wxPalette::FreeResource(bool force)
{
Ref( palette );
};
if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette)
{
DeleteObject((HPALETTE)M_PALETTEDATA->m_hPalette);
}
return TRUE;
}
wxPalette::wxPalette( const wxPalette* palette )
bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
{
UnRef();
if (palette) Ref( *palette );
};
wxPalette::~wxPalette(void)
m_refData = new wxPaletteRefData;
// TODO
return FALSE;
}
int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
{
};
if ( !m_refData )
return FALSE;
wxPalette& wxPalette::operator = ( const wxPalette& palette )
// TODO
return FALSE;
}
bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
{
if (*this == palette) return (*this);
Ref( palette );
return *this;
};
if ( !m_refData )
return FALSE;
bool wxPalette::operator == ( const wxPalette& palette )
{
return m_refData == palette.m_refData;
};
if (index < 0 || index > 255)
return FALSE;
bool wxPalette::operator != ( const wxPalette& palette )
{
return m_refData != palette.m_refData;
};
// TODO
return FALSE;
}
bool wxPalette::Ok(void) const
{
return (m_refData);
};
bool wxPalette::Create( int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue)
{
};
int wxPalette::GetPixel( const unsigned char red, const unsigned char green, const unsigned char blue ) const
{
};
bool wxPalette::GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const
{
};