1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _core.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13class wxInfoBar : wxControl
14{
15    %Docstring
16        InfoBar()
17        InfoBar(parent, winid=ID_ANY)
18
19        An info bar is a transient window shown at top or bottom of its parent
20        window to display non-critical information to the user.
21    %End
22    %TypeHeaderCode
23        #include <wx/infobar.h>
24    %End
25
26public:
27    wxInfoBar();
28    %PreMethodCode
29        if (!wxPyCheckForApp()) return NULL;
30    %End
31
32    wxInfoBar(
33        wxWindow * parent   /TransferThis/,
34        wxWindowID winid = wxID_ANY
35    );
36    %PreMethodCode
37        if (!wxPyCheckForApp()) return NULL;
38    %End
39
40    void SetShowHideEffects(
41        wxShowEffect showEffect,
42        wxShowEffect hideEffect
43    );
44    %Docstring
45        SetShowHideEffects(showEffect, hideEffect)
46
47        Set the effects to use when showing and hiding the bar.
48    %End
49
50    wxShowEffect GetShowEffect() const;
51    %Docstring
52        GetShowEffect() -> ShowEffect
53
54        Return the effect currently used for showing the bar.
55    %End
56
57    wxShowEffect GetHideEffect() const;
58    %Docstring
59        GetHideEffect() -> ShowEffect
60
61        Return the effect currently used for hiding the bar.
62    %End
63
64    void SetEffectDuration(
65        int duration
66    );
67    %Docstring
68        SetEffectDuration(duration)
69
70        Set the duration of the animation used when showing or hiding the bar.
71    %End
72
73    int GetEffectDuration() const;
74    %Docstring
75        GetEffectDuration() -> int
76
77        Return the effect animation duration currently used.
78    %End
79
80    bool SetFont(
81        const wxFont & font
82    );
83    %Docstring
84        SetFont(font) -> bool
85
86        Overridden base class methods changes the font of the text message.
87    %End
88
89    bool Create(
90        wxWindow * parent   /TransferThis/,
91        wxWindowID winid = wxID_ANY
92    );
93    %Docstring
94        Create(parent, winid=ID_ANY) -> bool
95
96        Create the info bar window.
97    %End
98
99    void AddButton(
100        wxWindowID btnid,
101        const wxString & label = wxString()
102    );
103    %Docstring
104        AddButton(btnid, label="")
105
106        Add a button to be shown in the info bar.
107    %End
108
109    virtual
110    void Dismiss();
111    %Docstring
112        Dismiss()
113
114        Hide the info bar window.
115    %End
116
117    void RemoveButton(
118        wxWindowID btnid
119    );
120    %Docstring
121        RemoveButton(btnid)
122
123        Remove a button previously added by AddButton().
124    %End
125
126    void ShowMessage(
127        const wxString & msg,
128        int flags = wxICON_INFORMATION
129    );
130    %Docstring
131        ShowMessage(msg, flags=ICON_INFORMATION)
132
133        Show a message in the bar.
134    %End
135
136    public:
137    virtual wxPoint GetClientAreaOrigin() const;
138    virtual bool Validate();
139    virtual bool TransferDataToWindow();
140    virtual bool TransferDataFromWindow();
141    virtual void InitDialog();
142    virtual bool AcceptsFocus() const;
143    virtual bool AcceptsFocusRecursively() const;
144    virtual bool AcceptsFocusFromKeyboard() const;
145    virtual void AddChild( wxWindowBase *child );
146    virtual void RemoveChild( wxWindowBase *child );
147    virtual void InheritAttributes();
148    virtual bool ShouldInheritColours() const;
149    virtual void OnInternalIdle();
150    virtual wxWindow *GetMainWindowOfCompositeControl();
151    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
152    virtual void SetCanFocus(bool canFocus);
153    virtual bool Destroy();
154    virtual void SetValidator( const wxValidator &validator );
155    virtual wxValidator* GetValidator();
156
157
158    protected:
159    virtual bool ProcessEvent(wxEvent & event);
160    virtual void DoEnable(bool enable);
161    virtual void DoGetPosition(int *x, int *y) const;
162    virtual void DoGetSize(int *width, int *height) const;
163    virtual void DoGetClientSize(int *width, int *height) const;
164    virtual wxSize DoGetBestSize() const;
165    virtual wxSize DoGetBestClientSize() const;
166    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
167    virtual void DoSetClientSize(int width, int height);
168    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
169    virtual wxSize DoGetBorderSize() const;
170    virtual void DoMoveWindow(int x, int y, int width, int height);
171    virtual void DoSetWindowVariant( wxWindowVariant variant);
172    virtual wxBorder GetDefaultBorder() const;
173    virtual wxBorder GetDefaultBorderForControl() const;
174    virtual void DoFreeze();
175    virtual void DoThaw();
176    virtual bool HasTransparentBackground();
177    virtual bool TryBefore(wxEvent& event);
178    virtual bool TryAfter(wxEvent& event);
179
180
181    public:
182
183
184    static
185    wxVisualAttributes GetClassDefaultAttributes(
186        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
187    );
188    %Docstring
189        GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
190    %End
191    %PreMethodCode
192        if (!wxPyCheckForApp()) return NULL;
193    %End
194
195    public:
196
197
198    %Property(name=EffectDuration, get=GetEffectDuration, set=SetEffectDuration)
199    %Property(name=HideEffect, get=GetHideEffect)
200    %Property(name=ShowEffect, get=GetShowEffect)
201};  // end of class wxInfoBar
202
203
204
205//---------------------------------------------------------------------------
206
207