Lines Matching refs:width

83      * @param width The width of the atlas in pixels
88 public Atlas(Type type, int width, int height) {
89 this(type, width, height, FLAG_DEFAULTS);
98 * @param width The width of the atlas in pixels
105 public Atlas(Type type, int width, int height, int flags) {
106 mPolicy = findPolicy(type, width, height, flags);
112 * @param width The width of the rectangle to pack in the atlas
120 public Entry pack(int width, int height) {
121 return pack(width, height, null);
127 * @param width The width of the rectangle to pack in the atlas
137 public Entry pack(int width, int height, Entry entry) {
139 return mPolicy.pack(width, height, entry);
142 private static Policy findPolicy(Type type, int width, int height, int flags) {
145 return new SlicePolicy(width, height, flags,
148 return new SlicePolicy(width, height, flags,
151 return new SlicePolicy(width, height, flags,
154 return new SlicePolicy(width, height, flags,
164 abstract Entry pack(int width, int height, Entry entry);
254 int width;
261 return String.format("cell[x=%d y=%d width=%d height=%d", x, y, width, height);
265 SlicePolicy(int width, int height, int flags, SplitDecision splitDecision) {
272 first.width = width - 2 * mPadding;
280 Entry pack(int width, int height, Entry entry) {
285 if (insert(cell, prev, width, height, entry)) {
357 * @param width The width of the rectangle to pack
364 private boolean insert(Cell cell, Cell prev, int width, int height, Entry entry) {
369 if (cell.width < width || cell.height < height) {
371 if (cell.width < height || cell.height < width) {
376 int temp = width;
377 width = height;
386 int deltaWidth = cell.width - width;
393 first.x = cell.x + width + mPadding;
395 first.width = deltaWidth - mPadding;
402 width, height)) {
404 second.width = cell.width;
407 second.width = width;
418 if (first.width > 0 && first.height > 0) {
423 if (second.width > 0 && second.height > 0) {