[][src]Struct breadx::auto::xproto::Gcontext

#[repr(transparent)]pub struct Gcontext {
    pub xid: XID,
}

Fields

xid: XID

Implementations

impl Gcontext[src]

pub const fn const_from_xid(xid: XID) -> Self[src]

impl Gcontext[src]

pub fn change<Conn: Connection>(
    self,
    dpy: &mut Display<Conn>,
    params: GcParameters
) -> Result<()>
[src]

Change the properties of this GC.

pub async fn change_async<Conn: AsyncConnection + Send>(
    self,
    dpy: &mut Display<Conn>,
    params: GcParameters
) -> Result<()>
[src]

Change the properties of this GC, async redox.

pub fn draw_lines<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    line: &[Segment]
) -> Result
[src]

Draw a set of lines.

pub async fn draw_lines_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    line: &[Segment]
) -> Result
[src]

Draw a set of lines, async redox.

pub fn draw_line<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    line: Segment
) -> Result
[src]

Draw a singular line.

pub async fn draw_line_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    line: Segment
) -> Result
[src]

Draw a singular line, async redox.

pub fn draw_rectangles<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangles: &[Rectangle]
) -> Result<()>
[src]

Draw one or more rectangles to the screen.

pub async fn draw_rectangles_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangles: &[Rectangle]
) -> Result<()>
[src]

Draw one or more rectangles to the screen, async redox.

pub fn draw_rectangle<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangle: Rectangle
) -> Result<()>
[src]

Draw a rectangle to the screen.

pub async fn draw_rectangle_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangle: Rectangle
) -> Result<()>
[src]

Draw a rectangle to the screen, async redox.

pub fn draw_arcs<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arcs: &[Arc]
) -> Result
[src]

Draw one or more arcs to the screen.

pub async fn draw_arcs_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arcs: &[Arc]
) -> Result
[src]

Draw one or more arcs to the screen, async redox.

pub fn draw_arc<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arc: Arc
) -> Result
[src]

Draw an arc to the screen.

pub async fn draw_arc_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arc: Arc
) -> Result
[src]

Draw an arc to the screen, async redox.

pub fn fill_polygon<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    shape: PolyShape,
    coordinate_mode: CoordMode,
    points: &[Point]
) -> Result
[src]

Fill a polygon specified by the given points.

pub async fn fill_polygon_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    shape: PolyShape,
    coordinate_mode: CoordMode,
    points: &[Point]
) -> Result
[src]

Fill a polygon specified by the given points, async redox.

pub fn fill_rectangles<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangles: &[Rectangle]
) -> Result
[src]

Fill a set of one or more rectangles.

pub async fn fill_rectangles_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangles: &[Rectangle]
) -> Result
[src]

Fill a set of one or more rectangles, async redox.

pub fn fill_rectangle<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangle: Rectangle
) -> Result
[src]

Fill a single rectangle.

pub async fn fill_rectangle_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    rectangle: Rectangle
) -> Result
[src]

Fill a single rectangle, async redox.

pub fn fill_arcs<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arcs: &[Arc]
) -> Result
[src]

Fill a set of one or more arcs.

pub async fn fill_arcs_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arcs: &[Arc]
) -> Result
[src]

Fill a set of one or more arcs, async redox.

pub fn fill_arc<Conn: Connection, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arc: Arc
) -> Result
[src]

Fill an arc.

pub async fn fill_arc_async<Conn: AsyncConnection + Send, Target: Into<Drawable>>(
    self,
    dpy: &mut Display<Conn>,
    target: Target,
    arc: Arc
) -> Result
[src]

Fill an arc, async redox.

pub fn free<Conn: Connection>(self, dpy: &mut Display<Conn>) -> Result[src]

Free the memory this GC allocates. Note that this will cause future requests involving this GC to fail.

pub async fn free_async<Conn: AsyncConnection + Send>(
    self,
    dpy: &mut Display<Conn>
) -> Result
[src]

Free the memory this GC allocates, async redox.

Trait Implementations

impl Clone for Gcontext[src]

impl Copy for Gcontext[src]

impl Debug for Gcontext[src]

impl Default for Gcontext[src]

impl Eq for Gcontext[src]

impl From<Gcontext> for Fontable[src]

impl Hash for Gcontext[src]

impl Ord for Gcontext[src]

impl PartialEq<Gcontext> for Gcontext[src]

impl PartialOrd<Gcontext> for Gcontext[src]

impl StructuralEq for Gcontext[src]

impl StructuralPartialEq for Gcontext[src]

impl XidType for Gcontext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsByteSequence for T where
    T: XidType
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.