class Fox::FXStatusBar
Status bar
Status bar options¶ ↑
STATUSBAR_WITH_DRAGCORNER-
Causes the drag corner to be shown
Attributes
If true, the drag corner is shown [Boolean]
The drag corner widget {FXDragCorner}
The status line widget {FXStatusLine}
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXStatusBar(int argc, VALUE *argv, VALUE self) {
FXComposite *arg1 = (FXComposite *) 0 ;
FXuint arg2 = (FXuint) 0 ;
FXint arg3 = (FXint) 0 ;
FXint arg4 = (FXint) 0 ;
FXint arg5 = (FXint) 0 ;
FXint arg6 = (FXint) 0 ;
FXint arg7 = (FXint) 3 ;
FXint arg8 = (FXint) 3 ;
FXint arg9 = (FXint) 2 ;
FXint arg10 = (FXint) 2 ;
FXint arg11 = (FXint) 4 ;
FXint arg12 = (FXint) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXStatusBar *result = 0 ;
if ((argc < 1) || (argc > 12)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXStatusBar", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXComposite * >(argp1);
if (argc > 1) {
arg2 = NUM2UINT(argv[1]);
}
if (argc > 2) {
arg3 = NUM2INT(argv[2]);
}
if (argc > 3) {
arg4 = NUM2INT(argv[3]);
}
if (argc > 4) {
arg5 = NUM2INT(argv[4]);
}
if (argc > 5) {
arg6 = NUM2INT(argv[5]);
}
if (argc > 6) {
arg7 = NUM2INT(argv[6]);
}
if (argc > 7) {
arg8 = NUM2INT(argv[7]);
}
if (argc > 8) {
arg9 = NUM2INT(argv[8]);
}
if (argc > 9) {
arg10 = NUM2INT(argv[9]);
}
if (argc > 10) {
arg11 = NUM2INT(argv[10]);
}
if (argc > 11) {
arg12 = NUM2INT(argv[11]);
}
{
if (!arg1) {
SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
}
}
{
result = (FXStatusBar *)new_FXStatusBar(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
if(rb_block_given_p()){
rb_yield(self);
}
}
return self;
fail:
return Qnil;
}
Source
# File lib/fox16/kwargs.rb, line 2241 def initialize(p, *args, &blk) argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing} default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => 4, :vSpacing => 0 } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i].intern] = e } if params.key? :padding value = params.delete(:padding) [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value } end params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) } params = default_params.merge(params) old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk) end
Also aliased as: old_initialize
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_canFocus(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","canFocus", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (bool)FXStatusBar_canFocus((FXStatusBar const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_changeFocus(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXWindow *arg2 = (FXWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","changeFocus", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","changeFocus", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXWindow * >(argp2);
FXStatusBar_changeFocus(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_clearShape(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","clearShape", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_clearShape(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_contains(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","contains", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (bool)FXStatusBar_contains((FXStatusBar const *)arg1,arg2,arg3);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_create(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","create", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_create(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_destroy(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_destroy(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_detach(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","detach", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_detach(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_disable(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","disable", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_disable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_doesSaveUnder(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","doesSaveUnder", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (bool)FXStatusBar_doesSaveUnder((FXStatusBar const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_dropDisable(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","dropDisable", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_dropDisable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_dropEnable(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","dropEnable", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_dropEnable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_enable(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","enable", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_enable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getCornerStyle(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","getCornerStyle", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (FXbool)((FXStatusBar const *)arg1)->getCornerStyle();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getDefaultHeight(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","getDefaultHeight", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (FXint)FXStatusBar_getDefaultHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getDefaultWidth(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","getDefaultWidth", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (FXint)FXStatusBar_getDefaultWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getDragCorner(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXDragCorner *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","getDragCorner", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (FXDragCorner *)((FXStatusBar const *)arg1)->getDragCorner();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXDragCorner, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getHeightForWidth(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","getHeightForWidth", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXStatusBar_getHeightForWidth(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getStatusLine(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXStatusLine *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","getStatusLine", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (FXStatusLine *)((FXStatusBar const *)arg1)->getStatusLine();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXStatusLine, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_getWidthForHeight(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","getWidthForHeight", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXStatusBar_getWidthForHeight(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_hide(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","hide", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_hide(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_isComposite(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","isComposite", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
result = (bool)FXStatusBar_isComposite((FXStatusBar const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_killFocus(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","killFocus", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_killFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_layout(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","layout", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_layout(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_load(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXStream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","load", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0]));
}
arg2 = reinterpret_cast< FXStream * >(argp2);
FXStatusBar_load(arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_lower(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","lower", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_lower(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_move(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","move", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXStatusBar_move(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_position(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","position", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXStatusBar_position(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_raiseWindow(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","raise", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_raise(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_recalc(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","recalc", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_recalc(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_reparent(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXWindow *arg2 = (FXWindow *) 0 ;
FXWindow *arg3 = (FXWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","reparent", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","reparent", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXWindow * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXWindow *","reparent", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXWindow * >(argp3);
FXStatusBar_reparent(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_resize(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","resize", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXStatusBar_resize(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_save(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXStream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","save", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0]));
}
arg2 = reinterpret_cast< FXStream * >(argp2);
FXStatusBar_save((FXStatusBar const *)arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_setBackColor(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXColor arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","setBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = to_FXColor(argv[0]);
FXStatusBar_setBackColor(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_setCornerStyle(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXbool arg2 = (FXbool) 1 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","setCornerStyle", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
(arg1)->setCornerStyle(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_setDefault(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXbool arg2 = (FXbool) 1 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","setDefault", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
FXStatusBar_setDefault(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_setFocus(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","setFocus", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_setFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXStatusBar_setShape(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXStatusBar, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRegion, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXStatusBar_setShape__SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXStatusBar, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXStatusBar_setShape__SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXStatusBar, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXStatusBar_setShape__SWIG_2(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "setShape",
" void setShape(FXRegion const ®ion)\n"
" void setShape(FXBitmap *bitmap)\n"
" void setShape(FXIcon *icon)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_show(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar *","show", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
FXStatusBar_show(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXStatusBar_tr(int argc, VALUE *argv, VALUE self) {
FXStatusBar *arg1 = (FXStatusBar *) 0 ;
FXchar *arg2 = (FXchar *) 0 ;
FXchar *arg3 = (FXchar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXchar *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXStatusBar, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXStatusBar const *","tr", 1, self ));
}
arg1 = reinterpret_cast< FXStatusBar * >(argp1);
arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]);
if (argc > 1) {
arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]);
}
result = (FXchar *)FXStatusBar_tr((FXStatusBar const *)arg1,(char const *)arg2,(char const *)arg3);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}