MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / isDragRegion

Method isDragRegion

CodenameOne/src/com/codename1/ui/Form.java:1053–1067  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

1051 ///
1052 /// this method was replaced by getDragRegionStatus
1053 @Override
1054 public boolean isDragRegion(int x, int y) {
1055 if (getMenuBar().isDragRegion(x, y)) {
1056 return true;
1057 }
1058 if (formLayeredPane != null && formLayeredPane.isDragRegion(x, y)) {
1059 return true;
1060 }
1061 Container actual = getActualPane();
1062 Component c = actual.getComponentAt(x, y);
1063 while (c != null && c.isIgnorePointerEvents()) {
1064 c = c.getParent();
1065 }
1066 return c != null && c.isDragRegion(x, y);
1067 }
1068
1069 /// Indicates if the section within the X/Y area is a "drag region" where
1070 /// we expect people to drag or press in which case we

Callers 1

testDragRegionMethod · 0.45

Calls 6

getMenuBarMethod · 0.95
getActualPaneMethod · 0.95
getComponentAtMethod · 0.95
isIgnorePointerEventsMethod · 0.95
getParentMethod · 0.95
isDragRegionMethod · 0.95

Tested by 1

testDragRegionMethod · 0.36