Struct dxlib::ext::graph::Graph

source ·
pub struct Graph {
    pub d: bool,
    pub h: i32,
}
Expand description

Graph

Fields§

§d: bool

to be disposed

§h: i32

handle

Implementations§

source§

impl Graph

Graph

source

pub fn make(xsz: i32, ysz: i32, not_use_3d_flag: i32) -> Self

empty instance (for get_draw_screen etc)

  • not_use_3d_flag: default FALSE
source

pub fn load(n: &String) -> Self

load from file

source

pub fn get_draw_screen( &self, l: i32, t: i32, r: i32, b: i32, use_client_flag: i32 )

clipping (use SetRestoreGraphCallback to recover full screen)

  • left, top, right + 1, bottom + 1
  • use_client_flag: default TRUE
source

pub fn draw(&self, x: i32, y: i32, trans: i32)

draw to screen

source

pub fn draw_turn(&self, x: i32, y: i32, trans: i32)

draw turn LR

source

pub fn draw_extend(&self, l: i32, t: i32, r: i32, b: i32, trans: i32)

draw extend

source

pub fn draw_rota( &self, x: i32, y: i32, extrate: f64, angle: f64, trans: i32, reversex: i32, reversey: i32 )

draw rotate

source

pub fn draw_modi( &self, xlt: i32, ylt: i32, xrt: i32, yrt: i32, xrb: i32, yrb: i32, xlb: i32, ylb: i32, trans: i32 )

draw modi

source

pub fn draw_rect( &self, x: i32, y: i32, srcx: i32, srcy: i32, w: i32, h: i32, trans: i32, reversex: i32, reversey: i32 )

draw rect

source

pub fn draw_rect_extend( &self, l: i32, t: i32, r: i32, b: i32, srcx: i32, srcy: i32, w: i32, h: i32, trans: i32 )

draw rect extend

source

pub fn set_to_shader(&self, i: i32)

set to shader

source

pub fn get_size(&self) -> (i32, i32)

get size

Trait Implementations§

source§

impl Drop for Graph

Drop for Graph

source§

fn drop(&mut self)

drop

source§

impl Tr for Graph

Tr for Graph

Auto Trait Implementations§

§

impl Freeze for Graph

§

impl RefUnwindSafe for Graph

§

impl Send for Graph

§

impl Sync for Graph

§

impl Unpin for Graph

§

impl UnwindSafe for Graph

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.