Skip to content

Commit 5a4d017

Browse files
committed
Document context, path, pattern enums
1 parent 5b155d4 commit 5a4d017

File tree

2 files changed

+223
-0
lines changed

2 files changed

+223
-0
lines changed

cairo/src/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ impl Context {
448448
/// ctx.paint()?;
449449
/// # Ok(())
450450
/// # }
451+
/// ```
451452
#[doc(alias = "cairo_set_source")]
452453
pub fn set_source(&self, source: impl AsRef<Pattern>) -> Result<(), Error> {
453454
let source = source.as_ref();
@@ -458,6 +459,7 @@ impl Context {
458459
self.status()
459460
}
460461

462+
/// Returns the current source pattern for this [`Context`].
461463
#[doc(alias = "get_source")]
462464
#[doc(alias = "cairo_get_source")]
463465
pub fn source(&self) -> Pattern {

0 commit comments

Comments
 (0)