Home
last modified time | relevance | path

Searched refs:Coord (Results 1 – 25 of 56) sorted by relevance

123

/external/rust/crates/plotters/src/element/
Dpoints.rs12 pub trait PointElement<Coord, Size: SizeDesc> {
19 fn make_point(pos: Coord, size: Size, style: ShapeStyle) -> Self; in make_point() argument
27 pub struct Cross<Coord, Size: SizeDesc> {
28 center: Coord,
33 impl<Coord, Size: SizeDesc> Cross<Coord, Size> {
39 pub fn new<T: Into<ShapeStyle>>(coord: Coord, size: Size, style: T) -> Self { in new() argument
48 impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a Cross<Coord, Size> {
49 type Point = &'a Coord;
50 type IntoIter = std::iter::Once<&'a Coord>;
51 fn point_iter(self) -> std::iter::Once<&'a Coord> { in point_iter() argument
[all …]
Dbasic_shapes.rs10 pub struct Pixel<Coord> {
11 pos: Coord,
15 impl<Coord> Pixel<Coord> {
21 pub fn new<P: Into<Coord>, S: Into<ShapeStyle>>(pos: P, style: S) -> Self { in new() argument
29 impl<'a, Coord> PointCollection<'a, Coord> for &'a Pixel<Coord> {
30 type Point = &'a Coord;
31 type IntoIter = std::iter::Once<&'a Coord>;
37 impl<Coord, DB: DrawingBackend> Drawable<DB> for Pixel<Coord> {
73 pub type Path<Coord> = PathElement<Coord>;
76 pub struct PathElement<Coord> {
[all …]
Dcomposable.rs36 pub struct EmptyElement<Coord, DB: DrawingBackend> {
37 coord: Coord,
41 impl<Coord, DB: DrawingBackend> EmptyElement<Coord, DB> {
47 pub fn at(coord: Coord) -> Self { in at()
55 impl<Coord, Other, DB: DrawingBackend> Add<Other> for EmptyElement<Coord, DB>
60 type Output = BoxedElement<Coord, DB, Other>;
70 impl<'a, Coord, DB: DrawingBackend> PointCollection<'a, Coord> for &'a EmptyElement<Coord, DB> {
71 type Point = &'a Coord;
72 type IntoIter = Once<&'a Coord>;
78 impl<Coord, DB: DrawingBackend> Drawable<DB> for EmptyElement<Coord, DB> {
[all …]
Dtext.rs10 pub struct Text<'a, Coord, T: Borrow<str>> {
12 coord: Coord,
16 impl<'a, Coord, T: Borrow<str>> Text<'a, Coord, T> {
22 pub fn new<S: Into<TextStyle<'a>>>(text: T, points: Coord, style: S) -> Self { in new() argument
31 impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord> for &'a Text<'b, Coord, T> {
32 type Point = &'a Coord;
33 type IntoIter = std::iter::Once<&'a Coord>;
39 impl<'a, Coord: 'a, DB: DrawingBackend, T: Borrow<str>> Drawable<DB> for Text<'a, Coord, T> {
55 pub struct MultiLineText<'a, Coord, T: Borrow<str>> {
57 coord: Coord,
[all …]
Ddynelem.rs27 pub struct DynElement<'a, DB, Coord>
30 Coord: Clone,
32 points: Vec<Coord>,
36 impl<'a, 'b: 'a, DB: DrawingBackend, Coord: Clone> PointCollection<'a, Coord>
37 for &'a DynElement<'b, DB, Coord>
39 type Point = &'a Coord;
40 type IntoIter = &'a Vec<Coord>;
46 impl<'a, DB: DrawingBackend, Coord: Clone> Drawable<DB> for DynElement<'a, DB, Coord> {
59 pub trait IntoDynElement<'a, DB: DrawingBackend, Coord: Clone>
64 fn into_dyn(self) -> DynElement<'a, DB, Coord>; in into_dyn() argument
[all …]
Dimage.rs63 pub struct BitMapElement<'a, Coord, P: PixelFormat = RGBPixel> {
66 pos: Coord,
70 impl<'a, Coord, P: PixelFormat> BitMapElement<'a, Coord, P> {
76 pub fn new(pos: Coord, size: (u32, u32)) -> Self { in new() argument
93 pub fn with_owned_buffer(pos: Coord, size: (u32, u32), buf: Vec<u8>) -> Option<Self> { in with_owned_buffer() argument
113 pub fn with_mut(pos: Coord, size: (u32, u32), buf: &'a mut [u8]) -> Option<Self> { in with_mut() argument
134 pub fn with_ref(pos: Coord, size: (u32, u32), buf: &'a [u8]) -> Option<Self> { in with_ref() argument
162 pub fn move_to(&mut self, pos: Coord) { in move_to() argument
177 impl<'a, Coord> From<(Coord, DynamicImage)> for BitMapElement<'a, Coord, RGBPixel> {
178 fn from((pos, image): (Coord, DynamicImage)) -> Self { in from() argument
[all …]
Dmod.rs232 pub trait PointCollection<'a, Coord, CM = BackendCoordOnly> {
234 type Point: Borrow<Coord> + 'a;
/external/rust/crates/plotters/src/series/
Dpoint_series.rs6 pub struct PointSeries<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> {
10 make_point: &'a dyn Fn(Coord, Size, ShapeStyle) -> E,
13 impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone> Iterator
14 for PointSeries<'a, Coord, I, E, Size>
24 impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone>
25 PointSeries<'a, Coord, I, E, Size>
27 E: PointElement<Coord, Size>,
42 impl<'a, Coord, I: IntoIterator<Item = Coord>, E, Size: SizeDesc + Clone>
43 PointSeries<'a, Coord, I, E, Size>
48 pub fn of_element<S: Into<ShapeStyle>, F: Fn(Coord, Size, ShapeStyle) -> E>( in of_element() argument
Dline_series.rs32 pub struct LineSeries<DB: DrawingBackend, Coord> {
34 data: Vec<Coord>,
40 impl<DB: DrawingBackend, Coord: Clone + 'static> Iterator for LineSeries<DB, Coord> {
41 type Item = DynElement<'static, DB, Coord>;
61 impl<DB: DrawingBackend, Coord> LineSeries<DB, Coord> {
67 pub fn new<I: IntoIterator<Item = Coord>, S: Into<ShapeStyle>>(iter: I, style: S) -> Self { in new()
/external/skia/src/shaders/
DSkEmptyShader.cpp31 skvm::Coord,
32 skvm::Coord,
47 skvm::Coord, in program() argument
48 skvm::Coord, in program()
DSkColorShader.cpp68 skvm::Coord device,
69 skvm::Coord local,
104 skvm::Coord device,
105 skvm::Coord local,
189 skvm::Coord /*device*/, in program() argument
190 skvm::Coord /*local*/, in program()
202 skvm::Coord /*device*/, in program() argument
203 skvm::Coord /*local*/, in program()
DSkShaderBase.h237 skvm::Coord* local, // inout
409 skvm::Coord device,
422 skvm::Coord device,
423 skvm::Coord local,
471 static skvm::Coord ApplyMatrix(skvm::Builder*, const SkMatrix&, skvm::Coord, skvm::Uniforms*);
DSkTransformShader.cpp18 skvm::Coord device, in program()
19 skvm::Coord local, in program()
60 skvm::Coord newLocal = {x, y}; in program()
DSkCoordClampShader.cpp41 skvm::Coord device,
42 skvm::Coord local,
86 skvm::Coord device, in program()
87 skvm::Coord local, in program()
DSkLocalMatrixShader.cpp105 skvm::Coord device, in program()
106 skvm::Coord local, in program()
174 skvm::Coord device, in program()
175 skvm::Coord local, in program()
DSkTransformShader.h27 skvm::Coord device,
28 skvm::Coord local,
DSkColorFilterShader.h36 skvm::Coord device,
37 skvm::Coord local,
DSkComposeShader.cpp52 skvm::Coord device,
53 skvm::Coord local,
143 skvm::Coord device, in program()
144 skvm::Coord local, in program()
DSkPictureShader.h47 skvm::Coord device,
48 skvm::Coord local,
DSkImageShader.h82 skvm::Coord device,
83 skvm::Coord local,
DSkLocalMatrixShader.h64 skvm::Coord device,
65 skvm::Coord local,
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dfunctions.inl22 tvec2<T, P> const& Coord, argument
27 …tvec2<T, P> const Squared = ((Coord - ExpectedValue) * (Coord - ExpectedValue)) / (static_cast<T>(…
/external/skia/src/sksl/codegen/
DSkSLVMCodeGenerator.h27 virtual skvm::Color sampleShader(int index, skvm::Coord coord) = 0;
41 skvm::Coord device,
42 skvm::Coord local,
/external/skia/src/shaders/gradients/
DSkGradientShaderBase.h104 skvm::Coord device,
105 skvm::Coord local,
117 skvm::Coord coord, skvm::I32* mask) const = 0;
/external/llvm/lib/Target/AMDGPU/
DR600Intrinsics.td25 llvm_v4f32_ty, // Coord
38 llvm_v4i32_ty, // Coord

123