qinputmethod.sip 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // qinputmethod.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtGui Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QInputMethod : public QObject
  22. {
  23. %TypeHeaderCode
  24. #include <qinputmethod.h>
  25. %End
  26. public:
  27. QTransform inputItemTransform() const;
  28. void setInputItemTransform(const QTransform &transform);
  29. QRectF cursorRectangle() const;
  30. QRectF keyboardRectangle() const;
  31. enum Action
  32. {
  33. Click,
  34. ContextMenu,
  35. };
  36. bool isVisible() const;
  37. void setVisible(bool visible);
  38. bool isAnimating() const;
  39. QLocale locale() const;
  40. Qt::LayoutDirection inputDirection() const;
  41. QRectF inputItemRectangle() const;
  42. void setInputItemRectangle(const QRectF &rect);
  43. static QVariant queryFocusObject(Qt::InputMethodQuery query, const QVariant &argument);
  44. public slots:
  45. void show();
  46. void hide();
  47. void update(Qt::InputMethodQueries queries);
  48. void reset();
  49. void commit();
  50. void invokeAction(QInputMethod::Action a, int cursorPosition);
  51. signals:
  52. void cursorRectangleChanged();
  53. void keyboardRectangleChanged();
  54. void visibleChanged();
  55. void animatingChanged();
  56. void localeChanged();
  57. void inputDirectionChanged(Qt::LayoutDirection newDirection);
  58. public:
  59. QRectF anchorRectangle() const;
  60. QRectF inputItemClipRectangle() const;
  61. signals:
  62. void anchorRectangleChanged();
  63. void inputItemClipRectangleChanged();
  64. private:
  65. QInputMethod();
  66. virtual ~QInputMethod();
  67. };