Lines Matching refs:width

78      * @param width The width of the atlas in pixels
83 public Atlas(Type type, int width, int height) {
84 this(type, width, height, FLAG_DEFAULTS);
93 * @param width The width of the atlas in pixels
100 public Atlas(Type type, int width, int height, int flags) {
101 mPolicy = findPolicy(type, width, height, flags);
107 * @param width The width of the rectangle to pack in the atlas
115 public Entry pack(int width, int height) {
116 return pack(width, height, null);
122 * @param width The width of the rectangle to pack in the atlas
132 public Entry pack(int width, int height, Entry entry) {
134 return mPolicy.pack(width, height, entry);
137 private static Policy findPolicy(Type type, int width, int height, int flags) {
140 return new SlicePolicy(width, height, flags,
143 return new SlicePolicy(width, height, flags,
146 return new SlicePolicy(width, height, flags,
149 return new SlicePolicy(width, height, flags,
159 abstract Entry pack(int width, int height, Entry entry);
248 int width;
255 return String.format("cell[x=%d y=%d width=%d height=%d", x, y, width, height);
259 SlicePolicy(int width, int height, int flags, SplitDecision splitDecision) {
265 first.width = width - 2 * mPadding;
273 Entry pack(int width, int height, Entry entry) {
278 if (insert(cell, prev, width, height, entry)) {
350 * @param width The width of the rectangle to pack
356 private boolean insert(Cell cell, Cell prev, int width, int height, Entry entry) {
357 if (cell.width < width || cell.height < height) {
362 int deltaWidth = cell.width - width;
369 first.x = cell.x + width + mPadding;
371 first.width = deltaWidth - mPadding;
378 width, height)) {
380 second.width = cell.width;
383 second.width = width;
394 if (first.width > 0 && first.height > 0) {
399 if (second.width > 0 && second.height > 0) {