File: GridTableMessage.xsp

package info (click to toggle)
libwx-perl 1%3A0.9909-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,912 kB
  • sloc: cpp: 9,728; perl: 8,182; ansic: 626; makefile: 41
file content (46 lines) | stat: -rw-r--r-- 1,434 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#############################################################################
## Name:        ext/grid/XS/GridTableMessage.xsp
## Purpose:     XS++ for Wx::PlGridTable
## Author:      Mattia Barbon
## Modified by:
## Created:     08/11/2003
## RCS-ID:      $Id: GridTableMessage.xsp 2571 2009-05-17 16:46:20Z mbarbon $
## Copyright:   (c) 2003, 2005, 2009 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

%module{Wx};

%typemap{wxGridTableBase*}{simple};
%typemap{wxGridTableMessage*}{simple};

%{
#include "wx/grid.h"
%}

%name{Wx::GridTableMessage} class wxGridTableMessage
{
    wxGridTableMessage( wxGridTableBase* table, int id, int int1 = 0, int int2 = 0 );

%{
static void
wxGridTableMessage::CLONE()
  CODE:
    wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
%}
    ## // thread OK
    ~wxGridTableMessage()
        %code{% wxPli_thread_sv_unregister( aTHX_ "Wx::GridTableMessage", THIS, ST(0) );
                delete THIS;
                %};

    void SetTableObject( wxGridTableBase* table );
    wxGridTableBase* GetTableObject();
    void SetId( int id );
    int  GetId();
    void SetCommandInt( int comInt1 );
    int  GetCommandInt();
    void SetCommandInt2( int comInt2 );
    int  GetCommandInt2();
};