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
13enum wxPG_ITERATOR_FLAGS
14{
15    wxPG_ITERATE_PROPERTIES,
16    wxPG_ITERATE_HIDDEN,
17    wxPG_ITERATE_FIXED_CHILDREN,
18    wxPG_ITERATE_CATEGORIES,
19    wxPG_ITERATE_ALL_PARENTS,
20    wxPG_ITERATE_ALL_PARENTS_RECURSIVELY,
21    wxPG_ITERATOR_FLAGS_ALL,
22    wxPG_ITERATOR_MASK_OP_ITEM,
23    wxPG_ITERATOR_MASK_OP_PARENT,
24    wxPG_ITERATE_VISIBLE,
25    wxPG_ITERATE_ALL,
26    wxPG_ITERATE_NORMAL,
27    wxPG_ITERATE_DEFAULT
28};
29
30class wxPropertyGridHitTestResult
31{
32    %Docstring
33        PropertyGridHitTestResult()
34    %End
35    %TypeHeaderCode
36        #include <wx/propgrid/propgridpagestate.h>
37    %End
38
39public:
40    wxPropertyGridHitTestResult();
41
42    ~wxPropertyGridHitTestResult();
43
44    int GetColumn() const;
45    %Docstring
46        GetColumn() -> int
47
48        Returns column hit.
49    %End
50
51    wxPGProperty * GetProperty() const;
52    %Docstring
53        GetProperty() -> PGProperty
54
55        Returns property hit.
56    %End
57
58    int GetSplitter() const;
59    %Docstring
60        GetSplitter() -> int
61
62        Returns index of splitter hit, -1 for none.
63    %End
64
65    int GetSplitterHitOffset() const;
66    %Docstring
67        GetSplitterHitOffset() -> int
68
69        If splitter hit, then this member function returns offset to the exact
70        splitter position.
71    %End
72
73    public:
74
75
76    %Property(name=Column, get=GetColumn)
77    %Property(name=Property, get=GetProperty)
78    %Property(name=Splitter, get=GetSplitter)
79    %Property(name=SplitterHitOffset, get=GetSplitterHitOffset)
80};  // end of class wxPropertyGridHitTestResult
81
82
83class wxPropertyGridIteratorBase
84{
85    %Docstring
86        PropertyGridIteratorBase()
87    %End
88    %TypeHeaderCode
89        #include <wx/propgrid/propgridpagestate.h>
90    %End
91
92public:
93    wxPropertyGridIteratorBase();
94
95    void Assign(
96        const wxPropertyGridIteratorBase & it
97    );
98    %Docstring
99        Assign(it)
100    %End
101
102    bool AtEnd() const;
103    %Docstring
104        AtEnd() -> bool
105    %End
106
107    wxPGProperty * GetProperty() const;
108    %Docstring
109        GetProperty() -> PGProperty
110
111        Get current property.
112    %End
113
114    void Init(
115        wxPropertyGridPageState * state,
116        int flags,
117        wxPGProperty * property,
118        int dir = 1
119    );
120    %Docstring
121        Init(state, flags, property, dir=1)
122        Init(state, flags, startPos=wx.TOP, dir=0)
123    %End
124
125    void Init(
126        wxPropertyGridPageState * state,
127        int flags,
128        int startPos = wxTOP,
129        int dir = 0
130    );
131
132    void Next(
133        bool iterateChildren = true
134    );
135    %Docstring
136        Next(iterateChildren=True)
137
138        Iterate to the next property.
139    %End
140
141    void Prev();
142    %Docstring
143        Prev()
144
145        Iterate to the previous property.
146    %End
147
148    void SetBaseParent(
149        wxPGProperty * baseParent
150    );
151    %Docstring
152        SetBaseParent(baseParent)
153
154        Set base parent, ie a property when, in which iteration returns, it
155        ends.
156    %End
157
158    public:
159
160
161    %Property(name=Property, get=GetProperty)
162};  // end of class wxPropertyGridIteratorBase
163
164
165class wxPropertyGridIterator : wxPropertyGridIteratorBase
166{
167    %Docstring
168        PropertyGridIterator()
169        PropertyGridIterator(state, flags=PG_ITERATE_DEFAULT, property=None, dir=1)
170        PropertyGridIterator(state, flags, startPos, dir=0)
171        PropertyGridIterator(it)
172    %End
173    %TypeHeaderCode
174        #include <wx/propgrid/propgridpagestate.h>
175    %End
176
177public:
178    wxPropertyGridIterator();
179
180    wxPropertyGridIterator(
181        wxPropertyGridPageState * state,
182        int flags = wxPG_ITERATE_DEFAULT,
183        wxPGProperty * property = NULL,
184        int dir = 1
185    );
186
187    wxPropertyGridIterator(
188        wxPropertyGridPageState * state,
189        int flags,
190        int startPos,
191        int dir = 0
192    );
193
194    wxPropertyGridIterator(
195        const wxPropertyGridIterator & it
196    );
197
198    ~wxPropertyGridIterator();
199
200};  // end of class wxPropertyGridIterator
201
202
203class wxPGVIterator
204{
205    %Docstring
206        PGVIterator()
207        PGVIterator(it)
208    %End
209    %TypeHeaderCode
210        #include <wx/propgrid/propgridpagestate.h>
211    %End
212
213public:
214    wxPGVIterator();
215
216    wxPGVIterator(
217        const wxPGVIterator & it
218    );
219
220    ~wxPGVIterator();
221
222    void UnRef();
223    %Docstring
224        UnRef()
225    %End
226
227    void Next();
228    %Docstring
229        Next()
230    %End
231
232    bool AtEnd() const;
233    %Docstring
234        AtEnd() -> bool
235    %End
236
237    wxPGProperty * GetProperty() const;
238    %Docstring
239        GetProperty() -> PGProperty
240    %End
241
242    public:
243
244
245    %Property(name=Property, get=GetProperty)
246};  // end of class wxPGVIterator
247
248
249class wxPropertyGridPageState
250{
251    %Docstring
252        PropertyGridPageState()
253
254        Contains low-level property page information (properties, column
255        widths, etc) of a single wxPropertyGrid or single wxPropertyGridPage.
256    %End
257    %TypeHeaderCode
258        #include <wx/propgrid/propgridpagestate.h>
259    %End
260
261public:
262    wxPropertyGridPageState();
263
264    virtual
265    ~wxPropertyGridPageState();
266
267    void CheckColumnWidths(
268        int widthChange = 0
269    );
270    %Docstring
271        CheckColumnWidths(widthChange=0)
272
273        Makes sure all columns have minimum width.
274    %End
275
276    virtual
277    void DoDelete(
278        wxPGProperty * item,
279        bool doDelete = true
280    );
281    %Docstring
282        DoDelete(item, doDelete=True)
283
284        Override this member function to add custom behaviour on property
285        deletion.
286    %End
287
288    wxSize DoFitColumns(
289        bool allowGridResize = false
290    );
291    %Docstring
292        DoFitColumns(allowGridResize=False) -> wx.Size
293    %End
294
295    wxPGProperty * DoGetItemAtY(
296        int y
297    ) const;
298    %Docstring
299        DoGetItemAtY(y) -> PGProperty
300    %End
301
302    virtual
303    wxPGProperty * DoInsert(
304        wxPGProperty * parent,
305        int index,
306        wxPGProperty * property
307    );
308    %Docstring
309        DoInsert(parent, index, property) -> PGProperty
310
311        Override this member function to add custom behaviour on property
312        insertion.
313    %End
314
315    virtual
316    void DoSetSplitterPosition(
317        int pos,
318        int splitterColumn = 0,
319        int flags = 0
320    );
321    %Docstring
322        DoSetSplitterPosition(pos, splitterColumn=0, flags=0)
323
324        This needs to be overridden in grid used the manager so that splitter
325        changes can be propagated to other pages.
326    %End
327
328    bool EnableCategories(
329        bool enable
330    );
331    %Docstring
332        EnableCategories(enable) -> bool
333    %End
334
335    void EnsureVirtualHeight();
336    %Docstring
337        EnsureVirtualHeight()
338
339        Make sure virtual height is up-to-date.
340    %End
341
342    unsigned int GetVirtualHeight();
343    %Docstring
344        GetVirtualHeight() -> unsignedint
345
346        Returns (precalculated) height of contained visible properties.
347    %End
348
349    unsigned int GetActualVirtualHeight() const;
350    %Docstring
351        GetActualVirtualHeight() -> unsignedint
352
353        Returns actual height of contained visible properties.
354    %End
355
356    unsigned int GetColumnCount() const;
357    %Docstring
358        GetColumnCount() -> unsignedint
359    %End
360
361    int GetColumnMinWidth(
362        int column
363    ) const;
364    %Docstring
365        GetColumnMinWidth(column) -> int
366    %End
367
368    int GetColumnWidth(
369        unsigned int column
370    ) const;
371    %Docstring
372        GetColumnWidth(column) -> int
373    %End
374
375    wxPropertyGrid * GetGrid() const;
376    %Docstring
377        GetGrid() -> PropertyGrid
378    %End
379
380    wxPGProperty * GetLastItem(
381        int flags = wxPG_ITERATE_DEFAULT
382    );
383    %Docstring
384        GetLastItem(flags=PG_ITERATE_DEFAULT) -> PGProperty
385
386        Returns last item which could be iterated using given flags.
387    %End
388
389    wxPGProperty * GetSelection() const;
390    %Docstring
391        GetSelection() -> PGProperty
392
393        Returns currently selected property.
394    %End
395
396    void DoSetSelection(
397        wxPGProperty * prop
398    );
399    %Docstring
400        DoSetSelection(prop)
401    %End
402
403    bool DoClearSelection();
404    %Docstring
405        DoClearSelection() -> bool
406    %End
407
408    void DoRemoveFromSelection(
409        wxPGProperty * prop
410    );
411    %Docstring
412        DoRemoveFromSelection(prop)
413    %End
414
415    void DoSetColumnProportion(
416        unsigned int column,
417        int proportion
418    );
419    %Docstring
420        DoSetColumnProportion(column, proportion)
421    %End
422
423    int DoGetColumnProportion(
424        unsigned int column
425    ) const;
426    %Docstring
427        DoGetColumnProportion(column) -> int
428    %End
429
430    void ResetColumnSizes(
431        int setSplitterFlags
432    );
433    %Docstring
434        ResetColumnSizes(setSplitterFlags)
435    %End
436
437    wxPropertyCategory * GetPropertyCategory(
438        const wxPGProperty * p
439    ) const;
440    %Docstring
441        GetPropertyCategory(p) -> PropertyCategory
442    %End
443
444    wxPGProperty * GetPropertyByLabel(
445        const wxString & name,
446        wxPGProperty * parent = NULL
447    ) const;
448    %Docstring
449        GetPropertyByLabel(name, parent=None) -> PGProperty
450    %End
451
452    wxPGVariant DoGetPropertyValues(
453        const wxString & listname,
454        wxPGProperty * baseparent,
455        long flags
456    ) const;
457    %Docstring
458        DoGetPropertyValues(listname, baseparent, flags) -> PGVariant
459    %End
460
461    wxPGProperty * DoGetRoot() const;
462    %Docstring
463        DoGetRoot() -> PGProperty
464    %End
465
466    void DoSetPropertyName(
467        wxPGProperty * p,
468        const wxString & newName
469    );
470    %Docstring
471        DoSetPropertyName(p, newName)
472    %End
473
474    int GetVirtualWidth() const;
475    %Docstring
476        GetVirtualWidth() -> int
477    %End
478
479    int GetColumnFitWidth(
480        wxClientDC & dc,
481        wxPGProperty * pwc,
482        unsigned int col,
483        bool subProps
484    ) const;
485    %Docstring
486        GetColumnFitWidth(dc, pwc, col, subProps) -> int
487
488        Returns minimal width for given column so that all images and texts
489        will fit entirely.
490    %End
491
492    int GetColumnFullWidth(
493        wxClientDC & dc,
494        wxPGProperty * p,
495        unsigned int col
496    );
497    %Docstring
498        GetColumnFullWidth(dc, p, col) -> int
499    %End
500
501    wxPropertyGridHitTestResult HitTest(
502        const wxPoint & pt
503    ) const;
504    %Docstring
505        HitTest(pt) -> PropertyGridHitTestResult
506
507        Returns information about arbitrary position in the grid.
508    %End
509
510    bool IsDisplayed() const;
511    %Docstring
512        IsDisplayed() -> bool
513
514        Returns true if page is visibly displayed.
515    %End
516
517    bool IsInNonCatMode() const;
518    %Docstring
519        IsInNonCatMode() -> bool
520    %End
521
522    void DoLimitPropertyEditing(
523        wxPGProperty * p,
524        bool limit = true
525    );
526    %Docstring
527        DoLimitPropertyEditing(p, limit=True)
528    %End
529
530    bool DoSelectProperty(
531        wxPGProperty * p,
532        unsigned int flags = 0
533    );
534    %Docstring
535        DoSelectProperty(p, flags=0) -> bool
536    %End
537
538    void OnClientWidthChange(
539        int newWidth,
540        int widthChange,
541        bool fromOnResize = false
542    );
543    %Docstring
544        OnClientWidthChange(newWidth, widthChange, fromOnResize=False)
545
546        widthChange is non-client.
547    %End
548
549    void RecalculateVirtualHeight();
550    %Docstring
551        RecalculateVirtualHeight()
552
553        Recalculates m_virtualHeight.
554    %End
555
556    void SetColumnCount(
557        int colCount
558    );
559    %Docstring
560        SetColumnCount(colCount)
561    %End
562
563    void PropagateColSizeDec(
564        int column,
565        int decrease,
566        int dir
567    );
568    %Docstring
569        PropagateColSizeDec(column, decrease, dir)
570    %End
571
572    bool DoHideProperty(
573        wxPGProperty * p,
574        bool hide,
575        int flags = wxPG_RECURSE
576    );
577    %Docstring
578        DoHideProperty(p, hide, flags=PG_RECURSE) -> bool
579    %End
580
581    bool DoSetPropertyValueString(
582        wxPGProperty * p,
583        const wxString & value
584    );
585    %Docstring
586        DoSetPropertyValueString(p, value) -> bool
587    %End
588
589    bool DoSetPropertyValue(
590        wxPGProperty * p,
591        wxPGVariant & value
592    );
593    %Docstring
594        DoSetPropertyValue(p, value) -> bool
595    %End
596
597    bool DoSetPropertyValueWxObjectPtr(
598        wxPGProperty * p,
599        wxObject * value
600    );
601    %Docstring
602        DoSetPropertyValueWxObjectPtr(p, value) -> bool
603    %End
604
605    void DoSetPropertyValues(
606        const wxPGVariantList & list,
607        wxPGProperty * default_category
608    );
609    %Docstring
610        DoSetPropertyValues(list, default_category)
611    %End
612
613    void SetSplitterLeft(
614        bool subProps = false
615    );
616    %Docstring
617        SetSplitterLeft(subProps=False)
618    %End
619
620    void SetVirtualWidth(
621        int width
622    );
623    %Docstring
624        SetVirtualWidth(width)
625
626        Set virtual width for this particular page.
627    %End
628
629    void DoSortChildren(
630        wxPGProperty * p,
631        int flags = 0
632    );
633    %Docstring
634        DoSortChildren(p, flags=0)
635    %End
636
637    void DoSort(
638        int flags = 0
639    );
640    %Docstring
641        DoSort(flags=0)
642    %End
643
644    bool PrepareAfterItemsAdded();
645    %Docstring
646        PrepareAfterItemsAdded() -> bool
647    %End
648
649    void VirtualHeightChanged();
650    %Docstring
651        VirtualHeightChanged()
652
653        Called after virtual height needs to be recalculated.
654    %End
655
656    wxPGProperty * DoAppend(
657        wxPGProperty * property
658    );
659    %Docstring
660        DoAppend(property) -> PGProperty
661
662        Base append.
663    %End
664
665    wxPGProperty * BaseGetPropertyByName(
666        const wxString & name
667    ) const;
668    %Docstring
669        BaseGetPropertyByName(name) -> PGProperty
670
671        Returns property by its name.
672    %End
673
674    void DoClear();
675    %Docstring
676        DoClear()
677
678        Called in, for example, wxPropertyGrid::Clear.
679    %End
680
681    bool DoIsPropertySelected(
682        wxPGProperty * prop
683    ) const;
684    %Docstring
685        DoIsPropertySelected(prop) -> bool
686    %End
687
688    bool DoCollapse(
689        wxPGProperty * p
690    );
691    %Docstring
692        DoCollapse(p) -> bool
693    %End
694
695    bool DoExpand(
696        wxPGProperty * p
697    );
698    %Docstring
699        DoExpand(p) -> bool
700    %End
701
702    void CalculateFontAndBitmapStuff(
703        int vspacing
704    );
705    %Docstring
706        CalculateFontAndBitmapStuff(vspacing)
707    %End
708
709    public:
710
711
712    %Property(name=ActualVirtualHeight, get=GetActualVirtualHeight)
713    %Property(name=ColumnCount, get=GetColumnCount, set=SetColumnCount)
714    %Property(name=Grid, get=GetGrid)
715    %Property(name=LastItem, get=GetLastItem)
716    %Property(name=Selection, get=GetSelection)
717    %Property(name=VirtualHeight, get=GetVirtualHeight)
718    %Property(name=VirtualWidth, get=GetVirtualWidth, set=SetVirtualWidth)
719};  // end of class wxPropertyGridPageState
720
721
722
723//---------------------------------------------------------------------------
724
725