[−][src]Struct breadx::auto::xproto::Gcontext
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]
self,
dpy: &mut Display<Conn>,
params: GcParameters
) -> Result<()>
Change the properties of this GC.
pub async fn change_async<Conn: AsyncConnection + Send>(
self,
dpy: &mut Display<Conn>,
params: GcParameters
) -> Result<()>
[src]
self,
dpy: &mut Display<Conn>,
params: GcParameters
) -> Result<()>
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]
self,
dpy: &mut Display<Conn>,
target: Target,
line: &[Segment]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
line: &[Segment]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
line: Segment
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
line: Segment
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangles: &[Rectangle]
) -> Result<()>
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangles: &[Rectangle]
) -> Result<()>
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangle: Rectangle
) -> Result<()>
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangle: Rectangle
) -> Result<()>
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arcs: &[Arc]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arcs: &[Arc]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arc: Arc
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arc: Arc
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
shape: PolyShape,
coordinate_mode: CoordMode,
points: &[Point]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
shape: PolyShape,
coordinate_mode: CoordMode,
points: &[Point]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangles: &[Rectangle]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangles: &[Rectangle]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangle: Rectangle
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
rectangle: Rectangle
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arcs: &[Arc]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arcs: &[Arc]
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arc: Arc
) -> Result
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]
self,
dpy: &mut Display<Conn>,
target: Target,
arc: Arc
) -> Result
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]
self,
dpy: &mut Display<Conn>
) -> Result
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Gcontext
[src]
pub fn cmp(&self, other: &Gcontext) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Gcontext> for Gcontext
[src]
impl PartialOrd<Gcontext> for Gcontext
[src]
pub fn partial_cmp(&self, other: &Gcontext) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Gcontext) -> bool
[src]
pub fn le(&self, other: &Gcontext) -> bool
[src]
pub fn gt(&self, other: &Gcontext) -> bool
[src]
pub fn ge(&self, other: &Gcontext) -> bool
[src]
impl StructuralEq for Gcontext
[src]
impl StructuralPartialEq for Gcontext
[src]
impl XidType for Gcontext
[src]
Auto Trait Implementations
impl RefUnwindSafe for Gcontext
[src]
impl Send for Gcontext
[src]
impl Sync for Gcontext
[src]
impl Unpin for Gcontext
[src]
impl UnwindSafe for Gcontext
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsByteSequence for T where
T: XidType,
[src]
T: XidType,
pub fn size(&Self) -> usize
[src]
pub fn as_bytes(&Self, &mut [u8]) -> usize
[src]
pub fn from_bytes(&[u8]) -> Option<(T, usize)>
[src]
pub fn file_descriptors(&mut self) -> Option<&mut Vec<Fd>>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,