Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / calendar / XS / CalendarDateAttr.xsp
1 #############################################################################
2 ## Name:        ext/calendar/XS/CalendarDateAttr.xsp
3 ## Purpose:     XS++ for Wx::CalenderDateAttr
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     20/04/2003
7 ## RCS-ID:      $Id: CalendarDateAttr.xsp 2567 2009-05-17 14:29:33Z mbarbon $
8 ## Copyright:   (c) 2003, 2009 Mattia Barbon
9 ## Licence:     This program is free software; you can redistribute it and/or
10 ##              modify it under the same terms as Perl itself
11 #############################################################################
12
13 #include <wx/event.h>
14 #include <wx/calctrl.h>
15
16 %module{Wx};
17
18 %typemap{wxCalendarDateAttr*}{simple};
19 %typemap{wxCalendarDateBorder}{simple};
20
21 %name{Wx::CalendarDateAttr} class wxCalendarDateAttr
22 {
23     wxCalendarDateAttr();
24
25 %{
26 static void
27 wxCalendarDateAttr::CLONE()
28   CODE:
29     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
30 %}
31     ## // thread OK
32     ~wxCalendarDateAttr()
33         %code{% wxPli_thread_sv_unregister( aTHX_ "Wx::CalendarDateAttr", THIS, ST(0) );
34                 delete THIS;
35                 %};
36
37     void SetTextColour( const wxColour& colText );
38     void SetBackgroundColour( const wxColour& colBack );
39     void SetBorderColour( const wxColour& col );
40
41     void SetFont( const wxFont& font );
42
43     void SetBorder( wxCalendarDateBorder border );
44     void SetHoliday( bool holiday );
45
46     bool HasTextColour();
47     bool HasBackgroundColour();
48     bool HasBorderColour();
49
50     bool HasFont();
51     bool HasBorder();
52     bool IsHoliday();
53
54     const wxColour& GetTextColour();
55     const wxColour& GetBackgroundColour();
56     const wxColour& GetBorderColour();
57
58     const wxFont& GetFont();
59
60     wxCalendarDateBorder GetBorder();
61 };