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 13const int wxST_NO_AUTORESIZE; 14const int wxST_ELLIPSIZE_START; 15const int wxST_ELLIPSIZE_MIDDLE; 16const int wxST_ELLIPSIZE_END; 17const char* wxStaticTextNameStr; 18 19class wxStaticText : wxControl 20{ 21 %Docstring 22 StaticText() 23 StaticText(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticTextNameStr) 24 25 A static text control displays one or more lines of read-only text. 26 %End 27 %TypeHeaderCode 28 #include <wx/stattext.h> 29 %End 30 31public: 32 wxStaticText(); 33 %PreMethodCode 34 if (!wxPyCheckForApp()) return NULL; 35 %End 36 37 wxStaticText( 38 wxWindow * parent /TransferThis/, 39 wxWindowID id = wxID_ANY, 40 const wxString & label = wxEmptyString, 41 const wxPoint & pos = wxDefaultPosition, 42 const wxSize & size = wxDefaultSize, 43 long style = 0, 44 const wxString & name = wxStaticTextNameStr 45 ); 46 %PreMethodCode 47 if (!wxPyCheckForApp()) return NULL; 48 %End 49 50 bool Create( 51 wxWindow * parent /TransferThis/, 52 wxWindowID id = wxID_ANY, 53 const wxString & label = wxEmptyString, 54 const wxPoint & pos = wxDefaultPosition, 55 const wxSize & size = wxDefaultSize, 56 long style = 0, 57 const wxString & name = wxStaticTextNameStr 58 ); 59 %Docstring 60 Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticTextNameStr) -> bool 61 62 Creation function, for two-step construction. 63 %End 64 65 bool IsEllipsized() const; 66 %Docstring 67 IsEllipsized() -> bool 68 69 Returns true if the window styles for this control contains one of the 70 wxST_ELLIPSIZE_START, wxST_ELLIPSIZE_MIDDLE or wxST_ELLIPSIZE_END 71 styles. 72 %End 73 74 void Wrap( 75 int width 76 ); 77 %Docstring 78 Wrap(width) 79 80 This functions wraps the controls label so that each of its lines 81 becomes at most width pixels wide if possible (the lines are broken at 82 words boundaries so it might not be the case if words are too long). 83 %End 84 85 public: 86 virtual wxPoint GetClientAreaOrigin() const; 87 virtual bool Validate(); 88 virtual bool TransferDataToWindow(); 89 virtual bool TransferDataFromWindow(); 90 virtual void InitDialog(); 91 virtual bool AcceptsFocus() const; 92 virtual bool AcceptsFocusRecursively() const; 93 virtual bool AcceptsFocusFromKeyboard() const; 94 virtual void AddChild( wxWindowBase *child ); 95 virtual void RemoveChild( wxWindowBase *child ); 96 virtual void InheritAttributes(); 97 virtual bool ShouldInheritColours() const; 98 virtual void OnInternalIdle(); 99 virtual wxWindow *GetMainWindowOfCompositeControl(); 100 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 101 virtual void SetCanFocus(bool canFocus); 102 virtual bool Destroy(); 103 virtual void SetValidator( const wxValidator &validator ); 104 virtual wxValidator* GetValidator(); 105 106 107 protected: 108 virtual bool ProcessEvent(wxEvent & event); 109 virtual void DoEnable(bool enable); 110 virtual void DoGetPosition(int *x, int *y) const; 111 virtual void DoGetSize(int *width, int *height) const; 112 virtual void DoGetClientSize(int *width, int *height) const; 113 virtual wxSize DoGetBestSize() const; 114 virtual wxSize DoGetBestClientSize() const; 115 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 116 virtual void DoSetClientSize(int width, int height); 117 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 118 virtual wxSize DoGetBorderSize() const; 119 virtual void DoMoveWindow(int x, int y, int width, int height); 120 virtual void DoSetWindowVariant( wxWindowVariant variant); 121 virtual wxBorder GetDefaultBorder() const; 122 virtual wxBorder GetDefaultBorderForControl() const; 123 virtual void DoFreeze(); 124 virtual void DoThaw(); 125 virtual bool HasTransparentBackground(); 126 virtual bool TryBefore(wxEvent& event); 127 virtual bool TryAfter(wxEvent& event); 128 129 130 public: 131 132 133 static 134 wxVisualAttributes GetClassDefaultAttributes( 135 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 136 ); 137 %Docstring 138 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 139 %End 140 %PreMethodCode 141 if (!wxPyCheckForApp()) return NULL; 142 %End 143 144}; // end of class wxStaticText 145 146 147 148//--------------------------------------------------------------------------- 149 150