Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
9cf69a45
Commit
9cf69a45
authored
10 years ago
by
David Faden
Committed by
Jean Chalard
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adds documentation for a few methods.
Change-Id: I6bdae25a8b81cdac931f2591f33570b01e34fb2c
parent
4793e913
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/keyboard/Key.java
+20
-4
20 additions, 4 deletions
java/src/com/android/inputmethod/keyboard/Key.java
java/src/com/android/inputmethod/latin/InputPointers.java
+6
-0
6 additions, 0 deletions
java/src/com/android/inputmethod/latin/InputPointers.java
with
26 additions
and
4 deletions
java/src/com/android/inputmethod/keyboard/Key.java
+
20
−
4
View file @
9cf69a45
...
@@ -93,13 +93,13 @@ public class Key implements Comparable<Key> {
...
@@ -93,13 +93,13 @@ public class Key implements Comparable<Key> {
/** Icon to display instead of a label. Icon takes precedence over a label */
/** Icon to display instead of a label. Icon takes precedence over a label */
private
final
int
mIconId
;
private
final
int
mIconId
;
/** Width of the key,
not in
cluding the gap */
/** Width of the key,
ex
cluding the gap */
private
final
int
mWidth
;
private
final
int
mWidth
;
/** Height of the key,
not in
cluding the gap */
/** Height of the key,
ex
cluding the gap */
private
final
int
mHeight
;
private
final
int
mHeight
;
/** X coordinate of the key in the keyboard layout */
/** X coordinate of the
top-left corner of the
key in the keyboard layout
, excluding the gap.
*/
private
final
int
mX
;
private
final
int
mX
;
/** Y coordinate of the key in the keyboard layout */
/** Y coordinate of the
top-left corner of the
key in the keyboard layout
, excluding the gap.
*/
private
final
int
mY
;
private
final
int
mY
;
/** Hit bounding box of the key */
/** Hit bounding box of the key */
private
final
Rect
mHitBox
=
new
Rect
();
private
final
Rect
mHitBox
=
new
Rect
();
...
@@ -736,18 +736,34 @@ public class Key implements Comparable<Key> {
...
@@ -736,18 +736,34 @@ public class Key implements Comparable<Key> {
return
iconSet
.
getIconDrawable
(
getIconId
());
return
iconSet
.
getIconDrawable
(
getIconId
());
}
}
/**
* Gets the width of the key in pixels, excluding the gap.
* @return The width of the key in pixels, excluding the gap.
*/
public
int
getWidth
()
{
public
int
getWidth
()
{
return
mWidth
;
return
mWidth
;
}
}
/**
* Gets the height of the key in pixels, excluding the gap.
* @return The height of the key in pixels, excluding the gap.
*/
public
int
getHeight
()
{
public
int
getHeight
()
{
return
mHeight
;
return
mHeight
;
}
}
/**
* Gets the x-coordinate of the top-left corner of the key in pixels, excluding the gap.
* @return The x-coordinate of the top-left corner of the key in pixels, excluding the gap.
*/
public
int
getX
()
{
public
int
getX
()
{
return
mX
;
return
mX
;
}
}
/**
* Gets the y-coordinate of the top-left corner of the key in pixels, excluding the gap.
* @return The y-coordinate of the top-left corner of the key in pixels, excluding the gap.
*/
public
int
getY
()
{
public
int
getY
()
{
return
mY
;
return
mY
;
}
}
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/InputPointers.java
+
6
−
0
View file @
9cf69a45
...
@@ -145,6 +145,12 @@ public final class InputPointers {
...
@@ -145,6 +145,12 @@ public final class InputPointers {
return
mPointerIds
.
getPrimitiveArray
();
return
mPointerIds
.
getPrimitiveArray
();
}
}
/**
* Gets the time each point was registered, in milliseconds, relative to the first event in the
* sequence.
* @return The time each point was registered, in milliseconds, relative to the first event in
* the sequence.
*/
public
int
[]
getTimes
()
{
public
int
[]
getTimes
()
{
if
(
DebugFlags
.
DEBUG_ENABLED
||
DEBUG_TIME
)
{
if
(
DebugFlags
.
DEBUG_ENABLED
||
DEBUG_TIME
)
{
if
(!
isValidTimeStamps
())
{
if
(!
isValidTimeStamps
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment