Home | History | Annotate | Download | only in layout

Lines Matching defs:grid

49 import com.android.ide.common.layout.grid.GridDropHandler;
50 import com.android.ide.common.layout.grid.GridLayoutPainter;
51 import com.android.ide.common.layout.grid.GridModel;
78 * The size of the visual regular grid that we snap to (if {@link #sSnapToGrid} is set
92 * grid mode)
127 * Whether the IDE should show diagnostics for debugging the grid layout - including
132 /** Whether the structure (grid model) should be displayed persistently to the user */
135 /** Whether the drop positions should snap to a regular grid */
139 * Whether the grid is edited in "grid mode" where the operations are row/column based
196 GridModel grid = new GridModel(mRulesEngine, parentNode, null);
198 grid.addRow(children);
200 grid.removeRows(children);
202 grid.addColumn(children);
204 grid.removeColumns(children);
214 actions.add(RuleAction.createToggle(ACTION_GRID_MODE, "Grid Model Mode",
217 // Add and Remove Column actions only apply in Grid Mode
241 // Snap to Grid and Show Structure are only relevant in free form mode
242 actions.add(RuleAction.createToggle(ACTION_SNAP, "Snap to Grid",
339 * preference when added to a grid layout
372 GridModel grid = new GridModel(mRulesEngine, parent, null);
378 grid.markDeleted(child);
381 grid.cleanup();
387 GridModel grid = getGrid(state);
388 GridLayoutPainter.paintResizeFeedback(gc, state.layout, grid);
394 GridModel grid = getGrid(state);
395 int startColumn = grid.getColumn(state.bounds.x);
396 int endColumn = grid.getColumn(state.bounds.x2());
399 int startRow = grid.getRow(state.bounds.y);
400 int endRow = grid.getRow(state.bounds.y2());
403 Rect cellBounds = grid.getCellBounds(startRow, startColumn, rowSpan, columnSpan);
409 /** Returns the grid size cached on the given {@link ResizeState} object */
411 GridModel grid = (GridModel) resizeState.clientData;
412 if (grid == null) {
413 grid = new GridModel(mRulesEngine, resizeState.layout, resizeState.layoutView);
414 resizeState.clientData = grid;
417 return grid;
477 GridModel grid = getGrid(state);
479 int startColumn = grid.getColumn(state.bounds.x);
480 int endColumn = grid.getColumn(state.bounds.x2());
483 int startRow = grid.getRow(state.bounds.y);
484 int endRow = grid.getRow(state.bounds.y2());
505 // TODO: Cache the grid
515 GridLayoutPainter.paintStructure(DrawingStyle.GRID,
520 // for for example tweaking the rowspan/colspan of a cell? (but only in grid mode)
529 * into the current grid. This might mean "overwriting" (sitting on top of)
531 * <li> Fill available "holes" in the grid.
571 // grid layout being copied from