Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qiostextinputoverlay.mm File Reference

(1ffa41d04d3cb5005340ec92c2d2ce7bebfdf5b6)

import <UIKit/UIGestureRecognizerSubclass.h>
import <UIKit/UITextView.h>
#include <QtGui/QGuiApplication>
#include <QtGui/QInputMethod>
#include <QtGui/QStyleHints>
#include <QtGui/private/qinputmethod_p.h>
#include <QtCore/private/qobject_p.h>
#include <QtCore/private/qcore_mac_p.h>
#include "qiosglobal.h"
#include "qiostextinputoverlay.h"
+ Include dependency graph for qiostextinputoverlay.mm:

Go to the source code of this file.

Classes

class  QIOSEditMenu
 
class  QIOSLoupeLayer
 
class  QIOSHandleLayer
 
class  QIOSLoupeRecognizer
 
class  QIOSCursorRecognizer
 
class  QIOSSelectionRecognizer
 
class  QIOSTapRecognizer
 

Typedefs

typedef QPair< int, int > SelectionPair
 
typedef void(^ Block) (void)
 

Functions

static QPlatformInputContextplatformInputContext ()
 
static SelectionPair querySelection ()
 
static bool hasSelection ()
 
static void executeBlockWithoutAnimation (Block block)
 

Variables

static const CGFloat kKnobWidth = 10
 
BOOL _pendingSnapshotUpdate
 
UIView * _loupeImageView
 
CALayer * _containerLayer
 
CGFloat _loupeOffset
 
QTimer _updateTimer
 
CALayer * _handleKnobLayer
 
Qt::Edge _selectionEdge
 
UIView * _desktopView
 
CGPoint _firstTouchPoint
 
CGPoint _lastTouchPoint
 
QTimer _triggerStateBeganTimer
 
int _originalCursorFlashTime
 
QIOSHandleLayer_cursorLayer
 
QIOSHandleLayer_anchorLayer
 
QPointF _touchOffset
 
bool _dragOnCursor
 
bool _dragOnAnchor
 
bool _multiLine
 
QTimer _updateSelectionTimer
 
QMetaObject::Connection _cursorConnection
 
QMetaObject::Connection _anchorConnection
 
QMetaObject::Connection _clipRectConnection
 
bool _menuShouldBeVisible
 
UIView * _focusView
 

Typedef Documentation

◆ Block

typedef void(^ Block) (void)

Definition at line 19 of file qiostextinputoverlay.mm.

◆ SelectionPair

typedef QPair<int, int> SelectionPair

Definition at line 18 of file qiostextinputoverlay.mm.

Function Documentation

◆ executeBlockWithoutAnimation()

static void executeBlockWithoutAnimation ( Block block)
static

Definition at line 43 of file qiostextinputoverlay.mm.

References begin(), and setValue().

+ Here is the call graph for this function:

◆ hasSelection()

static bool hasSelection ( )
static

Definition at line 37 of file qiostextinputoverlay.mm.

References QList< T >::first(), querySelection(), and selection.

Referenced by QQuickTextNodeEngine::addGlyphsInRange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ platformInputContext()

static QPlatformInputContext * platformInputContext ( )
static

Definition at line 23 of file qiostextinputoverlay.mm.

References QObjectPrivate::get(), QGuiApplication::inputMethod(), and platformInputContext().

Referenced by platformInputContext().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ querySelection()

static SelectionPair querySelection ( )
static

Definition at line 28 of file qiostextinputoverlay.mm.

References QGuiApplication::focusObject(), Qt::ImAnchorPosition, Qt::ImCursorPosition, qMakePair(), and QCoreApplication::sendEvent().

Referenced by hasSelection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ _anchorConnection

QMetaObject::Connection _anchorConnection

Definition at line 637 of file qiostextinputoverlay.mm.

◆ _anchorLayer

QIOSHandleLayer* _anchorLayer

Definition at line 630 of file qiostextinputoverlay.mm.

◆ _clipRectConnection

QMetaObject::Connection _clipRectConnection

Definition at line 638 of file qiostextinputoverlay.mm.

◆ _containerLayer

CALayer* _containerLayer

Definition at line 145 of file qiostextinputoverlay.mm.

◆ _cursorConnection

QMetaObject::Connection _cursorConnection

Definition at line 636 of file qiostextinputoverlay.mm.

◆ _cursorLayer

QIOSHandleLayer* _cursorLayer
Initial value:
{
CALayer *_clipRectLayer

Definition at line 629 of file qiostextinputoverlay.mm.

◆ _desktopView

UIView* _desktopView
Initial value:

Definition at line 407 of file qiostextinputoverlay.mm.

◆ _dragOnAnchor

bool _dragOnAnchor

Definition at line 633 of file qiostextinputoverlay.mm.

◆ _dragOnCursor

bool _dragOnCursor

Definition at line 632 of file qiostextinputoverlay.mm.

◆ _firstTouchPoint

CGPoint _firstTouchPoint

Definition at line 408 of file qiostextinputoverlay.mm.

◆ _focusView

UIView* _focusView

Definition at line 869 of file qiostextinputoverlay.mm.

◆ _handleKnobLayer

CALayer* _handleKnobLayer
Initial value:
{
CALayer *_handleCursorLayer

Definition at line 285 of file qiostextinputoverlay.mm.

◆ _lastTouchPoint

CGPoint _lastTouchPoint

Definition at line 409 of file qiostextinputoverlay.mm.

◆ _loupeImageView

UIView* _loupeImageView

Definition at line 144 of file qiostextinputoverlay.mm.

◆ _loupeOffset

CGFloat _loupeOffset

Definition at line 146 of file qiostextinputoverlay.mm.

◆ _menuShouldBeVisible

bool _menuShouldBeVisible
Initial value:
{
int _cursorPosOnPress

Definition at line 868 of file qiostextinputoverlay.mm.

◆ _multiLine

bool _multiLine

Definition at line 634 of file qiostextinputoverlay.mm.

◆ _originalCursorFlashTime

int _originalCursorFlashTime

Definition at line 411 of file qiostextinputoverlay.mm.

◆ _pendingSnapshotUpdate

BOOL _pendingSnapshotUpdate
Initial value:
{
UIView *_snapshotView

Definition at line 143 of file qiostextinputoverlay.mm.

◆ _selectionEdge

Qt::Edge _selectionEdge

Definition at line 286 of file qiostextinputoverlay.mm.

◆ _touchOffset

QPointF _touchOffset

Definition at line 631 of file qiostextinputoverlay.mm.

◆ _triggerStateBeganTimer

QTimer _triggerStateBeganTimer

Definition at line 410 of file qiostextinputoverlay.mm.

◆ _updateSelectionTimer

QTimer _updateSelectionTimer

Definition at line 635 of file qiostextinputoverlay.mm.

◆ _updateTimer

QTimer _updateTimer

Definition at line 147 of file qiostextinputoverlay.mm.

◆ kKnobWidth

const CGFloat kKnobWidth = 10
static

Definition at line 21 of file qiostextinputoverlay.mm.