added interface headers with latest discussed changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
81
interface/iconbndl.h
Normal file
81
interface/iconbndl.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: iconbndl.h
|
||||
// Purpose: documentation for wxIconBundle class
|
||||
// Author: wxWidgets team
|
||||
// RCS-ID: $Id$
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
@class wxIconBundle
|
||||
@wxheader{iconbndl.h}
|
||||
|
||||
This class contains multiple copies of an icon in different sizes,
|
||||
see also wxDialog::SetIcons and
|
||||
wxTopLevelWindow::SetIcons.
|
||||
|
||||
@library{wxcore}
|
||||
@category{FIXME}
|
||||
|
||||
@stdobjects
|
||||
wxNullIconBundle
|
||||
*/
|
||||
class wxIconBundle : public wxGDIObject
|
||||
{
|
||||
public:
|
||||
//@{
|
||||
/**
|
||||
Copy constructor.
|
||||
*/
|
||||
wxIconBundle();
|
||||
wxIconBundle(const wxString& file, long type);
|
||||
wxIconBundle(const wxIcon& icon);
|
||||
wxIconBundle(const wxIconBundle& ic);
|
||||
//@}
|
||||
|
||||
/**
|
||||
Destructor.
|
||||
*/
|
||||
~wxIconBundle();
|
||||
|
||||
//@{
|
||||
/**
|
||||
Adds the icon to the collection; if the collection already
|
||||
contains an icon with the same width and height, it is
|
||||
replaced by the new one.
|
||||
*/
|
||||
void AddIcon(const wxString& file, long type);
|
||||
void AddIcon(const wxIcon& icon);
|
||||
//@}
|
||||
|
||||
//@{
|
||||
/**
|
||||
Same as GetIcon( wxSize( size, size ) ).
|
||||
*/
|
||||
wxIcon GetIcon(const wxSize& size);
|
||||
wxIcon GetIcon(wxCoord size = -1);
|
||||
//@}
|
||||
|
||||
/**
|
||||
Returns the icon with exactly the given size or @c wxNullIcon if this
|
||||
size is not available.
|
||||
*/
|
||||
wxIcon GetIconOfExactSize(const wxSize& size);
|
||||
|
||||
/**
|
||||
Returns @true if the bundle doesn't contain any icons, @false otherwise (in
|
||||
which case a call to GetIcon() with default
|
||||
parameter should return a valid icon).
|
||||
*/
|
||||
bool IsEmpty();
|
||||
|
||||
/**
|
||||
Assignment operator, using @ref overview_trefcount "reference counting".
|
||||
*/
|
||||
wxIconBundle operator =(const wxIconBundle& ic);
|
||||
|
||||
/**
|
||||
Equality operator. This returns @true if two icon bundles are equal.
|
||||
*/
|
||||
bool operator ==(const wxIconBundle& ic);
|
||||
};
|
Reference in New Issue
Block a user