File: TopLevelWindow.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 (92 lines) | stat: -rw-r--r-- 2,576 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#############################################################################
## Name:        XS/TopLevelWindow.xsp
## Purpose:     XS++ for Wx::TopLevelWindow
## Author:      Mattia Barbon
## Modified by:
## Created:     04/01/2005
## RCS-ID:      $Id: TopLevelWindow.xsp 3137 2012-02-28 00:29:39Z mdootson $
## Copyright:   (c) 2005-2007 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{wxTopLevelWindow*}{simple};

#if !defined(__WXMOTIF__) || WXPERL_W_VERSION_GE( 2, 5, 1 )

#include <wx/toplevel.h>
#include "cpp/overload.h"

%name{Wx::TopLevelWindow} class wxTopLevelWindow
{
#if WXPERL_W_VERSION_GE( 2, 5, 3 )
    void RequestUserAttention( int flags = wxUSER_ATTENTION_INFO );
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 0 )
    bool IsAlwaysMaximized();

    wxWindow* GetDefaultItem();
    wxWindow* SetDefaultItem( wxWindow* win );
    wxWindow* GetTmpDefaultItem() const;
    wxWindow* SetTmpDefaultItem( wxWindow* win );

    bool SetTransparent( wxByte alpha );
    bool CanSetTransparent();
#endif
#if WXPERL_W_VERSION_GE( 2, 7, 2 )
    bool EnableCloseButton( bool enable );
#endif
    const wxIcon& GetIcon() const;
    const wxIconBundle& GetIcons() const;

    void SetIcon( const wxIcon& icon );
    void SetIcons( const wxIconBundle& icons );

    void Iconize( bool iconize );
    void Maximize( bool maximize );
    bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL );

    bool IsFullScreen() const;
    bool IsActive() const;
    bool IsIconized() const;
    bool IsMaximized() const;
#ifdef __WXUNIVERSAL__
    bool IsUsingNativeDecorations() const;
#endif
#if defined(__WXMSW__) && WXPERL_W_VERSION_GE( 2, 7, 1 )
    void SetLayoutDirection( wxLayoutDirection direction );
#endif
    void SetShape( const wxRegion& region );

#if WXPERL_W_VERSION_GE( 2, 7, 2 )
    bool ShouldPreventAppExit();
#endif

#ifdef __WXUNIVERSAL__
    void UseNativeDecorations( bool native = true );
%{
void
wxTopLevelWindow::UseNativeDecorationsByDefault( native = true )
    bool native
  CODE:
    wxTopLevelWindow::UseNativeDecorationsByDefault( native );
%}
#endif
};

%{

##void
##wxIconBundle::new( ... )
##  PPCODE:
##    BEGIN_OVERLOAD()
##        MATCH_VOIDM_REDISP( newEmpty )
##        MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_s_n, newFile, 1 )
##        MATCH_REDISP( wxPliOvl_wico, newIcon )
##    END_OVERLOAD( Wx::IconBundle::new )

%}

#endif