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 _adv.sip 8// 9//--------------------------------------------------------------------------- 10 11%ModuleHeaderCode 12#include <wx/richtooltip.h> 13%End 14 15 16//--------------------------------------------------------------------------- 17 18enum wxTipKind 19{ 20 wxTipKind_None, 21 wxTipKind_TopLeft, 22 wxTipKind_Top, 23 wxTipKind_TopRight, 24 wxTipKind_BottomLeft, 25 wxTipKind_Bottom, 26 wxTipKind_BottomRight, 27 wxTipKind_Auto 28}; 29 30class wxRichToolTip 31{ 32 %Docstring 33 RichToolTip(title, message) 34 35 Allows showing a tool tip with more customizations than wxToolTip. 36 %End 37 %TypeHeaderCode 38 #include <wx/richtooltip.h> 39 %End 40 41public: 42 wxRichToolTip( 43 const wxString & title, 44 const wxString & message 45 ); 46 47 ~wxRichToolTip(); 48 49 void SetIcon( 50 int icon = wxICON_INFORMATION 51 ); 52 %Docstring 53 SetIcon(icon=wx.ICON_INFORMATION) 54 SetIcon(icon) 55 56 Set the small icon to show. 57 %End 58 59 void SetIcon( 60 const wxIcon & icon 61 ); 62 63 void SetBackgroundColour( 64 const wxColour & col, 65 const wxColour & colEnd = wxColour() 66 ); 67 %Docstring 68 SetBackgroundColour(col, colEnd=wx.Colour()) 69 70 Set the background colour. 71 %End 72 73 void SetTimeout( 74 unsigned millisecondsTimeout, 75 unsigned millisecondsDelay = 0 76 ); 77 %Docstring 78 SetTimeout(millisecondsTimeout, millisecondsDelay=0) 79 80 Set timeout after which the tooltip should disappear and optionally 81 set a delay before the tooltip is shown, in milliseconds. 82 %End 83 84 void SetTipKind( 85 wxTipKind tipKind 86 ); 87 %Docstring 88 SetTipKind(tipKind) 89 90 Choose the tip kind, possibly none. 91 %End 92 93 void SetTitleFont( 94 const wxFont & font 95 ); 96 %Docstring 97 SetTitleFont(font) 98 99 Set the title text font. 100 %End 101 102 void ShowFor( 103 wxWindow * win, 104 const wxRect * rect = NULL 105 ); 106 %Docstring 107 ShowFor(win, rect=None) 108 109 Show the tooltip for the given window and optionally specify where to 110 show the tooltip. 111 %End 112 113 private: 114 wxRichToolTip(const wxRichToolTip&); 115 116 117 public: 118 119 120}; // end of class wxRichToolTip 121 122 123 124//--------------------------------------------------------------------------- 125 126