Home | History | Annotate | Download | only in ui

Lines Matching defs:GLView

30 // GLView is a UI component. It can render to a GLCanvas and accept touch
31 // events. A GLView may have zero or more child GLView and they form a tree
35 // A GLView tree should be attached to a GLRoot before event dispatching and
36 // rendering happens. GLView asks GLRoot to re-render or re-layout the
37 // GLView hierarchy using requestRender() and requestLayoutContentPane().
42 // from main thread (like a Handler) in your GLView, you need to call
45 public class GLView {
46 private static final String TAG = "GLView";
56 void onClick(GLView v);
63 protected GLView mParent;
64 private ArrayList<GLView> mComponents;
65 private GLView mMotionTarget;
96 // Sets the visiblity of this GLView (either GLView.VISIBLE or
97 // GLView.INVISIBLE).
109 // Returns GLView.VISIBLE or GLView.INVISIBLE
114 // This should only be called on the content pane (the topmost GLView).
120 // This should only be called on the content pane (the topmost GLView).
126 // Returns the number of children of the GLView.
132 public GLView getComponent(int index) {
139 // Adds a child to this GLView.
140 public void addComponent(GLView component) {
146 mComponents = new ArrayList<GLView>();
157 // Removes a child from this GLView.
158 public boolean removeComponent(GLView component) {
167 // Removes all children of this GLView.
175 private void removeOneComponent(GLView component) {
267 protected void renderChild(GLCanvas canvas, GLView component) {
268 if (component.getVisibility() != GLView.VISIBLE
296 int x, int y, GLView component, boolean checkBounds) {
333 GLView component = getComponent(i);
334 if (component.getVisibility() != GLView.VISIBLE) continue;
406 public boolean getBoundsOf(GLView descendant, Rect out) {
409 GLView view = descendant;
424 GLView child = getComponent(i);
425 if (child.getVisibility() == GLView.VISIBLE) {