Lines Matching defs:aspect
21 // sizes and (optionally) aspect ratios. A method is provided for finding the
30 // An <aspect ratio, DIP width> pair.
31 // A 0x0 image has aspect ratio 1.0. 0xN and Nx0 images are treated as 0x0.
33 MapKey(float aspect, int width)
34 : std::pair<float, int>(aspect, width) {}
36 float aspect() const { return first; }
123 // Gets an image at the same aspect ratio as |width|:|height|, if possible, or
124 // if not, the closest aspect ratio. Among images of that aspect ratio,
127 // aspect ratio. If there are no images in the family, returns NULL.
131 // Gets an image at the same aspect ratio as |size.width()|:|size.height()|,
132 // if possible, or if not, the closest aspect ratio. Among images of that
133 // aspect ratio, returns the smallest image with both its width and height
135 // image of that aspect ratio. If there are no images in the family, returns
140 // Find the closest aspect ratio in the map to |desired_aspect|.
141 // Ties are broken by the thinner aspect.
145 // Gets an image with aspect ratio |aspect|, at the best size for |width|.
146 // Returns the smallest image of aspect ratio |aspect| with its width bigger
147 // or equal to |width|. If none exists, returns the largest image of aspect
148 // ratio |aspect|. Behavior is undefined if there is not at least one image in
149 // |map_| of aspect ratio |aspect|.
150 const gfx::Image* GetWithExactAspect(float aspect, int width) const;
152 // Map from (aspect ratio, width) to image.