File: RibbonControl.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 (55 lines) | stat: -rw-r--r-- 1,821 bytes parent folder | download
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
47
48
49
50
51
52
53
54
55
#############################################################################
## Name:        ext/ribbon/XS/RibbonControl.xsp
## Purpose:     XS++ for Wx::RibbonControl
## Author:      Mark Dootson
## Modified by:
## Created:     04/03/2012
## RCS-ID:      $Id: $
## Copyright:   (c) 2012 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};

#if WXPERL_W_VERSION_GE( 2, 9, 3 ) && wxUSE_RIBBON

#include <wx/ribbon/control.h>

%loadplugin{build::Wx::XSP::Overload};

%name{Wx::RibbonControl} class wxRibbonControl : public %name{Wx::Control} wxControl
{
public:
   
    %name{newDefault} wxRibbonControl() %Overload
        %postcall{% wxPli_create_evthandler( aTHX_ RETVAL, CLASS ); %};

    %name{newFull} wxRibbonControl(wxWindow *parent, wxWindowID id,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize, long style = 0,
                    const wxValidator& validator = wxDefaultValidatorPtr,
                    const wxString& name = wxControlNameStr) %Overload
        %postcall{% wxPli_create_evthandler( aTHX_ RETVAL, CLASS ); %};

    virtual void SetArtProvider(wxRibbonArtProvider* art);
    
    wxRibbonArtProvider* GetArtProvider() const;

    virtual bool IsSizingContinuous() const;
    
    wxSize GetNextSmallerSize(wxOrientation direction) const;

    wxSize GetNextSmallerSize(wxOrientation direction, wxSize relative_to) const;
 
    wxSize GetNextLargerSize(wxOrientation direction) const;

    wxSize GetNextLargerSize(wxOrientation direction, wxSize relative_to) const;
 
    virtual bool Realize();

    bool Realise();
    
};

#endif