Sha256: eee29e17d74099e1a8cfaa74ec18dd0869ea290796401d8fb771f9e393a5542e
Contents?: true
Size: 1.67 KB
Versions: 18
Compression:
Stored size: 1.67 KB
Contents
#include "stdafx.h" #include "MainWindow.h" #include "NativeToolbarExt.h" extern CMainWindow& getAppWindow(); extern "C" { void remove_native_toolbar(); void create_native_toolbar(int bar_type, rho_param *p) { if ( bar_type == NOBAR_TYPE ) remove_native_toolbar(); else if ( bar_type == TOOLBAR_TYPE ) { getAppWindow().performOnUiThread(new CNativeToolbar::CCreateTask(p) ); }else { RAWLOGC_ERROR("NativeBar", "Only Toolbar control is supported."); } } void create_nativebar(int bar_type, rho_param *p) { RAWLOGC_INFO("NativeBar", "NativeBar.create() is DEPRECATED. Use Rho::NativeToolbar.create() or Rho::NativeTabbar.create()."); create_native_toolbar(bar_type, p); } void remove_native_toolbar() { getAppWindow().performOnUiThread(new CNativeToolbar::CRemoveTask() ); } void remove_nativebar() { RAWLOGC_INFO("NativeBar", "NativeBar.remove() is DEPRECATED API ! Please use Rho::NativeToolbar.remove() or Rho::NativeTabbar.remove()."); remove_native_toolbar(); } VALUE nativebar_started() { bool bStarted = CNativeToolbar::getInstance().isStarted(); return rho_ruby_create_boolean(bStarted?1:0); } //Tabbar void create_native_tabbar(int bar_type, rho_param *p) { } void remove_native_tabbar() { } void native_tabbar_switch_tab(int index) { } void native_tabbar_set_tab_badge(int index,char *val) { } void nativebar_set_tab_badge(int index,char* val) { } int native_tabbar_get_current_tab() { return 0; } void nativebar_switch_tab(int index) { //TODO: Implement me! } //NavBar - iphone only void create_navbar(rho_param *p) { } void remove_navbar() { } VALUE navbar_started() { return rho_ruby_create_boolean(0); } }
Version data entries
18 entries across 18 versions & 1 rubygems