Struct breadx::auto::xproto::Gcontext [−][src]
#[repr(transparent)]pub struct Gcontext { pub xid: XID, }
Fields
xid: XID
Implementations
Change the properties of this GC.
pub fn change_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
params: GcParameters
) -> ExchangeRequestFuture<'_, Dpy, ChangeGcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn change_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy,
params: GcParameters
) -> ExchangeRequestFuture<'_, Dpy, ChangeGcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Change the properties of this GC, async redox.
Draw a set of lines.
pub fn draw_lines_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
line: &[Segment]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolySegmentRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn draw_lines_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
line: &[Segment]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolySegmentRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Draw a set of lines, async redox.
Draw a singular line.
pub fn draw_line_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
line: Segment
) -> ExchangeRequestFuture<'_, Dpy, PolySegmentRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn draw_line_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
line: Segment
) -> ExchangeRequestFuture<'_, Dpy, PolySegmentRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Draw a singular line, async redox.
Draw one or more rectangles to the screen.
pub fn draw_rectangles_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
rectangles: &[Rectangle]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyRectangleRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn draw_rectangles_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
rectangles: &[Rectangle]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyRectangleRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Draw one or more rectangles to the screen, async redox.
Draw a rectangle to the screen.
pub fn draw_rectangle_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
rectangle: Rectangle
) -> ExchangeRequestFuture<'_, Dpy, PolyRectangleRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn draw_rectangle_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
rectangle: Rectangle
) -> ExchangeRequestFuture<'_, Dpy, PolyRectangleRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Draw a rectangle to the screen, async redox.
Draw one or more arcs to the screen.
pub fn draw_arcs_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
arcs: &[Arc]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyArcRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn draw_arcs_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
arcs: &[Arc]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyArcRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Draw one or more arcs to the screen, async redox.
Draw an arc to the screen.
pub fn draw_arc_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
arc: Arc
) -> ExchangeRequestFuture<'_, Dpy, PolyArcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn draw_arc_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
arc: Arc
) -> ExchangeRequestFuture<'_, Dpy, PolyArcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Draw an arc to the screen, async redox.
Fill a polygon specified by the given points.
pub fn fill_polygon_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
shape: PolyShape,
coordinate_mode: CoordMode,
points: &[Point]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, FillPolyRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn fill_polygon_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
shape: PolyShape,
coordinate_mode: CoordMode,
points: &[Point]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, FillPolyRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Fill a polygon specified by the given points, async redox.
Fill a set of one or more rectangles.
pub fn fill_rectangles_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
rectangles: &[Rectangle]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyFillRectangleRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn fill_rectangles_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
rectangles: &[Rectangle]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyFillRectangleRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Fill a set of one or more rectangles, async redox.
Fill a single rectangle.
pub fn fill_rectangle_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
rectangle: Rectangle
) -> ExchangeRequestFuture<'_, Dpy, PolyFillRectangleRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn fill_rectangle_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
rectangle: Rectangle
) -> ExchangeRequestFuture<'_, Dpy, PolyFillRectangleRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Fill a single rectangle, async redox.
Fill a set of one or more arcs.
pub fn fill_arcs_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
arcs: &[Arc]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyFillArcRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]
pub fn fill_arcs_async<'a, Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &'a mut Dpy,
target: Target,
arcs: &[Arc]
) -> EitherFuture<Ready<Result>, ExchangeRequestFuture<'a, Dpy, PolyFillArcRequest>>ⓘNotable traits for EitherFuture<A, B>
impl<A: Future, B: Future<Output = A::Output>> Future for EitherFuture<A, B> type Output = A::Output;
[src]Fill a set of one or more arcs, async redox.
Fill an arc.
pub fn fill_arc_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
arc: Arc
) -> ExchangeRequestFuture<'_, Dpy, PolyFillArcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn fill_arc_async<Dpy: AsyncDisplay + ?Sized, Target: Into<Drawable>>(
self,
dpy: &mut Dpy,
target: Target,
arc: Arc
) -> ExchangeRequestFuture<'_, Dpy, PolyFillArcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Fill an arc, async redox.
Free the memory this GC allocates. Note that this will cause future requests involving this GC to fail.
pub fn free_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy
) -> ExchangeRequestFuture<'_, Dpy, FreeGcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]
pub fn free_async<Dpy: AsyncDisplay + ?Sized>(
self,
dpy: &mut Dpy
) -> ExchangeRequestFuture<'_, Dpy, FreeGcRequest>ⓘNotable traits for ExchangeRequestFuture<'a, D, R>
impl<'a, D: AsyncDisplay + ?Sized, R: Request + Unpin + 'a> Future for ExchangeRequestFuture<'a, D, R> where
R::Reply: Default + Unpin, type Output = Result<R::Reply>;
[src]Free the memory this GC allocates, async redox.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Gcontext
impl UnwindSafe for Gcontext
Blanket Implementations
Get the size needed to store this item in terms of bytes. Higher is better than lower here, since this is mostly used to allocate buffers for items. Read more
If this item has any file descriptors stored within, this function returns them.
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,