Move func "win_geom_init" to Rust
This commit is contained in:
parent
4eb62632fa
commit
30b8bd2703
2 changed files with 5 additions and 10 deletions
10
src/geom.c
10
src/geom.c
|
@ -32,16 +32,6 @@ struct WinGeom win_geom_create()
|
||||||
return win_geom;
|
return win_geom;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************
|
|
||||||
* Default init functions *
|
|
||||||
**************************/
|
|
||||||
|
|
||||||
void win_geom_init(const WinGeom win_geom)
|
|
||||||
{
|
|
||||||
basic_geom_init(&win_geom->basic);
|
|
||||||
win_geom->border_width = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************
|
/*****************************
|
||||||
* Argument create functions *
|
* Argument create functions *
|
||||||
*****************************/
|
*****************************/
|
||||||
|
|
|
@ -69,6 +69,11 @@ unsafe extern "C" fn basic_geom_init(basic_geom: &mut geom::BasicGeom) {
|
||||||
*basic_geom = Default::default();
|
*basic_geom = Default::default();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
unsafe extern "C" fn win_geom_init(win_geom: &mut geom::WinGeom) {
|
||||||
|
*win_geom = Default::default();
|
||||||
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
unsafe extern "C" fn position_init_from_args(
|
unsafe extern "C" fn position_init_from_args(
|
||||||
position: *mut geom::Position,
|
position: *mut geom::Position,
|
||||||
|
|
Loading…
Reference in a new issue