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%ModuleHeaderCode 12#include <wx/statline.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18const char* wxStaticLineNameStr; 19 20class wxStaticLine : wxControl 21{ 22 %Docstring 23 StaticLine() 24 StaticLine(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) 25 26 A static line is just a line which may be used in a dialog to separate 27 the groups of controls. 28 %End 29 %TypeHeaderCode 30 #include <wx/statline.h> 31 %End 32 33public: 34 wxStaticLine(); 35 %PreMethodCode 36 if (!wxPyCheckForApp()) return NULL; 37 %End 38 39 wxStaticLine( 40 wxWindow * parent /TransferThis/, 41 wxWindowID id = wxID_ANY, 42 const wxPoint & pos = wxDefaultPosition, 43 const wxSize & size = wxDefaultSize, 44 long style = wxLI_HORIZONTAL, 45 const wxString & name = wxStaticLineNameStr 46 ); 47 %PreMethodCode 48 if (!wxPyCheckForApp()) return NULL; 49 %End 50 51 bool Create( 52 wxWindow * parent /TransferThis/, 53 wxWindowID id = wxID_ANY, 54 const wxPoint & pos = wxDefaultPosition, 55 const wxSize & size = wxDefaultSize, 56 long style = wxLI_HORIZONTAL, 57 const wxString & name = wxStaticLineNameStr 58 ); 59 %Docstring 60 Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LI_HORIZONTAL, name=StaticLineNameStr) -> bool 61 62 Creates the static line for two-step construction. 63 %End 64 65 bool IsVertical() const; 66 %Docstring 67 IsVertical() -> bool 68 69 Returns true if the line is vertical, false if horizontal. 70 %End 71 72 static 73 int GetDefaultSize(); 74 %Docstring 75 GetDefaultSize() -> int 76 77 This static function returns the size which will be given to the 78 smaller dimension of the static line, i.e. 79 %End 80 81 public: 82 virtual wxPoint GetClientAreaOrigin() const; 83 virtual bool Validate(); 84 virtual bool TransferDataToWindow(); 85 virtual bool TransferDataFromWindow(); 86 virtual void InitDialog(); 87 virtual bool AcceptsFocus() const; 88 virtual bool AcceptsFocusRecursively() const; 89 virtual bool AcceptsFocusFromKeyboard() const; 90 virtual void AddChild( wxWindowBase *child ); 91 virtual void RemoveChild( wxWindowBase *child ); 92 virtual void InheritAttributes(); 93 virtual bool ShouldInheritColours() const; 94 virtual void OnInternalIdle(); 95 virtual wxWindow *GetMainWindowOfCompositeControl(); 96 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 97 virtual void SetCanFocus(bool canFocus); 98 virtual bool Destroy(); 99 virtual void SetValidator( const wxValidator &validator ); 100 virtual wxValidator* GetValidator(); 101 102 103 protected: 104 virtual bool ProcessEvent(wxEvent & event); 105 virtual void DoEnable(bool enable); 106 virtual void DoGetPosition(int *x, int *y) const; 107 virtual void DoGetSize(int *width, int *height) const; 108 virtual void DoGetClientSize(int *width, int *height) const; 109 virtual wxSize DoGetBestSize() const; 110 virtual wxSize DoGetBestClientSize() const; 111 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 112 virtual void DoSetClientSize(int width, int height); 113 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 114 virtual wxSize DoGetBorderSize() const; 115 virtual void DoMoveWindow(int x, int y, int width, int height); 116 virtual void DoSetWindowVariant( wxWindowVariant variant); 117 virtual wxBorder GetDefaultBorder() const; 118 virtual wxBorder GetDefaultBorderForControl() const; 119 virtual void DoFreeze(); 120 virtual void DoThaw(); 121 virtual bool HasTransparentBackground(); 122 virtual bool TryBefore(wxEvent& event); 123 virtual bool TryAfter(wxEvent& event); 124 125 126 public: 127 128 129 static 130 wxVisualAttributes GetClassDefaultAttributes( 131 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 132 ); 133 %Docstring 134 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 135 %End 136 %PreMethodCode 137 if (!wxPyCheckForApp()) return NULL; 138 %End 139 140}; // end of class wxStaticLine 141 142 143 144//--------------------------------------------------------------------------- 145 146