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 _propgrid.sip
8//
9//---------------------------------------------------------------------------
10
11//---------------------------------------------------------------------------
12
13class wxPGWindowList
14{
15    %Docstring
16        PGWindowList()
17        PGWindowList(a)
18        PGWindowList(a, b)
19
20        Contains a list of editor windows returned by CreateControls.
21    %End
22    %TypeHeaderCode
23        #include <wx/propgrid/editors.h>
24    %End
25
26public:
27    wxPGWindowList();
28
29    wxPGWindowList(
30        wxWindow * a
31    );
32
33    wxPGWindowList(
34        wxWindow * a,
35        wxWindow * b
36    );
37
38    wxWindow * m_primary;
39
40    wxWindow * m_secondary;
41
42    void SetSecondary(
43        wxWindow * secondary
44    );
45    %Docstring
46        SetSecondary(secondary)
47    %End
48
49    public:
50
51
52};  // end of class wxPGWindowList
53
54
55class wxPGEditor : wxObject
56{
57    %Docstring
58        PGEditor()
59
60        Base class for custom wxPropertyGrid editors.
61    %End
62    %TypeHeaderCode
63        #include <wx/propgrid/editors.h>
64    %End
65
66public:
67    wxPGEditor();
68
69    virtual
70    ~wxPGEditor();
71
72    void * m_clientData;
73
74    virtual
75    wxString GetName() const;
76    %Docstring
77        GetName() -> String
78
79        Returns pointer to the name of the editor.
80    %End
81
82    virtual
83    wxPGWindowList CreateControls(
84        wxPropertyGrid * propgrid,
85        wxPGProperty * property,
86        const wxPoint & pos,
87        const wxSize & size
88    ) const = 0;
89    %Docstring
90        CreateControls(propgrid, property, pos, size) -> PGWindowList
91
92        Instantiates editor controls.
93    %End
94
95    virtual
96    void UpdateControl(
97        wxPGProperty * property,
98        wxWindow * ctrl
99    ) const = 0;
100    %Docstring
101        UpdateControl(property, ctrl)
102
103        Loads value from property to the control.
104    %End
105
106    virtual
107    void DrawValue(
108        wxDC & dc,
109        const wxRect & rect,
110        wxPGProperty * property,
111        const wxString & text
112    ) const;
113    %Docstring
114        DrawValue(dc, rect, property, text)
115
116        Draws value for given property.
117    %End
118
119    virtual
120    bool OnEvent(
121        wxPropertyGrid * propgrid,
122        wxPGProperty * property,
123        wxWindow * wnd_primary,
124        wxEvent & event
125    ) const = 0;
126    %Docstring
127        OnEvent(propgrid, property, wnd_primary, event) -> bool
128
129        Handles events.
130    %End
131
132    virtual
133    bool GetValueFromControl(
134        wxPGVariant & variant   /Out/,
135        wxPGProperty * property,
136        wxWindow * ctrl
137    ) const [ bool (wxVariant& variant, wxPGProperty* property, wxWindow* ctrl) ];
138    %Docstring
139        GetValueFromControl(property, ctrl) -> (bool, variant)
140
141        Returns value from control, via parameter 'variant'.
142    %End
143    %VirtualCatcherCode
144        PyObject *sipResObj = sipCallMethod(&sipIsErr, sipMethod, "DD",
145                                            property, sipType_wxPGProperty, NULL,
146                                            ctrl, sipType_wxWindow, NULL);
147        if (sipResObj == NULL) {
148            if (PyErr_Occurred())
149                PyErr_Print();
150            sipRes = false;
151        }
152        else if (sipResObj == Py_None) {
153            sipRes = false;
154        } else if (sipResObj && !sipIsErr) {
155            sipParseResult(&sipIsErr, sipMethod, sipResObj, "(bH5)", &sipRes, sipType_wxPGVariant, &variant);
156        }
157    %End
158
159    virtual
160    void SetValueToUnspecified(
161        wxPGProperty * property,
162        wxWindow * ctrl
163    ) const;
164    %Docstring
165        SetValueToUnspecified(property, ctrl)
166
167        Sets value in control to unspecified.
168    %End
169
170    virtual
171    void SetControlAppearance(
172        wxPropertyGrid * pg,
173        wxPGProperty * property,
174        wxWindow * ctrl,
175        const wxPGCell & appearance,
176        const wxPGCell & oldAppearance,
177        bool unspecified
178    ) const;
179    %Docstring
180        SetControlAppearance(pg, property, ctrl, appearance, oldAppearance, unspecified)
181
182        Called by property grid to set new appearance for the control.
183    %End
184
185    virtual
186    void SetControlStringValue(
187        wxPGProperty * property,
188        wxWindow * ctrl,
189        const wxString & txt
190    ) const;
191    %Docstring
192        SetControlStringValue(property, ctrl, txt)
193
194        Sets control's value specifically from string.
195    %End
196
197    virtual
198    void SetControlIntValue(
199        wxPGProperty * property,
200        wxWindow * ctrl,
201        int value
202    ) const;
203    %Docstring
204        SetControlIntValue(property, ctrl, value)
205
206        Sets control's value specifically from int (applies to choice etc.).
207    %End
208
209    virtual
210    int InsertItem(
211        wxWindow * ctrl,
212        const wxString & label,
213        int index
214    ) const;
215    %Docstring
216        InsertItem(ctrl, label, index) -> int
217
218        Inserts item to existing control.
219    %End
220
221    virtual
222    void DeleteItem(
223        wxWindow * ctrl,
224        int index
225    ) const;
226    %Docstring
227        DeleteItem(ctrl, index)
228
229        Deletes item from existing control.
230    %End
231
232    virtual
233    void OnFocus(
234        wxPGProperty * property,
235        wxWindow * wnd
236    ) const;
237    %Docstring
238        OnFocus(property, wnd)
239
240        Extra processing when control gains focus.
241    %End
242
243    virtual
244    bool CanContainCustomImage() const;
245    %Docstring
246        CanContainCustomImage() -> bool
247
248        Returns true if control itself can contain the custom image.
249    %End
250
251    public:
252
253
254    %Property(name=Name, get=GetName)
255};  // end of class wxPGEditor
256
257
258class wxPGTextCtrlEditor : wxPGEditor
259{
260    %Docstring
261        PGTextCtrlEditor()
262    %End
263    %TypeHeaderCode
264        #include <wx/propgrid/editors.h>
265    %End
266
267public:
268    wxPGTextCtrlEditor();
269
270    virtual
271    ~wxPGTextCtrlEditor();
272
273    virtual
274    wxPGWindowList CreateControls(
275        wxPropertyGrid * propgrid,
276        wxPGProperty * property,
277        const wxPoint & pos,
278        const wxSize & size
279    ) const;
280    %Docstring
281        CreateControls(propgrid, property, pos, size) -> PGWindowList
282
283        Instantiates editor controls.
284    %End
285
286    virtual
287    void UpdateControl(
288        wxPGProperty * property,
289        wxWindow * ctrl
290    ) const;
291    %Docstring
292        UpdateControl(property, ctrl)
293
294        Loads value from property to the control.
295    %End
296
297    virtual
298    bool OnEvent(
299        wxPropertyGrid * propgrid,
300        wxPGProperty * property,
301        wxWindow * wnd_primary,
302        wxEvent & event
303    ) const;
304    %Docstring
305        OnEvent(propgrid, property, wnd_primary, event) -> bool
306
307        Handles events.
308    %End
309
310    virtual
311    bool GetValueFromControl(
312        wxPGVariant & variant,
313        wxPGProperty * property,
314        wxWindow * ctrl
315    ) const;
316    %Docstring
317        GetValueFromControl(variant, property, ctrl) -> bool
318
319        Returns value from control, via parameter 'variant'.
320    %End
321
322    virtual
323    wxString GetName() const;
324    %Docstring
325        GetName() -> String
326
327        Returns pointer to the name of the editor.
328    %End
329
330    virtual
331    void SetControlStringValue(
332        wxPGProperty * property,
333        wxWindow * ctrl,
334        const wxString & txt
335    ) const;
336    %Docstring
337        SetControlStringValue(property, ctrl, txt)
338
339        Sets control's value specifically from string.
340    %End
341
342    virtual
343    void OnFocus(
344        wxPGProperty * property,
345        wxWindow * wnd
346    ) const;
347    %Docstring
348        OnFocus(property, wnd)
349
350        Extra processing when control gains focus.
351    %End
352
353    static
354    bool OnTextCtrlEvent(
355        wxPropertyGrid * propgrid,
356        wxPGProperty * property,
357        wxWindow * ctrl,
358        wxEvent & event
359    );
360    %Docstring
361        OnTextCtrlEvent(propgrid, property, ctrl, event) -> bool
362    %End
363
364    static
365    bool GetTextCtrlValueFromControl(
366        wxPGVariant & variant,
367        wxPGProperty * property,
368        wxWindow * ctrl
369    );
370    %Docstring
371        GetTextCtrlValueFromControl(variant, property, ctrl) -> bool
372    %End
373
374    public:
375
376
377    %Property(name=Name, get=GetName)
378};  // end of class wxPGTextCtrlEditor
379
380
381class wxPGChoiceEditor : wxPGEditor
382{
383    %Docstring
384        PGChoiceEditor()
385    %End
386    %TypeHeaderCode
387        #include <wx/propgrid/editors.h>
388    %End
389
390public:
391    wxPGChoiceEditor();
392
393    virtual
394    wxPGWindowList CreateControls(
395        wxPropertyGrid * propgrid,
396        wxPGProperty * property,
397        const wxPoint & pos,
398        const wxSize & size
399    ) const;
400    %Docstring
401        CreateControls(propgrid, property, pos, size) -> PGWindowList
402
403        Instantiates editor controls.
404    %End
405
406    virtual
407    void UpdateControl(
408        wxPGProperty * property,
409        wxWindow * ctrl
410    ) const;
411    %Docstring
412        UpdateControl(property, ctrl)
413
414        Loads value from property to the control.
415    %End
416
417    virtual
418    bool OnEvent(
419        wxPropertyGrid * propgrid,
420        wxPGProperty * property,
421        wxWindow * wnd_primary,
422        wxEvent & event
423    ) const;
424    %Docstring
425        OnEvent(propgrid, property, wnd_primary, event) -> bool
426
427        Handles events.
428    %End
429
430    virtual
431    bool GetValueFromControl(
432        wxPGVariant & variant,
433        wxPGProperty * property,
434        wxWindow * ctrl
435    ) const;
436    %Docstring
437        GetValueFromControl(variant, property, ctrl) -> bool
438
439        Returns value from control, via parameter 'variant'.
440    %End
441
442    virtual
443    void SetValueToUnspecified(
444        wxPGProperty * property,
445        wxWindow * ctrl
446    ) const;
447    %Docstring
448        SetValueToUnspecified(property, ctrl)
449
450        Sets value in control to unspecified.
451    %End
452
453    virtual
454    wxString GetName() const;
455    %Docstring
456        GetName() -> String
457
458        Returns pointer to the name of the editor.
459    %End
460
461    virtual
462    void SetControlIntValue(
463        wxPGProperty * property,
464        wxWindow * ctrl,
465        int value
466    ) const;
467    %Docstring
468        SetControlIntValue(property, ctrl, value)
469
470        Sets control's value specifically from int (applies to choice etc.).
471    %End
472
473    virtual
474    void SetControlStringValue(
475        wxPGProperty * property,
476        wxWindow * ctrl,
477        const wxString & txt
478    ) const;
479    %Docstring
480        SetControlStringValue(property, ctrl, txt)
481
482        Sets control's value specifically from string.
483    %End
484
485    virtual
486    int InsertItem(
487        wxWindow * ctrl,
488        const wxString & label,
489        int index
490    ) const;
491    %Docstring
492        InsertItem(ctrl, label, index) -> int
493
494        Inserts item to existing control.
495    %End
496
497    virtual
498    void DeleteItem(
499        wxWindow * ctrl,
500        int index
501    ) const;
502    %Docstring
503        DeleteItem(ctrl, index)
504
505        Deletes item from existing control.
506    %End
507
508    virtual
509    bool CanContainCustomImage() const;
510    %Docstring
511        CanContainCustomImage() -> bool
512
513        Returns true if control itself can contain the custom image.
514    %End
515
516    wxWindow * CreateControlsBase(
517        wxPropertyGrid * propgrid,
518        wxPGProperty * property,
519        const wxPoint & pos,
520        const wxSize & sz,
521        long extraStyle
522    ) const;
523    %Docstring
524        CreateControlsBase(propgrid, property, pos, sz, extraStyle) -> wx.Window
525    %End
526
527    public:
528
529
530    %Property(name=Name, get=GetName)
531};  // end of class wxPGChoiceEditor
532
533
534class wxPGComboBoxEditor : wxPGChoiceEditor
535{
536    %Docstring
537        PGComboBoxEditor()
538    %End
539    %TypeHeaderCode
540        #include <wx/propgrid/editors.h>
541    %End
542
543public:
544    wxPGComboBoxEditor();
545
546    virtual
547    ~wxPGComboBoxEditor();
548
549    virtual
550    wxPGWindowList CreateControls(
551        wxPropertyGrid * propgrid,
552        wxPGProperty * property,
553        const wxPoint & pos,
554        const wxSize & size
555    ) const;
556    %Docstring
557        CreateControls(propgrid, property, pos, size) -> PGWindowList
558
559        Instantiates editor controls.
560    %End
561
562    virtual
563    wxString GetName() const;
564    %Docstring
565        GetName() -> String
566
567        Returns pointer to the name of the editor.
568    %End
569
570    virtual
571    void UpdateControl(
572        wxPGProperty * property,
573        wxWindow * ctrl
574    ) const;
575    %Docstring
576        UpdateControl(property, ctrl)
577
578        Loads value from property to the control.
579    %End
580
581    virtual
582    bool OnEvent(
583        wxPropertyGrid * propgrid,
584        wxPGProperty * property,
585        wxWindow * wnd_primary,
586        wxEvent & event
587    ) const;
588    %Docstring
589        OnEvent(propgrid, property, wnd_primary, event) -> bool
590
591        Handles events.
592    %End
593
594    virtual
595    bool GetValueFromControl(
596        wxPGVariant & variant,
597        wxPGProperty * property,
598        wxWindow * ctrl
599    ) const;
600    %Docstring
601        GetValueFromControl(variant, property, ctrl) -> bool
602
603        Returns value from control, via parameter 'variant'.
604    %End
605
606    virtual
607    void OnFocus(
608        wxPGProperty * property,
609        wxWindow * wnd
610    ) const;
611    %Docstring
612        OnFocus(property, wnd)
613
614        Extra processing when control gains focus.
615    %End
616
617    public:
618
619
620    %Property(name=Name, get=GetName)
621};  // end of class wxPGComboBoxEditor
622
623
624class wxPGChoiceAndButtonEditor : wxPGChoiceEditor
625{
626    %Docstring
627        PGChoiceAndButtonEditor()
628    %End
629    %TypeHeaderCode
630        #include <wx/propgrid/editors.h>
631    %End
632
633public:
634    wxPGChoiceAndButtonEditor();
635
636    virtual
637    ~wxPGChoiceAndButtonEditor();
638
639    virtual
640    wxString GetName() const;
641    %Docstring
642        GetName() -> String
643
644        Returns pointer to the name of the editor.
645    %End
646
647    virtual
648    wxPGWindowList CreateControls(
649        wxPropertyGrid * propgrid,
650        wxPGProperty * property,
651        const wxPoint & pos,
652        const wxSize & size
653    ) const;
654    %Docstring
655        CreateControls(propgrid, property, pos, size) -> PGWindowList
656
657        Instantiates editor controls.
658    %End
659
660    public:
661
662
663    %Property(name=Name, get=GetName)
664};  // end of class wxPGChoiceAndButtonEditor
665
666
667class wxPGTextCtrlAndButtonEditor : wxPGTextCtrlEditor
668{
669    %Docstring
670        PGTextCtrlAndButtonEditor()
671    %End
672    %TypeHeaderCode
673        #include <wx/propgrid/editors.h>
674    %End
675
676public:
677    wxPGTextCtrlAndButtonEditor();
678
679    virtual
680    ~wxPGTextCtrlAndButtonEditor();
681
682    virtual
683    wxString GetName() const;
684    %Docstring
685        GetName() -> String
686
687        Returns pointer to the name of the editor.
688    %End
689
690    virtual
691    wxPGWindowList CreateControls(
692        wxPropertyGrid * propgrid,
693        wxPGProperty * property,
694        const wxPoint & pos,
695        const wxSize & size
696    ) const;
697    %Docstring
698        CreateControls(propgrid, property, pos, size) -> PGWindowList
699
700        Instantiates editor controls.
701    %End
702
703    public:
704
705
706    %Property(name=Name, get=GetName)
707};  // end of class wxPGTextCtrlAndButtonEditor
708
709
710class wxPGCheckBoxEditor : wxPGEditor
711{
712    %Docstring
713        PGCheckBoxEditor()
714    %End
715    %TypeHeaderCode
716        #include <wx/propgrid/editors.h>
717    %End
718
719public:
720    wxPGCheckBoxEditor();
721
722    virtual
723    ~wxPGCheckBoxEditor();
724
725    virtual
726    wxString GetName() const;
727    %Docstring
728        GetName() -> String
729
730        Returns pointer to the name of the editor.
731    %End
732
733    virtual
734    wxPGWindowList CreateControls(
735        wxPropertyGrid * propgrid,
736        wxPGProperty * property,
737        const wxPoint & pos,
738        const wxSize & size
739    ) const;
740    %Docstring
741        CreateControls(propgrid, property, pos, size) -> PGWindowList
742
743        Instantiates editor controls.
744    %End
745
746    virtual
747    void UpdateControl(
748        wxPGProperty * property,
749        wxWindow * ctrl
750    ) const;
751    %Docstring
752        UpdateControl(property, ctrl)
753
754        Loads value from property to the control.
755    %End
756
757    virtual
758    bool OnEvent(
759        wxPropertyGrid * propgrid,
760        wxPGProperty * property,
761        wxWindow * wnd_primary,
762        wxEvent & event
763    ) const;
764    %Docstring
765        OnEvent(propgrid, property, wnd_primary, event) -> bool
766
767        Handles events.
768    %End
769
770    virtual
771    bool GetValueFromControl(
772        wxPGVariant & variant,
773        wxPGProperty * property,
774        wxWindow * ctrl
775    ) const;
776    %Docstring
777        GetValueFromControl(variant, property, ctrl) -> bool
778
779        Returns value from control, via parameter 'variant'.
780    %End
781
782    virtual
783    void SetValueToUnspecified(
784        wxPGProperty * property,
785        wxWindow * ctrl
786    ) const;
787    %Docstring
788        SetValueToUnspecified(property, ctrl)
789
790        Sets value in control to unspecified.
791    %End
792
793    virtual
794    void DrawValue(
795        wxDC & dc,
796        const wxRect & rect,
797        wxPGProperty * property,
798        const wxString & text
799    ) const;
800    %Docstring
801        DrawValue(dc, rect, property, text)
802
803        Draws value for given property.
804    %End
805
806    virtual
807    void SetControlIntValue(
808        wxPGProperty * property,
809        wxWindow * ctrl,
810        int value
811    ) const;
812    %Docstring
813        SetControlIntValue(property, ctrl, value)
814
815        Sets control's value specifically from int (applies to choice etc.).
816    %End
817
818    public:
819
820
821    %Property(name=Name, get=GetName)
822};  // end of class wxPGCheckBoxEditor
823
824
825class wxPGEditorDialogAdapter : wxObject
826{
827    %Docstring
828        PGEditorDialogAdapter()
829
830        Derive a class from this to adapt an existing editor dialog or
831        function to be used when editor button of a property is pushed.
832    %End
833    %TypeHeaderCode
834        #include <wx/propgrid/editors.h>
835    %End
836
837public:
838    wxPGEditorDialogAdapter();
839
840    virtual
841    ~wxPGEditorDialogAdapter();
842
843    void * m_clientData;
844
845    bool ShowDialog(
846        wxPropertyGrid * propGrid,
847        wxPGProperty * property
848    );
849    %Docstring
850        ShowDialog(propGrid, property) -> bool
851    %End
852
853    virtual
854    bool DoShowDialog(
855        wxPropertyGrid * propGrid,
856        wxPGProperty * property
857    ) = 0;
858    %Docstring
859        DoShowDialog(propGrid, property) -> bool
860    %End
861
862    void SetValue(
863        wxPGVariant value
864    );
865    %Docstring
866        SetValue(value)
867    %End
868
869    wxPGVariant & GetValue();
870    %Docstring
871        GetValue() -> PGVariant
872
873        This method is typically only used if deriving class from existing
874        adapter with value conversion purposes.
875    %End
876
877    public:
878
879
880    %Property(name=Value, get=GetValue, set=SetValue)
881};  // end of class wxPGEditorDialogAdapter
882
883
884class wxPGMultiButton : wxWindow
885{
886    %Docstring
887        PGMultiButton(pg, sz)
888
889        This class can be used to have multiple buttons in a property editor.
890    %End
891    %TypeHeaderCode
892        #include <wx/propgrid/editors.h>
893    %End
894
895public:
896    wxPGMultiButton(
897        wxPropertyGrid * pg,
898        const wxSize & sz
899    );
900    %PreMethodCode
901        if (!wxPyCheckForApp()) return NULL;
902    %End
903
904    ~wxPGMultiButton();
905
906    void Add(
907        const wxString & label,
908        int id = -2
909    );
910    %Docstring
911        Add(label, id=-2)
912        Add(bitmap, id=-2)
913
914        Adds new button, with given label.
915    %End
916
917    void Add(
918        const wxBitmap & bitmap,
919        int id = -2
920    );
921
922    void Finalize(
923        wxPropertyGrid * propGrid,
924        const wxPoint & pos
925    );
926    %Docstring
927        Finalize(propGrid, pos)
928
929        Call this in CreateControls() of your custom editor class after all
930        buttons have been added.
931    %End
932
933    wxWindow * GetButton(
934        unsigned int i
935    );
936    %Docstring
937        GetButton(i) -> wx.Window
938
939        Returns pointer to one of the buttons.
940    %End
941
942    int GetButtonId(
943        unsigned int i
944    ) const;
945    %Docstring
946        GetButtonId(i) -> int
947
948        Returns Id of one of the buttons.
949    %End
950
951    unsigned int GetCount();
952    %Docstring
953        GetCount() -> unsignedint
954
955        Returns number of buttons.
956    %End
957
958    wxSize GetPrimarySize() const;
959    %Docstring
960        GetPrimarySize() -> wx.Size
961
962        Returns size of primary editor control, as appropriately reduced by
963        number of buttons present.
964    %End
965
966    public:
967    virtual wxPoint GetClientAreaOrigin() const;
968    virtual bool Validate();
969    virtual bool TransferDataToWindow();
970    virtual bool TransferDataFromWindow();
971    virtual void InitDialog();
972    virtual bool AcceptsFocus() const;
973    virtual bool AcceptsFocusRecursively() const;
974    virtual bool AcceptsFocusFromKeyboard() const;
975    virtual void AddChild( wxWindowBase *child );
976    virtual void RemoveChild( wxWindowBase *child );
977    virtual void InheritAttributes();
978    virtual bool ShouldInheritColours() const;
979    virtual void OnInternalIdle();
980    virtual wxWindow *GetMainWindowOfCompositeControl();
981    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
982    virtual void SetCanFocus(bool canFocus);
983    virtual bool Destroy();
984    virtual void SetValidator( const wxValidator &validator );
985    virtual wxValidator* GetValidator();
986
987
988    protected:
989    virtual bool ProcessEvent(wxEvent & event);
990    virtual void DoEnable(bool enable);
991    virtual void DoGetPosition(int *x, int *y) const;
992    virtual void DoGetSize(int *width, int *height) const;
993    virtual void DoGetClientSize(int *width, int *height) const;
994    virtual wxSize DoGetBestSize() const;
995    virtual wxSize DoGetBestClientSize() const;
996    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
997    virtual void DoSetClientSize(int width, int height);
998    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
999    virtual wxSize DoGetBorderSize() const;
1000    virtual void DoMoveWindow(int x, int y, int width, int height);
1001    virtual void DoSetWindowVariant( wxWindowVariant variant);
1002    virtual wxBorder GetDefaultBorder() const;
1003    virtual wxBorder GetDefaultBorderForControl() const;
1004    virtual void DoFreeze();
1005    virtual void DoThaw();
1006    virtual bool HasTransparentBackground();
1007    virtual bool TryBefore(wxEvent& event);
1008    virtual bool TryAfter(wxEvent& event);
1009
1010
1011    public:
1012
1013
1014    static
1015    wxVisualAttributes GetClassDefaultAttributes(
1016        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
1017    );
1018    %Docstring
1019        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
1020    %End
1021    %PreMethodCode
1022        if (!wxPyCheckForApp()) return NULL;
1023    %End
1024
1025    public:
1026
1027
1028    %Property(name=Count, get=GetCount)
1029    %Property(name=PrimarySize, get=GetPrimarySize)
1030};  // end of class wxPGMultiButton
1031
1032
1033%Extract(id=pycode_propgrid)
1034def _PGMultiButton_AddButton(self, label, id=-2):
1035    """
1036    A simple wrapper around the PGMultiButton.Add method, for backwards compatibility.
1037    """
1038    self.Add(label, id)
1039PGMultiButton.AddButton = _PGMultiButton_AddButton
1040del _PGMultiButton_AddButton
1041%End
1042
1043%Extract(id=pycode_propgrid)
1044def _PGMultiButton_AddBitmapButton(self, bitmap, id=-2):
1045    """
1046    A simple wrapper around the PGMultiButton.Add method, for backwards compatibility.
1047    """
1048    self.Add(bitmap, id)
1049PGMultiButton.AddBitmapButton = _PGMultiButton_AddBitmapButton
1050del _PGMultiButton_AddBitmapButton
1051%End
1052
1053wxPGEditor * wxPGEditor_TextCtrl;
1054
1055wxPGEditor * wxPGEditor_Choice;
1056
1057wxPGEditor * wxPGEditor_ComboBox;
1058
1059wxPGEditor * wxPGEditor_TextCtrlAndButton;
1060
1061wxPGEditor * wxPGEditor_CheckBox;
1062
1063wxPGEditor * wxPGEditor_ChoiceAndButton;
1064
1065
1066//---------------------------------------------------------------------------
1067
1068