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#import <UIKit/UIKit.h>
6
7#include <QtCore/qstring.h>
8#include <QtGui/qevent.h>
9
11
13
14QT_END_NAMESPACE
15
16@interface QIOSTextResponder : UIResponder
17
18- (instancetype)initWithInputContext:(QT_PREPEND_NAMESPACE(QIOSInputContext) *)context;
19
20- (void)notifyInputDelegate:(Qt::InputMethodQueries)updatedProperties;
21- (BOOL)needsKeyboardReconfigure:(Qt::InputMethodQueries)updatedProperties;
22- (void)reset;
23- (void)commit;
24
25@end
26
27@interface QIOSTextInputResponder : QIOSTextResponder <UITextInputTraits, UIKeyInput, UITextInput>
28
29- (instancetype)initWithInputContext:(QT_PREPEND_NAMESPACE(QIOSInputContext) *)context;
30- (BOOL)needsKeyboardReconfigure:(Qt::InputMethodQueries)updatedProperties;
31- (void)reset;
32- (void)commit;
33
34- (void)notifyInputDelegate:(Qt::InputMethodQueries)updatedProperties;
35
36@property(readwrite, retain) UIView *inputView;
37@property(readwrite, retain) UIView *inputAccessoryView;
38
39// UITextInputTraits
40@property(nonatomic) UITextAutocapitalizationType autocapitalizationType;
41@property(nonatomic) UITextAutocorrectionType autocorrectionType;
42@property(nonatomic) UITextSpellCheckingType spellCheckingType;
43@property(nonatomic) BOOL enablesReturnKeyAutomatically;
44@property(nonatomic) UIKeyboardAppearance keyboardAppearance;
45@property(nonatomic) UIKeyboardType keyboardType;
46@property(nonatomic) UIReturnKeyType returnKeyType;
47@property(nonatomic, getter=isSecureTextEntry) BOOL secureTextEntry;
48
49// UITextInput
50@property(nonatomic, assign) id<UITextInputDelegate> inputDelegate;
51
52@end
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()
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:1685
connect(manager, &QNetworkAccessManager::finished, this, &MyClass::replyFinished)
Qt::InputMethodQueries update(Qt::InputMethodQueries properties)
QInputMethodQueryEvent currentState
ImeState()=default
QObject * focusObject