Write documentation for iced_graphics
This commit is contained in:
parent
45511a442f
commit
2ca7e3c4b0
19 changed files with 271 additions and 19 deletions
|
|
@ -12,6 +12,9 @@ pub enum Antialiasing {
|
|||
}
|
||||
|
||||
impl Antialiasing {
|
||||
/// Returns the amount of samples of the [`Antialiasing`].
|
||||
///
|
||||
/// [`Antialiasing`]: enum.Antialiasing.html
|
||||
pub fn sample_count(self) -> u32 {
|
||||
match self {
|
||||
Antialiasing::MSAAx2 => 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue