The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#############################################################################
## Name:        ext/dataview/XS/DataViewItem.xsp
## Purpose:     XS++ for Wx::DataViewItem
## Author:      Mattia Barbon
## Modified by:
## Created:     25/11/2007
## RCS-ID:      $Id: DataViewItem.xsp 2297 2007-11-25 12:39:35Z mbarbon $
## Copyright:   (c) 2007 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

#if wxUSE_DATAVIEWCTRL

#include <wx/dataview.h>

%module{Wx};

%typemap{IV}{simple};

%name{Wx::DataViewItem} class wxDataViewItem {
##    wxDataViewItem( IV id )
##        %code{% RETVAL = new wxDataViewItem( INT2PTR( void*, id ) ); %};

## FIXME dtor?

    IV GetID() const
        %code{% RETVAL = PTR2IV( THIS->GetID() ); %};
    bool IsOk() const;
};

%name{Wx::DataViewItemAttr} class wxDataViewItemAttr {
    wxDataViewItemAttr();

## FIXME dtor?

    void SetColour( const wxColour& colour );
    void SetBold( bool set );
    void SetItalic( bool set );

    bool HasColour() const;
    const wxColour& GetColour() const;

    bool GetBold() const;
    bool GetItalic() const;
};

#endif