Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qiostextresponder.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QIOSTEXTRESPONDER_H
6#define QIOSTEXTRESPONDER_H
7
8#import <UIKit/UIKit.h>
9
10#include <QtCore/qstring.h>
11#include <QtGui/qevent.h>
12
14
16
17QT_END_NAMESPACE
18
19@interface QIOSTextResponder : UIResponder
20
21- (instancetype)initWithInputContext:(QT_PREPEND_NAMESPACE(QIOSInputContext) *)context;
22
23- (void)notifyInputDelegate:(Qt::InputMethodQueries)updatedProperties;
24- (BOOL)needsKeyboardReconfigure:(Qt::InputMethodQueries)updatedProperties;
25- (void)reset;
26- (void)commit;
27
28@end
29
30@interface QIOSTextInputResponder : QIOSTextResponder <UITextInputTraits, UIKeyInput, UITextInput>
31
32- (instancetype)initWithInputContext:(QT_PREPEND_NAMESPACE(QIOSInputContext) *)context;
33- (BOOL)needsKeyboardReconfigure:(Qt::InputMethodQueries)updatedProperties;
34- (void)reset;
35- (void)commit;
36
37- (void)notifyInputDelegate:(Qt::InputMethodQueries)updatedProperties;
38
39@property(readwrite, retain) UIView *inputView;
40@property(readwrite, retain) UIView *inputAccessoryView;
41
42// UITextInputTraits
43@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
44@property(nonatomic) UITextAutocorrectionType autocorrectionType;
45@property(nonatomic) UITextSpellCheckingType spellCheckingType;
46@property(nonatomic) BOOL enablesReturnKeyAutomatically;
47@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
48@property(nonatomic) UIKeyboardType keyboardType;
49@property(nonatomic) UIReturnKeyType returnKeyType;
50@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry;
51
52// UITextInput
53@property(nonatomic, assign) id<UITextInputDelegate> inputDelegate;
54
55@end
56
57#endif // QIOSTEXTRESPONDER_H
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
void clearCurrentFocusObject()
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
const KeyboardState & keyboardState()
void updateKeyboardState(NSNotification *notification=nullptr)
bool isValid() const override
Returns input context validity.
void scroll(int y)
static QIOSInputContext * instance()
QLocale locale() const override
void reset() override
Method to be called when input method needs to be reset.
const ImeState & imeState()
void commit() override
bool isAnimating() const override
This function can be reimplemented to return true whenever input method is animating shown or hidden.
void showInputPanel() override
Request to show input panel.
void focusWindowChanged(QWindow *focusWindow)
void hideInputPanel() override
Request to hide input panel.
bool isInputPanelVisible() const override
Returns input panel visibility status.
bool inputMethodAccepted() const
void update(Qt::InputMethodQueries) override
Notification on editor updates.
static QIOSIntegration * instance()
Combined button and popup list for selecting options.
bool isQtApplication()
Definition qiosglobal.mm:21
#define qImDebug
Definition qiosglobal.h:21
const char kImePlatformDataReturnKeyType[]
const char kImePlatformDataInputAccessoryView[]
const char kImePlatformDataHideShortcutsBar[]
#define qPrintable(string)
Definition qstring.h:1683
connect(manager, &QNetworkAccessManager::finished, this, &MyClass::replyFinished)
Qt::InputMethodQueries update(Qt::InputMethodQueries properties)
QInputMethodQueryEvent currentState
ImeState()=default
QObject * focusObject