pub struct Graph {
pub d: bool,
pub h: i32,
}Expand description
Graph
Fields§
§d: boolto be disposed
h: i32handle
Implementations§
source§impl Graph
impl Graph
Graph
sourcepub fn make(xsz: i32, ysz: i32, not_use_3d_flag: i32) -> Self
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
sourcepub fn get_draw_screen(
&self,
l: i32,
t: i32,
r: i32,
b: i32,
use_client_flag: i32
)
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
sourcepub fn draw_rota(
&self,
x: i32,
y: i32,
extrate: f64,
angle: f64,
trans: i32,
reversex: i32,
reversey: i32
)
pub fn draw_rota( &self, x: i32, y: i32, extrate: f64, angle: f64, trans: i32, reversex: i32, reversey: i32 )
draw rotate
sourcepub fn draw_modi(
&self,
xlt: i32,
ylt: i32,
xrt: i32,
yrt: i32,
xrb: i32,
yrb: i32,
xlb: i32,
ylb: i32,
trans: i32
)
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
sourcepub fn draw_rect(
&self,
x: i32,
y: i32,
srcx: i32,
srcy: i32,
w: i32,
h: i32,
trans: i32,
reversex: i32,
reversey: i32
)
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
sourcepub fn draw_rect_extend(
&self,
l: i32,
t: i32,
r: i32,
b: i32,
srcx: i32,
srcy: i32,
w: i32,
h: i32,
trans: i32
)
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
sourcepub fn set_to_shader(&self, i: i32)
pub fn set_to_shader(&self, i: i32)
set to shader
Trait Implementations§
source§impl Tr for Graph
impl Tr for Graph
Tr for Graph
fn as_music(&self) -> Music
fn as_sound(&self) -> Sound
fn as_screen(&self) -> Screen
fn as_vertex_shader(&self) -> VertexShader
fn as_pixel_shader(&self) -> PixelShader
fn as_geometry_shader(&self) -> GeometryShader
fn as_constant_buffer(&self) -> ConstantBuffer
fn as_light(&self) -> Light
fn as_font(&self) -> Font
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more