#[repr(C)]
pub struct FrameAction(u8);
impl FrameAction {
pub fn meta_object(&self) -> *const ::qt_core::meta_object::MetaObject {
unsafe { ::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_metaObject(self as *const ::frame_action::FrameAction) }
}
pub fn new() -> ::cpp_utils::CppBox<::frame_action::FrameAction> {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_new_no_args() };
unsafe { ::cpp_utils::CppBox::new(ffi_result) }
}
pub unsafe fn new_unsafe(parent: *mut ::qt_3d_core::node::Node) -> ::cpp_utils::CppBox<::frame_action::FrameAction> {
let ffi_result = ::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_new_parent(parent);
::cpp_utils::CppBox::new(ffi_result)
}
pub unsafe fn qt_metacall(&mut self,
arg1: ::qt_core::meta_object::Call,
arg2: ::libc::c_int,
arg3: *mut *mut ::libc::c_void)
-> ::libc::c_int {
::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_qt_metacall(self as *mut ::frame_action::FrameAction, arg1, arg2, arg3)
}
pub unsafe fn qt_metacast(&mut self, arg1: *const ::libc::c_char) -> *mut ::libc::c_void {
::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_qt_metacast(self as *mut ::frame_action::FrameAction, arg1)
}
pub unsafe fn tr(s: *const ::libc::c_char, c: *const ::libc::c_char, n: ::libc::c_int) -> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_tr_to_output(s, c, n, &mut object);
object
}
}
pub unsafe fn tr_utf8(s: *const ::libc::c_char,
c: *const ::libc::c_char,
n: ::libc::c_int)
-> ::qt_core::string::String {
{
let mut object: ::qt_core::string::String =
::cpp_utils::new_uninitialized::NewUninitialized::new_uninitialized();
::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_trUtf8_to_output(s, c, n, &mut object);
object
}
}
}
impl ::cpp_utils::CppDeletable for ::frame_action::FrameAction {
fn deleter() -> ::cpp_utils::Deleter<Self> {
::ffi::qt_3d_logic_c_Qt3DLogic_QFrameAction_delete
}
}
pub mod connection {
use ::cpp_utils::StaticCast;
pub struct Signals<'a>(&'a ::frame_action::FrameAction);
pub struct ShareableChanged<'a>(&'a ::frame_action::FrameAction);
impl<'a> ::qt_core::connection::Receiver for ShareableChanged<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2shareableChanged(bool)\0"
}
}
impl<'a> ::qt_core::connection::Signal for ShareableChanged<'a> {}
pub struct Triggered<'a>(&'a ::frame_action::FrameAction);
impl<'a> ::qt_core::connection::Receiver for Triggered<'a> {
type Arguments = (::libc::c_float,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"2triggered(float)\0"
}
}
impl<'a> ::qt_core::connection::Signal for Triggered<'a> {}
impl<'a> Signals<'a> {
pub fn shareable_changed(&self) -> ShareableChanged {
ShareableChanged(self.0)
}
pub fn triggered(&self) -> Triggered {
Triggered(self.0)
}
}
pub struct Slots<'a>(&'a ::frame_action::FrameAction);
pub struct SetShareable<'a>(&'a ::frame_action::FrameAction);
impl<'a> ::qt_core::connection::Receiver for SetShareable<'a> {
type Arguments = (bool,);
fn object(&self) -> &::qt_core::object::Object {
self.0.static_cast()
}
fn receiver_id() -> &'static [u8] {
b"1setShareable(bool)\0"
}
}
impl<'a> Slots<'a> {
pub fn set_shareable(&self) -> SetShareable {
SetShareable(self.0)
}
}
impl ::frame_action::FrameAction {
pub fn signals(&self) -> Signals {
Signals(self)
}
pub fn slots(&self) -> Slots {
Slots(self)
}
}
}
impl ::cpp_utils::StaticCast<::qt_3d_core::component::Component> for ::frame_action::FrameAction {
fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::component::Component {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QComponent_ptr(self as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_3d_core::component::Component {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QComponent_ptr(self as *const ::frame_action::FrameAction as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::qt_3d_core::node::Node> for ::frame_action::FrameAction {
fn static_cast_mut(&mut self) -> &mut ::qt_3d_core::node::Node {
let ffi_result =
unsafe {
::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QNode_ptr(self as *mut ::frame_action::FrameAction)
};
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_3d_core::node::Node {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QNode_ptr(self as *const ::frame_action::FrameAction as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::StaticCast<::qt_core::object::Object> for ::frame_action::FrameAction {
fn static_cast_mut(&mut self) -> &mut ::qt_core::object::Object {
let ffi_result =
unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_QObject_ptr(self as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
fn static_cast(&self) -> &::qt_core::object::Object {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_QObject_ptr(self as *const ::frame_action::FrameAction as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::frame_action::FrameAction> for ::qt_core::object::Object {
unsafe fn static_cast_mut(&mut self) -> &mut ::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_QObject(self as *mut ::qt_core::object::Object);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_QObject(self as *const ::qt_core::object::Object as *mut ::qt_core::object::Object);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::frame_action::FrameAction> for ::qt_3d_core::component::Component {
unsafe fn static_cast_mut(&mut self) -> &mut ::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_Qt3DCore_QComponent(self as *mut ::qt_3d_core::component::Component);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_Qt3DCore_QComponent(self as *const ::qt_3d_core::component::Component as *mut ::qt_3d_core::component::Component);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::cpp_utils::UnsafeStaticCast<::frame_action::FrameAction> for ::qt_3d_core::node::Node {
unsafe fn static_cast_mut(&mut self) -> &mut ::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_Qt3DCore_QNode(self as *mut ::qt_3d_core::node::Node);
ffi_result.as_mut().expect("Attempted to convert null pointer to reference")
}
unsafe fn static_cast(&self) -> &::frame_action::FrameAction {
let ffi_result = ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DLogic_QFrameAction_ptr_Qt3DCore_QNode(self as *const ::qt_3d_core::node::Node as *mut ::qt_3d_core::node::Node);
ffi_result.as_ref().expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::Deref for ::frame_action::FrameAction {
type Target = ::qt_3d_core::component::Component;
fn deref(&self) -> &::qt_3d_core::component::Component {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QComponent_ptr(self as *const ::frame_action::FrameAction as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_ref() }.expect("Attempted to convert null pointer to reference")
}
}
impl ::std::ops::DerefMut for ::frame_action::FrameAction {
fn deref_mut(&mut self) -> &mut ::qt_3d_core::component::Component {
let ffi_result = unsafe { ::ffi::qt_3d_logic_c_QFrameAction_G_static_cast_Qt3DCore_QComponent_ptr(self as *mut ::frame_action::FrameAction) };
unsafe { ffi_result.as_mut() }.expect("Attempted to convert null pointer to reference")
}
}