-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from ZhuJHua/dev
Merge dev to master
- Loading branch information
Showing
79 changed files
with
7,619 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
rust_input: crate::api | ||
rust_root: rust/ | ||
dart_output: lib/src/rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// This file is automatically generated, so please do not edit it. | ||
// @generated by `flutter_rust_bridge`@ 2.6.0. | ||
|
||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import | ||
|
||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; | ||
|
||
import '../frb_generated.dart'; | ||
import 'constants.dart'; | ||
|
||
// These functions are ignored because they are not marked as `pub`: `calculate_target_dimensions`, `load_image` | ||
|
||
Future<Uint8List> compress( | ||
{required DynamicImage img, | ||
required int dstHeight, | ||
required int dstWidth, | ||
required CompressFormat compressFormat, | ||
required int quality}) => | ||
RustLib.instance.api.crateApiCompressCompress( | ||
img: img, dstHeight: dstHeight, dstWidth: dstWidth, compressFormat: compressFormat, quality: quality); | ||
|
||
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DynamicImage>> | ||
abstract class DynamicImage implements RustOpaqueInterface {} | ||
|
||
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<ImageCompress>> | ||
abstract class ImageCompress implements RustOpaqueInterface { | ||
static Future<Uint8List> contain( | ||
{required String filePath, CompressFormat? compressFormat, int? maxWidth, int? maxHeight, int? quality}) => | ||
RustLib.instance.api.crateApiCompressImageCompressContain( | ||
filePath: filePath, | ||
compressFormat: compressFormat, | ||
maxWidth: maxWidth, | ||
maxHeight: maxHeight, | ||
quality: quality); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is automatically generated, so please do not edit it. | ||
// @generated by `flutter_rust_bridge`@ 2.6.0. | ||
|
||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import | ||
|
||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; | ||
|
||
import '../frb_generated.dart'; | ||
|
||
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_receiver_is_total_eq`, `eq` | ||
|
||
enum CompressFormat { | ||
jpeg, | ||
webP, | ||
png, | ||
; | ||
} |
Oops, something went wrong.