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 _aui.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13enum wxAuiToolBarStyle
14{
15    wxAUI_TB_TEXT,
16    wxAUI_TB_NO_TOOLTIPS,
17    wxAUI_TB_NO_AUTORESIZE,
18    wxAUI_TB_GRIPPER,
19    wxAUI_TB_OVERFLOW,
20    wxAUI_TB_VERTICAL,
21    wxAUI_TB_HORZ_LAYOUT,
22    wxAUI_TB_HORIZONTAL,
23    wxAUI_TB_PLAIN_BACKGROUND,
24    wxAUI_TB_HORZ_TEXT,
25    wxAUI_ORIENTATION_MASK,
26    wxAUI_TB_DEFAULT_STYLE
27};
28
29enum wxAuiToolBarArtSetting
30{
31    wxAUI_TBART_SEPARATOR_SIZE,
32    wxAUI_TBART_GRIPPER_SIZE,
33    wxAUI_TBART_OVERFLOW_SIZE
34};
35
36enum wxAuiToolBarToolTextOrientation
37{
38    wxAUI_TBTOOL_TEXT_LEFT,
39    wxAUI_TBTOOL_TEXT_RIGHT,
40    wxAUI_TBTOOL_TEXT_TOP,
41    wxAUI_TBTOOL_TEXT_BOTTOM
42};
43
44wxEventType wxEVT_AUITOOLBAR_TOOL_DROPDOWN   /PyName=wxEVT_AUITOOLBAR_TOOL_DROPDOWN/;
45
46wxEventType wxEVT_AUITOOLBAR_OVERFLOW_CLICK   /PyName=wxEVT_AUITOOLBAR_OVERFLOW_CLICK/;
47
48wxEventType wxEVT_AUITOOLBAR_RIGHT_CLICK   /PyName=wxEVT_AUITOOLBAR_RIGHT_CLICK/;
49
50wxEventType wxEVT_AUITOOLBAR_MIDDLE_CLICK   /PyName=wxEVT_AUITOOLBAR_MIDDLE_CLICK/;
51
52wxEventType wxEVT_AUITOOLBAR_BEGIN_DRAG   /PyName=wxEVT_AUITOOLBAR_BEGIN_DRAG/;
53
54class wxAuiToolBarItem
55{
56    %Docstring
57        AuiToolBarItem()
58        AuiToolBarItem(c)
59
60        wxAuiToolBarItem is part of the wxAUI class framework, representing a
61        toolbar element.
62    %End
63    %TypeHeaderCode
64        #include <wx/aui/auibar.h>
65    %End
66
67public:
68    wxAuiToolBarItem();
69
70    wxAuiToolBarItem(
71        const wxAuiToolBarItem & c
72    );
73
74    void Assign(
75        const wxAuiToolBarItem & c
76    );
77    %Docstring
78        Assign(c)
79
80        Assigns the properties of the wxAuiToolBarItem "c" to this.
81    %End
82
83    void SetWindow(
84        wxWindow * w
85    );
86    %Docstring
87        SetWindow(w)
88
89        Assigns a window to the toolbar item.
90    %End
91
92    wxWindow * GetWindow();
93    %Docstring
94        GetWindow() -> wx.Window
95
96        Returns the wxWindow* associated to the toolbar item.
97    %End
98
99    void SetId(
100        int new_id
101    );
102    %Docstring
103        SetId(new_id)
104
105        Sets the toolbar item identifier.
106    %End
107
108    int GetId() const;
109    %Docstring
110        GetId() -> int
111
112        Returns the toolbar item identifier.
113    %End
114
115    void SetKind(
116        int new_kind
117    );
118    %Docstring
119        SetKind(new_kind)
120
121        Sets the wxAuiToolBarItem kind.
122    %End
123
124    int GetKind() const;
125    %Docstring
126        GetKind() -> int
127
128        Returns the toolbar item kind.
129    %End
130
131    void SetState(
132        int new_state
133    );
134    %Docstring
135        SetState(new_state)
136    %End
137
138    int GetState() const;
139    %Docstring
140        GetState() -> int
141    %End
142
143    void SetSizerItem(
144        wxSizerItem * s
145    );
146    %Docstring
147        SetSizerItem(s)
148    %End
149
150    wxSizerItem * GetSizerItem() const;
151    %Docstring
152        GetSizerItem() -> wx.SizerItem
153    %End
154
155    void SetLabel(
156        const wxString & s
157    );
158    %Docstring
159        SetLabel(s)
160    %End
161
162    const wxString & GetLabel() const;
163    %Docstring
164        GetLabel() -> String
165    %End
166
167    void SetBitmap(
168        const wxBitmap & bmp
169    );
170    %Docstring
171        SetBitmap(bmp)
172    %End
173
174    const wxBitmap & GetBitmap() const;
175    %Docstring
176        GetBitmap() -> wx.Bitmap
177    %End
178
179    void SetDisabledBitmap(
180        const wxBitmap & bmp
181    );
182    %Docstring
183        SetDisabledBitmap(bmp)
184    %End
185
186    const wxBitmap & GetDisabledBitmap() const;
187    %Docstring
188        GetDisabledBitmap() -> wx.Bitmap
189    %End
190
191    void SetHoverBitmap(
192        const wxBitmap & bmp
193    );
194    %Docstring
195        SetHoverBitmap(bmp)
196    %End
197
198    const wxBitmap & GetHoverBitmap() const;
199    %Docstring
200        GetHoverBitmap() -> wx.Bitmap
201    %End
202
203    void SetShortHelp(
204        const wxString & s
205    );
206    %Docstring
207        SetShortHelp(s)
208    %End
209
210    const wxString & GetShortHelp() const;
211    %Docstring
212        GetShortHelp() -> String
213    %End
214
215    void SetLongHelp(
216        const wxString & s
217    );
218    %Docstring
219        SetLongHelp(s)
220    %End
221
222    const wxString & GetLongHelp() const;
223    %Docstring
224        GetLongHelp() -> String
225    %End
226
227    void SetMinSize(
228        const wxSize & s
229    );
230    %Docstring
231        SetMinSize(s)
232    %End
233
234    const wxSize & GetMinSize() const;
235    %Docstring
236        GetMinSize() -> wx.Size
237    %End
238
239    void SetSpacerPixels(
240        int s
241    );
242    %Docstring
243        SetSpacerPixels(s)
244    %End
245
246    int GetSpacerPixels() const;
247    %Docstring
248        GetSpacerPixels() -> int
249    %End
250
251    void SetProportion(
252        int p
253    );
254    %Docstring
255        SetProportion(p)
256    %End
257
258    int GetProportion() const;
259    %Docstring
260        GetProportion() -> int
261    %End
262
263    void SetActive(
264        bool b
265    );
266    %Docstring
267        SetActive(b)
268    %End
269
270    bool IsActive() const;
271    %Docstring
272        IsActive() -> bool
273    %End
274
275    void SetHasDropDown(
276        bool b
277    );
278    %Docstring
279        SetHasDropDown(b)
280
281        Set whether this tool has a drop down button.
282    %End
283
284    bool HasDropDown() const;
285    %Docstring
286        HasDropDown() -> bool
287
288        Returns whether the toolbar item has an associated drop down button.
289    %End
290
291    void SetSticky(
292        bool b
293    );
294    %Docstring
295        SetSticky(b)
296    %End
297
298    bool IsSticky() const;
299    %Docstring
300        IsSticky() -> bool
301    %End
302
303    void SetUserData(
304        long l
305    );
306    %Docstring
307        SetUserData(l)
308    %End
309
310    long GetUserData() const;
311    %Docstring
312        GetUserData() -> long
313    %End
314
315    void SetAlignment(
316        int l
317    );
318    %Docstring
319        SetAlignment(l)
320    %End
321
322    int GetAlignment() const;
323    %Docstring
324        GetAlignment() -> int
325    %End
326
327    public:
328
329
330    %Property(name=Alignment, get=GetAlignment, set=SetAlignment)
331    %Property(name=Bitmap, get=GetBitmap, set=SetBitmap)
332    %Property(name=DisabledBitmap, get=GetDisabledBitmap, set=SetDisabledBitmap)
333    %Property(name=HoverBitmap, get=GetHoverBitmap, set=SetHoverBitmap)
334    %Property(name=Id, get=GetId, set=SetId)
335    %Property(name=Kind, get=GetKind, set=SetKind)
336    %Property(name=Label, get=GetLabel, set=SetLabel)
337    %Property(name=LongHelp, get=GetLongHelp, set=SetLongHelp)
338    %Property(name=MinSize, get=GetMinSize, set=SetMinSize)
339    %Property(name=Proportion, get=GetProportion, set=SetProportion)
340    %Property(name=ShortHelp, get=GetShortHelp, set=SetShortHelp)
341    %Property(name=SizerItem, get=GetSizerItem, set=SetSizerItem)
342    %Property(name=SpacerPixels, get=GetSpacerPixels, set=SetSpacerPixels)
343    %Property(name=State, get=GetState, set=SetState)
344    %Property(name=UserData, get=GetUserData, set=SetUserData)
345    %Property(name=Window, get=GetWindow, set=SetWindow)
346};  // end of class wxAuiToolBarItem
347
348
349class wxAuiToolBarArt
350{
351    %Docstring
352        AuiToolBarArt()
353
354        wxAuiToolBarArt is part of the wxAUI class framework.
355    %End
356    %TypeHeaderCode
357        #include <wx/aui/auibar.h>
358    %End
359
360public:
361    wxAuiToolBarArt();
362
363    virtual
364    wxAuiToolBarArt * Clone() = 0;
365    %Docstring
366        Clone() -> AuiToolBarArt
367    %End
368
369    virtual
370    void SetFlags(
371        unsigned int flags
372    ) = 0;
373    %Docstring
374        SetFlags(flags)
375    %End
376
377    virtual
378    unsigned int GetFlags() = 0;
379    %Docstring
380        GetFlags() -> unsignedint
381    %End
382
383    virtual
384    void SetFont(
385        const wxFont & font
386    ) = 0;
387    %Docstring
388        SetFont(font)
389    %End
390
391    virtual
392    wxFont GetFont() = 0;
393    %Docstring
394        GetFont() -> wx.Font
395    %End
396
397    virtual
398    void SetTextOrientation(
399        int orientation
400    ) = 0;
401    %Docstring
402        SetTextOrientation(orientation)
403    %End
404
405    virtual
406    int GetTextOrientation() = 0;
407    %Docstring
408        GetTextOrientation() -> int
409    %End
410
411    virtual
412    void DrawBackground(
413        wxDC & dc,
414        wxWindow * wnd,
415        const wxRect & rect
416    ) = 0;
417    %Docstring
418        DrawBackground(dc, wnd, rect)
419    %End
420
421    virtual
422    void DrawPlainBackground(
423        wxDC & dc,
424        wxWindow * wnd,
425        const wxRect & rect
426    ) = 0;
427    %Docstring
428        DrawPlainBackground(dc, wnd, rect)
429    %End
430
431    virtual
432    void DrawLabel(
433        wxDC & dc,
434        wxWindow * wnd,
435        const wxAuiToolBarItem & item,
436        const wxRect & rect
437    ) = 0;
438    %Docstring
439        DrawLabel(dc, wnd, item, rect)
440    %End
441
442    virtual
443    void DrawButton(
444        wxDC & dc,
445        wxWindow * wnd,
446        const wxAuiToolBarItem & item,
447        const wxRect & rect
448    ) = 0;
449    %Docstring
450        DrawButton(dc, wnd, item, rect)
451    %End
452
453    virtual
454    void DrawDropDownButton(
455        wxDC & dc,
456        wxWindow * wnd,
457        const wxAuiToolBarItem & item,
458        const wxRect & rect
459    ) = 0;
460    %Docstring
461        DrawDropDownButton(dc, wnd, item, rect)
462    %End
463
464    virtual
465    void DrawControlLabel(
466        wxDC & dc,
467        wxWindow * wnd,
468        const wxAuiToolBarItem & item,
469        const wxRect & rect
470    ) = 0;
471    %Docstring
472        DrawControlLabel(dc, wnd, item, rect)
473    %End
474
475    virtual
476    void DrawSeparator(
477        wxDC & dc,
478        wxWindow * wnd,
479        const wxRect & rect
480    ) = 0;
481    %Docstring
482        DrawSeparator(dc, wnd, rect)
483    %End
484
485    virtual
486    void DrawGripper(
487        wxDC & dc,
488        wxWindow * wnd,
489        const wxRect & rect
490    ) = 0;
491    %Docstring
492        DrawGripper(dc, wnd, rect)
493    %End
494
495    virtual
496    void DrawOverflowButton(
497        wxDC & dc,
498        wxWindow * wnd,
499        const wxRect & rect,
500        int state
501    ) = 0;
502    %Docstring
503        DrawOverflowButton(dc, wnd, rect, state)
504    %End
505
506    virtual
507    wxSize GetLabelSize(
508        wxDC & dc,
509        wxWindow * wnd,
510        const wxAuiToolBarItem & item
511    ) = 0;
512    %Docstring
513        GetLabelSize(dc, wnd, item) -> wx.Size
514    %End
515
516    virtual
517    wxSize GetToolSize(
518        wxDC & dc,
519        wxWindow * wnd,
520        const wxAuiToolBarItem & item
521    ) = 0;
522    %Docstring
523        GetToolSize(dc, wnd, item) -> wx.Size
524    %End
525
526    virtual
527    int GetElementSize(
528        int element_id
529    ) = 0;
530    %Docstring
531        GetElementSize(element_id) -> int
532    %End
533
534    virtual
535    void SetElementSize(
536        int element_id,
537        int size
538    ) = 0;
539    %Docstring
540        SetElementSize(element_id, size)
541    %End
542
543    virtual
544    int ShowDropDown(
545        wxWindow * wnd,
546        const wxAuiToolBarItemArray & items
547    ) = 0;
548    %Docstring
549        ShowDropDown(wnd, items) -> int
550    %End
551
552    public:
553
554
555    %Property(name=Flags, get=GetFlags, set=SetFlags)
556    %Property(name=Font, get=GetFont, set=SetFont)
557    %Property(name=TextOrientation, get=GetTextOrientation, set=SetTextOrientation)
558};  // end of class wxAuiToolBarArt
559
560
561class wxAuiDefaultToolBarArt : wxAuiToolBarArt
562{
563    %Docstring
564        AuiDefaultToolBarArt()
565
566        wxAuiDefaultToolBarArt is part of the wxAUI class framework.
567    %End
568    %TypeHeaderCode
569        #include <wx/aui/auibar.h>
570    %End
571
572public:
573    wxAuiDefaultToolBarArt();
574
575    virtual
576    ~wxAuiDefaultToolBarArt();
577
578    virtual
579    wxAuiToolBarArt * Clone();
580    %Docstring
581        Clone() -> AuiToolBarArt
582    %End
583
584    virtual
585    void SetFlags(
586        unsigned int flags
587    );
588    %Docstring
589        SetFlags(flags)
590    %End
591
592    virtual
593    unsigned int GetFlags();
594    %Docstring
595        GetFlags() -> unsignedint
596    %End
597
598    virtual
599    void SetFont(
600        const wxFont & font
601    );
602    %Docstring
603        SetFont(font)
604    %End
605
606    virtual
607    wxFont GetFont();
608    %Docstring
609        GetFont() -> wx.Font
610    %End
611
612    virtual
613    void SetTextOrientation(
614        int orientation
615    );
616    %Docstring
617        SetTextOrientation(orientation)
618    %End
619
620    virtual
621    int GetTextOrientation();
622    %Docstring
623        GetTextOrientation() -> int
624    %End
625
626    virtual
627    void DrawBackground(
628        wxDC & dc,
629        wxWindow * wnd,
630        const wxRect & rect
631    );
632    %Docstring
633        DrawBackground(dc, wnd, rect)
634    %End
635
636    virtual
637    void DrawPlainBackground(
638        wxDC & dc,
639        wxWindow * wnd,
640        const wxRect & rect
641    );
642    %Docstring
643        DrawPlainBackground(dc, wnd, rect)
644    %End
645
646    virtual
647    void DrawLabel(
648        wxDC & dc,
649        wxWindow * wnd,
650        const wxAuiToolBarItem & item,
651        const wxRect & rect
652    );
653    %Docstring
654        DrawLabel(dc, wnd, item, rect)
655    %End
656
657    virtual
658    void DrawButton(
659        wxDC & dc,
660        wxWindow * wnd,
661        const wxAuiToolBarItem & item,
662        const wxRect & rect
663    );
664    %Docstring
665        DrawButton(dc, wnd, item, rect)
666    %End
667
668    virtual
669    void DrawDropDownButton(
670        wxDC & dc,
671        wxWindow * wnd,
672        const wxAuiToolBarItem & item,
673        const wxRect & rect
674    );
675    %Docstring
676        DrawDropDownButton(dc, wnd, item, rect)
677    %End
678
679    virtual
680    void DrawControlLabel(
681        wxDC & dc,
682        wxWindow * wnd,
683        const wxAuiToolBarItem & item,
684        const wxRect & rect
685    );
686    %Docstring
687        DrawControlLabel(dc, wnd, item, rect)
688    %End
689
690    virtual
691    void DrawSeparator(
692        wxDC & dc,
693        wxWindow * wnd,
694        const wxRect & rect
695    );
696    %Docstring
697        DrawSeparator(dc, wnd, rect)
698    %End
699
700    virtual
701    void DrawGripper(
702        wxDC & dc,
703        wxWindow * wnd,
704        const wxRect & rect
705    );
706    %Docstring
707        DrawGripper(dc, wnd, rect)
708    %End
709
710    virtual
711    void DrawOverflowButton(
712        wxDC & dc,
713        wxWindow * wnd,
714        const wxRect & rect,
715        int state
716    );
717    %Docstring
718        DrawOverflowButton(dc, wnd, rect, state)
719    %End
720
721    virtual
722    wxSize GetLabelSize(
723        wxDC & dc,
724        wxWindow * wnd,
725        const wxAuiToolBarItem & item
726    );
727    %Docstring
728        GetLabelSize(dc, wnd, item) -> wx.Size
729    %End
730
731    virtual
732    wxSize GetToolSize(
733        wxDC & dc,
734        wxWindow * wnd,
735        const wxAuiToolBarItem & item
736    );
737    %Docstring
738        GetToolSize(dc, wnd, item) -> wx.Size
739    %End
740
741    virtual
742    int GetElementSize(
743        int element
744    );
745    %Docstring
746        GetElementSize(element) -> int
747    %End
748
749    virtual
750    void SetElementSize(
751        int element_id,
752        int size
753    );
754    %Docstring
755        SetElementSize(element_id, size)
756    %End
757
758    virtual
759    int ShowDropDown(
760        wxWindow * wnd,
761        const wxAuiToolBarItemArray & items
762    );
763    %Docstring
764        ShowDropDown(wnd, items) -> int
765    %End
766
767    public:
768
769
770    %Property(name=Flags, get=GetFlags, set=SetFlags)
771    %Property(name=Font, get=GetFont, set=SetFont)
772    %Property(name=TextOrientation, get=GetTextOrientation, set=SetTextOrientation)
773};  // end of class wxAuiDefaultToolBarArt
774
775
776class wxAuiToolBar : wxControl
777{
778    %Docstring
779        AuiToolBar()
780        AuiToolBar(parent, id=wx.ID_ANY, position=wx.DefaultPosition, size=wx.DefaultSize, style=AUI_TB_DEFAULT_STYLE)
781
782        wxAuiToolBar is a dockable toolbar, part of the wxAUI class framework.
783    %End
784    %TypeHeaderCode
785        #include <wx/aui/auibar.h>
786    %End
787
788public:
789    wxAuiToolBar();
790    %PreMethodCode
791        if (!wxPyCheckForApp()) return NULL;
792    %End
793
794    wxAuiToolBar(
795        wxWindow * parent   /TransferThis/,
796        wxWindowID id = wxID_ANY,
797        const wxPoint & position = wxDefaultPosition,
798        const wxSize & size = wxDefaultSize,
799        long style = wxAUI_TB_DEFAULT_STYLE
800    );
801    %PreMethodCode
802        if (!wxPyCheckForApp()) return NULL;
803    %End
804
805    ~wxAuiToolBar();
806
807    bool Create(
808        wxWindow * parent   /TransferThis/,
809        wxWindowID id = wxID_ANY,
810        const wxPoint & pos = wxDefaultPosition,
811        const wxSize & size = wxDefaultSize,
812        long style = wxAUI_TB_DEFAULT_STYLE
813    );
814    %Docstring
815        Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=AUI_TB_DEFAULT_STYLE) -> bool
816
817        Really create wxAuiToolBar created using default constructor.
818    %End
819
820    void SetWindowStyleFlag(
821        long style
822    );
823    %Docstring
824        SetWindowStyleFlag(style)
825
826        Sets the style of the window.
827    %End
828
829    long GetWindowStyleFlag() const;
830    %Docstring
831        GetWindowStyleFlag() -> long
832
833        Gets the window style that was passed to the constructor or Create()
834        method.
835    %End
836
837    void SetArtProvider(
838        wxAuiToolBarArt * art
839    );
840    %Docstring
841        SetArtProvider(art)
842    %End
843
844    wxAuiToolBarArt * GetArtProvider() const;
845    %Docstring
846        GetArtProvider() -> AuiToolBarArt
847    %End
848
849    bool SetFont(
850        const wxFont & font
851    );
852    %Docstring
853        SetFont(font) -> bool
854
855        Sets the font for this window.
856    %End
857
858    wxAuiToolBarItem * AddTool(
859        int tool_id,
860        const wxString & label,
861        const wxBitmap & bitmap,
862        const wxString & short_help_string = wxEmptyString,
863        wxItemKind kind = wxITEM_NORMAL
864    );
865    %Docstring
866        AddTool(tool_id, label, bitmap, short_help_string=wx.EmptyString, kind=wx.ITEM_NORMAL) -> AuiToolBarItem
867        AddTool(tool_id, label, bitmap, disabled_bitmap, kind, short_help_string, long_help_string, client_data) -> AuiToolBarItem
868        AddTool(tool_id, bitmap, disabled_bitmap, toggle=False, client_data=None, short_help_string=wx.EmptyString, long_help_string=wx.EmptyString) -> AuiToolBarItem
869    %End
870
871    wxAuiToolBarItem * AddTool(
872        int tool_id,
873        const wxString & label,
874        const wxBitmap & bitmap,
875        const wxBitmap & disabled_bitmap,
876        wxItemKind kind,
877        const wxString & short_help_string,
878        const wxString & long_help_string,
879        wxObject * client_data
880    );
881
882    wxAuiToolBarItem * AddTool(
883        int tool_id,
884        const wxBitmap & bitmap,
885        const wxBitmap & disabled_bitmap,
886        bool toggle = false,
887        wxObject * client_data = NULL,
888        const wxString & short_help_string = wxEmptyString,
889        const wxString & long_help_string = wxEmptyString
890    );
891
892    wxAuiToolBarItem * AddLabel(
893        int tool_id,
894        const wxString & label = wxEmptyString,
895        const int width = -1
896    );
897    %Docstring
898        AddLabel(tool_id, label=wx.EmptyString, width=-1) -> AuiToolBarItem
899    %End
900
901    wxAuiToolBarItem * AddControl(
902        wxControl * control,
903        const wxString & label = wxEmptyString
904    );
905    %Docstring
906        AddControl(control, label=wx.EmptyString) -> AuiToolBarItem
907    %End
908
909    wxAuiToolBarItem * AddSeparator();
910    %Docstring
911        AddSeparator() -> AuiToolBarItem
912    %End
913
914    wxAuiToolBarItem * AddSpacer(
915        int pixels
916    );
917    %Docstring
918        AddSpacer(pixels) -> AuiToolBarItem
919    %End
920
921    wxAuiToolBarItem * AddStretchSpacer(
922        int proportion = 1
923    );
924    %Docstring
925        AddStretchSpacer(proportion=1) -> AuiToolBarItem
926    %End
927
928    bool Realize();
929    %Docstring
930        Realize() -> bool
931    %End
932
933    wxControl * FindControl(
934        int window_id
935    );
936    %Docstring
937        FindControl(window_id) -> wx.Control
938    %End
939
940    wxAuiToolBarItem * FindToolByPosition(
941        wxCoord x,
942        wxCoord y
943    ) const;
944    %Docstring
945        FindToolByPosition(x, y) -> AuiToolBarItem
946    %End
947
948    wxAuiToolBarItem * FindToolByIndex(
949        int idx
950    ) const;
951    %Docstring
952        FindToolByIndex(idx) -> AuiToolBarItem
953    %End
954
955    wxAuiToolBarItem * FindTool(
956        int tool_id
957    ) const;
958    %Docstring
959        FindTool(tool_id) -> AuiToolBarItem
960    %End
961
962    void ClearTools();
963    %Docstring
964        ClearTools()
965    %End
966
967    void Clear();
968    %Docstring
969        Clear()
970    %End
971
972    bool DeleteTool(
973        int tool_id
974    );
975    %Docstring
976        DeleteTool(tool_id) -> bool
977    %End
978
979    bool DeleteByIndex(
980        int tool_id
981    );
982    %Docstring
983        DeleteByIndex(tool_id) -> bool
984    %End
985
986    size_t GetToolCount() const;
987    %Docstring
988        GetToolCount() -> size_t
989    %End
990
991    int GetToolPos(
992        int tool_id
993    ) const;
994    %Docstring
995        GetToolPos(tool_id) -> int
996    %End
997
998    int GetToolIndex(
999        int tool_id
1000    ) const;
1001    %Docstring
1002        GetToolIndex(tool_id) -> int
1003    %End
1004
1005    bool GetToolFits(
1006        int tool_id
1007    ) const;
1008    %Docstring
1009        GetToolFits(tool_id) -> bool
1010    %End
1011
1012    wxRect GetToolRect(
1013        int tool_id
1014    ) const;
1015    %Docstring
1016        GetToolRect(tool_id) -> wx.Rect
1017    %End
1018
1019    bool GetToolFitsByIndex(
1020        int tool_id
1021    ) const;
1022    %Docstring
1023        GetToolFitsByIndex(tool_id) -> bool
1024    %End
1025
1026    bool GetToolBarFits() const;
1027    %Docstring
1028        GetToolBarFits() -> bool
1029    %End
1030
1031    void SetMargins(
1032        const wxSize & size
1033    );
1034    %Docstring
1035        SetMargins(size)
1036        SetMargins(x, y)
1037        SetMargins(left, right, top, bottom)
1038    %End
1039
1040    void SetMargins(
1041        int x,
1042        int y
1043    );
1044
1045    void SetMargins(
1046        int left,
1047        int right,
1048        int top,
1049        int bottom
1050    );
1051
1052    void SetToolBitmapSize(
1053        const wxSize & size
1054    );
1055    %Docstring
1056        SetToolBitmapSize(size)
1057    %End
1058
1059    wxSize GetToolBitmapSize() const;
1060    %Docstring
1061        GetToolBitmapSize() -> wx.Size
1062    %End
1063
1064    bool GetOverflowVisible() const;
1065    %Docstring
1066        GetOverflowVisible() -> bool
1067    %End
1068
1069    void SetOverflowVisible(
1070        bool visible
1071    );
1072    %Docstring
1073        SetOverflowVisible(visible)
1074    %End
1075
1076    bool GetGripperVisible() const;
1077    %Docstring
1078        GetGripperVisible() -> bool
1079    %End
1080
1081    void SetGripperVisible(
1082        bool visible
1083    );
1084    %Docstring
1085        SetGripperVisible(visible)
1086    %End
1087
1088    void ToggleTool(
1089        int tool_id,
1090        bool state
1091    );
1092    %Docstring
1093        ToggleTool(tool_id, state)
1094    %End
1095
1096    bool GetToolToggled(
1097        int tool_id
1098    ) const;
1099    %Docstring
1100        GetToolToggled(tool_id) -> bool
1101    %End
1102
1103    void EnableTool(
1104        int tool_id,
1105        bool state
1106    );
1107    %Docstring
1108        EnableTool(tool_id, state)
1109    %End
1110
1111    bool GetToolEnabled(
1112        int tool_id
1113    ) const;
1114    %Docstring
1115        GetToolEnabled(tool_id) -> bool
1116    %End
1117
1118    void SetToolDropDown(
1119        int tool_id,
1120        bool dropdown
1121    );
1122    %Docstring
1123        SetToolDropDown(tool_id, dropdown)
1124
1125        Set whether the specified toolbar item has a drop down button.
1126    %End
1127
1128    bool GetToolDropDown(
1129        int tool_id
1130    ) const;
1131    %Docstring
1132        GetToolDropDown(tool_id) -> bool
1133
1134        Returns whether the specified toolbar item has an associated drop down
1135        button.
1136    %End
1137
1138    void SetToolBorderPadding(
1139        int padding
1140    );
1141    %Docstring
1142        SetToolBorderPadding(padding)
1143    %End
1144
1145    int GetToolBorderPadding() const;
1146    %Docstring
1147        GetToolBorderPadding() -> int
1148    %End
1149
1150    void SetToolTextOrientation(
1151        int orientation
1152    );
1153    %Docstring
1154        SetToolTextOrientation(orientation)
1155    %End
1156
1157    int GetToolTextOrientation() const;
1158    %Docstring
1159        GetToolTextOrientation() -> int
1160    %End
1161
1162    void SetToolPacking(
1163        int packing
1164    );
1165    %Docstring
1166        SetToolPacking(packing)
1167    %End
1168
1169    int GetToolPacking() const;
1170    %Docstring
1171        GetToolPacking() -> int
1172    %End
1173
1174    void SetToolProportion(
1175        int tool_id,
1176        int proportion
1177    );
1178    %Docstring
1179        SetToolProportion(tool_id, proportion)
1180    %End
1181
1182    int GetToolProportion(
1183        int tool_id
1184    ) const;
1185    %Docstring
1186        GetToolProportion(tool_id) -> int
1187    %End
1188
1189    void SetToolSeparation(
1190        int separation
1191    );
1192    %Docstring
1193        SetToolSeparation(separation)
1194    %End
1195
1196    int GetToolSeparation() const;
1197    %Docstring
1198        GetToolSeparation() -> int
1199    %End
1200
1201    void SetToolSticky(
1202        int tool_id,
1203        bool sticky
1204    );
1205    %Docstring
1206        SetToolSticky(tool_id, sticky)
1207    %End
1208
1209    bool GetToolSticky(
1210        int tool_id
1211    ) const;
1212    %Docstring
1213        GetToolSticky(tool_id) -> bool
1214    %End
1215
1216    wxString GetToolLabel(
1217        int tool_id
1218    ) const;
1219    %Docstring
1220        GetToolLabel(tool_id) -> String
1221    %End
1222
1223    void SetToolLabel(
1224        int tool_id,
1225        const wxString & label
1226    );
1227    %Docstring
1228        SetToolLabel(tool_id, label)
1229    %End
1230
1231    wxBitmap GetToolBitmap(
1232        int tool_id
1233    ) const;
1234    %Docstring
1235        GetToolBitmap(tool_id) -> wx.Bitmap
1236    %End
1237
1238    void SetToolBitmap(
1239        int tool_id,
1240        const wxBitmap & bitmap
1241    );
1242    %Docstring
1243        SetToolBitmap(tool_id, bitmap)
1244    %End
1245
1246    wxString GetToolShortHelp(
1247        int tool_id
1248    ) const;
1249    %Docstring
1250        GetToolShortHelp(tool_id) -> String
1251    %End
1252
1253    void SetToolShortHelp(
1254        int tool_id,
1255        const wxString & help_string
1256    );
1257    %Docstring
1258        SetToolShortHelp(tool_id, help_string)
1259    %End
1260
1261    wxString GetToolLongHelp(
1262        int tool_id
1263    ) const;
1264    %Docstring
1265        GetToolLongHelp(tool_id) -> String
1266    %End
1267
1268    void SetToolLongHelp(
1269        int tool_id,
1270        const wxString & help_string
1271    );
1272    %Docstring
1273        SetToolLongHelp(tool_id, help_string)
1274    %End
1275
1276    void SetCustomOverflowItems(
1277        const wxAuiToolBarItemArray & prepend,
1278        const wxAuiToolBarItemArray & append
1279    );
1280    %Docstring
1281        SetCustomOverflowItems(prepend, append)
1282    %End
1283
1284    wxSize GetHintSize(
1285        int dock_direction
1286    ) const;
1287    %Docstring
1288        GetHintSize(dock_direction) -> wx.Size
1289
1290        get size of hint rectangle for a particular dock location
1291    %End
1292
1293    bool IsPaneValid(
1294        const wxAuiPaneInfo & pane
1295    ) const;
1296    %Docstring
1297        IsPaneValid(pane) -> bool
1298    %End
1299
1300    public:
1301    virtual wxPoint GetClientAreaOrigin() const;
1302    virtual bool Validate();
1303    virtual bool TransferDataToWindow();
1304    virtual bool TransferDataFromWindow();
1305    virtual void InitDialog();
1306    virtual bool AcceptsFocus() const;
1307    virtual bool AcceptsFocusRecursively() const;
1308    virtual bool AcceptsFocusFromKeyboard() const;
1309    virtual void AddChild( wxWindowBase *child );
1310    virtual void RemoveChild( wxWindowBase *child );
1311    virtual void InheritAttributes();
1312    virtual bool ShouldInheritColours() const;
1313    virtual void OnInternalIdle();
1314    virtual wxWindow *GetMainWindowOfCompositeControl();
1315    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
1316    virtual void SetCanFocus(bool canFocus);
1317    virtual bool Destroy();
1318    virtual void SetValidator( const wxValidator &validator );
1319    virtual wxValidator* GetValidator();
1320
1321
1322    protected:
1323    virtual bool ProcessEvent(wxEvent & event);
1324    virtual void DoEnable(bool enable);
1325    virtual void DoGetPosition(int *x, int *y) const;
1326    virtual void DoGetSize(int *width, int *height) const;
1327    virtual void DoGetClientSize(int *width, int *height) const;
1328    virtual wxSize DoGetBestSize() const;
1329    virtual wxSize DoGetBestClientSize() const;
1330    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
1331    virtual void DoSetClientSize(int width, int height);
1332    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
1333    virtual wxSize DoGetBorderSize() const;
1334    virtual void DoMoveWindow(int x, int y, int width, int height);
1335    virtual void DoSetWindowVariant( wxWindowVariant variant);
1336    virtual wxBorder GetDefaultBorder() const;
1337    virtual wxBorder GetDefaultBorderForControl() const;
1338    virtual void DoFreeze();
1339    virtual void DoThaw();
1340    virtual bool HasTransparentBackground();
1341    virtual bool TryBefore(wxEvent& event);
1342    virtual bool TryAfter(wxEvent& event);
1343
1344
1345    public:
1346
1347
1348    static
1349    wxVisualAttributes GetClassDefaultAttributes(
1350        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
1351    );
1352    %Docstring
1353        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
1354    %End
1355    %PreMethodCode
1356        if (!wxPyCheckForApp()) return NULL;
1357    %End
1358
1359    public:
1360
1361
1362    %Property(name=ArtProvider, get=GetArtProvider, set=SetArtProvider)
1363    %Property(name=GripperVisible, get=GetGripperVisible, set=SetGripperVisible)
1364    %Property(name=OverflowVisible, get=GetOverflowVisible, set=SetOverflowVisible)
1365    %Property(name=ToolBarFits, get=GetToolBarFits)
1366    %Property(name=ToolBitmapSize, get=GetToolBitmapSize, set=SetToolBitmapSize)
1367    %Property(name=ToolBorderPadding, get=GetToolBorderPadding, set=SetToolBorderPadding)
1368    %Property(name=ToolCount, get=GetToolCount)
1369    %Property(name=ToolPacking, get=GetToolPacking, set=SetToolPacking)
1370    %Property(name=ToolSeparation, get=GetToolSeparation, set=SetToolSeparation)
1371    %Property(name=ToolTextOrientation, get=GetToolTextOrientation, set=SetToolTextOrientation)
1372    %Property(name=WindowStyleFlag, get=GetWindowStyleFlag, set=SetWindowStyleFlag)
1373};  // end of class wxAuiToolBar
1374
1375
1376class wxAuiToolBarEvent : wxNotifyEvent
1377{
1378    %Docstring
1379        AuiToolBarEvent(commandType=wx.wxEVT_NULL, winId=0)
1380        AuiToolBarEvent(c)
1381
1382        wxAuiToolBarEvent is used for the events generated by wxAuiToolBar.
1383    %End
1384    %TypeHeaderCode
1385        #include <wx/aui/auibar.h>
1386    %End
1387
1388public:
1389    wxAuiToolBarEvent(
1390        wxEventType commandType = wxEVT_NULL,
1391        int winId = 0
1392    );
1393
1394    wxAuiToolBarEvent(
1395        const wxAuiToolBarEvent & c
1396    );
1397
1398    bool IsDropDownClicked() const;
1399    %Docstring
1400        IsDropDownClicked() -> bool
1401
1402        Returns whether the drop down menu has been clicked.
1403    %End
1404
1405    wxPoint GetClickPoint() const;
1406    %Docstring
1407        GetClickPoint() -> wx.Point
1408
1409        Returns the point where the user clicked with the mouse.
1410    %End
1411
1412    wxRect GetItemRect() const;
1413    %Docstring
1414        GetItemRect() -> wx.Rect
1415
1416        Returns the wxAuiToolBarItem rectangle bounding the mouse click point.
1417    %End
1418
1419    int GetToolId() const;
1420    %Docstring
1421        GetToolId() -> int
1422
1423        Returns the wxAuiToolBarItem identifier.
1424    %End
1425
1426    void SetDropDownClicked(
1427        bool c
1428    );
1429    %Docstring
1430        SetDropDownClicked(c)
1431    %End
1432
1433    void SetClickPoint(
1434        const wxPoint & p
1435    );
1436    %Docstring
1437        SetClickPoint(p)
1438    %End
1439
1440    void SetItemRect(
1441        const wxRect & r
1442    );
1443    %Docstring
1444        SetItemRect(r)
1445    %End
1446
1447    void SetToolId(
1448        int toolId
1449    );
1450    %Docstring
1451        SetToolId(toolId)
1452    %End
1453
1454    public:
1455    virtual wxEvent* Clone() const /Factory/;
1456
1457
1458    private:
1459        wxAuiToolBarEvent& operator=(const wxAuiToolBarEvent&);
1460
1461
1462    public:
1463
1464
1465    %Property(name=ClickPoint, get=GetClickPoint, set=SetClickPoint)
1466    %Property(name=ItemRect, get=GetItemRect, set=SetItemRect)
1467    %Property(name=ToolId, get=GetToolId, set=SetToolId)
1468};  // end of class wxAuiToolBarEvent
1469
1470
1471%Extract(id=pycode_aui)
1472EVT_AUITOOLBAR_TOOL_DROPDOWN = wx.PyEventBinder( wxEVT_AUITOOLBAR_TOOL_DROPDOWN, 1 )
1473EVT_AUITOOLBAR_OVERFLOW_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_OVERFLOW_CLICK, 1 )
1474EVT_AUITOOLBAR_RIGHT_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_RIGHT_CLICK, 1 )
1475EVT_AUITOOLBAR_MIDDLE_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_MIDDLE_CLICK, 1 )
1476EVT_AUITOOLBAR_BEGIN_DRAG = wx.PyEventBinder( wxEVT_AUITOOLBAR_BEGIN_DRAG, 1 )
1477
1478%End
1479
1480class wxAuiToolBarItemArray
1481{
1482public:
1483    SIP_SSIZE_T __len__();
1484    %MethodCode
1485        sipRes = sipCpp->GetCount();
1486    %End
1487
1488            wxAuiToolBarItem& __getitem__(long index);
1489        %MethodCode
1490            if (0 > index)
1491                index += sipCpp->GetCount();
1492
1493            if ((index < sipCpp->GetCount()) && (0 <= index)) {
1494                sipRes = &sipCpp->Item(index);
1495            }
1496            else {
1497                wxPyErr_SetString(PyExc_IndexError, "sequence index out of range");
1498                sipError = sipErrorFail;
1499            }
1500        %End
1501
1502
1503    int __contains__(wxAuiToolBarItem& obj);
1504    %MethodCode
1505        int idx = sipCpp->Index(*obj, false);
1506        sipRes = idx != wxNOT_FOUND;
1507    %End
1508
1509    void append(wxAuiToolBarItem& obj);
1510    %MethodCode
1511        sipCpp->Add(*obj);
1512    %End
1513
1514    // TODO:  add support for index(value, [start, [stop]])
1515    int index(wxAuiToolBarItem& obj);
1516    %MethodCode
1517        int idx = sipCpp->Index(*obj, false);
1518        if (idx == wxNOT_FOUND) {
1519            sipError = sipErrorFail;
1520            wxPyErr_SetString(PyExc_ValueError,
1521                              "sequence.index(x): x not in sequence");
1522            }
1523        sipRes = idx;
1524    %End
1525};
1526
1527%Extract(id=pycode_aui)
1528def _AuiToolBarItemArray___repr__(self):
1529    return "AuiToolBarItemArray: " + repr(list(self))
1530AuiToolBarItemArray.__repr__ = _AuiToolBarItemArray___repr__
1531del _AuiToolBarItemArray___repr__
1532%End
1533
1534
1535
1536//---------------------------------------------------------------------------
1537
1538