[−][src]Struct gdnative::init::ClassBuilder
Implementations
impl<C> ClassBuilder<C> where
C: NativeClass,
[src]
C: NativeClass,
pub fn add_method_advanced(&self, method: ScriptMethod)
[src]
pub fn add_method(
&self,
name: &str,
method: unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void, i32, *mut *mut godot_variant) -> godot_variant
)
[src]
&self,
name: &str,
method: unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void, i32, *mut *mut godot_variant) -> godot_variant
)
pub fn add_property<T>(
&'a self,
name: &'a str
) -> PropertyBuilder<'a, C, T, InvalidSetter<'a>, InvalidGetter<'a>> where
T: Export,
[src]
&'a self,
name: &'a str
) -> PropertyBuilder<'a, C, T, InvalidSetter<'a>, InvalidGetter<'a>> where
T: Export,
Returns a PropertyBuilder
which can be used to add a property to the class being
registered.
Examples
Basic usage:
ⓘThis example is not tested
builder .add_property("foo") .default(0.0) .with_hint((-10.0..=30.0).into()) .with_getter(MyType::get_foo) .with_setter(MyType::set_foo) .done();
pub fn add_signal(&self, signal: Signal)
[src]
Trait Implementations
impl<C> Debug for ClassBuilder<C> where
C: Debug,
[src]
C: Debug,
Auto Trait Implementations
impl<C> RefUnwindSafe for ClassBuilder<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> !Send for ClassBuilder<C>
impl<C> !Sync for ClassBuilder<C>
impl<C> Unpin for ClassBuilder<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for ClassBuilder<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,