class Fox::FXPrinter
Describes printer
Printer flags¶ ↑
PRINT_DEST_PAPER-
Send print to paper
PRINT_DEST_FILE-
Send print to file
PRINT_PAGES_ALL-
Print all pages
PRINT_PAGES_EVEN-
Print even pages only
PRINT_PAGES_ODD-
Print odd pages only
PRINT_PAGES_RANGE-
Print range of pages
PRINT_COLLATE_NORMAL-
Normal collate order
PRINT_COLLATE_REVERSED-
Reversed collate order
PRINT_PORTRAIT-
Portrait orientation
PRINT_LANDSCAPE-
Landscape orientation
PRINT_BLACKANDWHITE-
Black and white output
PRINT_COLOR-
Color output
PRINT_NOBOUNDS-
Must determine bounding box
Printer media size¶ ↑
MEDIA_CUSTOM-
Custom paper size
MEDIA_USLETTER-
US Letter size
MEDIA_LEGAL-
US Legal size
MEDIA_A4-
A4
MEDIA_ENVELOPE-
#10 Envelope
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXPrinter(int argc, VALUE *argv, VALUE self) {
FXPrinter *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (FXPrinter *)new FXPrinter();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXPrinter_bottommargin_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","bottommargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->bottommargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Bottom margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_bottommargin_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","bottommargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","bottommargin", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->bottommargin = arg2;
return Qnil;
fail:
return Qnil;
}
Bottom margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_currentpage_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","currentpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->currentpage);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Current page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_currentpage_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","currentpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->currentpage = arg2;
return Qnil;
fail:
return Qnil;
}
Current page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_firstpage_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","firstpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->firstpage);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
First page that can be printed [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_firstpage_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","firstpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->firstpage = arg2;
return Qnil;
fail:
return Qnil;
}
First page that can be printed [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_flags_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","flags", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->flags);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Flags [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_flags_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","flags", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->flags = arg2;
return Qnil;
fail:
return Qnil;
}
Flags [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_frompage_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","frompage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->frompage);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
On output, this is the first page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_frompage_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","frompage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->frompage = arg2;
return Qnil;
fail:
return Qnil;
}
On output, this is the first page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_lastpage_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","lastpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->lastpage);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Last page that can be printed [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_lastpage_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","lastpage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->lastpage = arg2;
return Qnil;
fail:
return Qnil;
}
Last page that can be printed [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_leftmargin_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","leftmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->leftmargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Left margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_leftmargin_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","leftmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","leftmargin", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->leftmargin = arg2;
return Qnil;
fail:
return Qnil;
}
Left margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediaheight_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediaheight", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->mediaheight);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Height of paper in points [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediaheight_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediaheight", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","mediaheight", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->mediaheight = arg2;
return Qnil;
fail:
return Qnil;
}
Height of paper in points [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediasize_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediasize", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->mediasize);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Media size index, one of MEDIA_CUSTOM, MEDIA_USLETTER, MEDIA_LEGAL, MEDIA_A4 or MEDIA_ENVELOPE [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediasize_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediasize", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->mediasize = arg2;
return Qnil;
fail:
return Qnil;
}
Media size index, one of MEDIA_CUSTOM, MEDIA_USLETTER, MEDIA_LEGAL, MEDIA_A4 or MEDIA_ENVELOPE [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediawidth_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediawidth", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->mediawidth);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Width of paper in points (1/72 of an inch) [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_mediawidth_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","mediawidth", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","mediawidth", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->mediawidth = arg2;
return Qnil;
fail:
return Qnil;
}
Width of paper in points (1/72 of an inch) [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_name_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXString 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","name", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = ((arg1)->name);
vresult = to_ruby((&result)->text());
return vresult;
fail:
return Qnil;
}
Printer name [String]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_name_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXString 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","name", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = to_FXString(argv[0]);
if (arg1) (arg1)->name = arg2;
return Qnil;
fail:
return Qnil;
}
Printer name [String]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_numcopies_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","numcopies", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->numcopies);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Number of copies [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_numcopies_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","numcopies", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->numcopies = arg2;
return Qnil;
fail:
return Qnil;
}
Number of copies [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_rightmargin_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","rightmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->rightmargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Right margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_rightmargin_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","rightmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","rightmargin", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->rightmargin = arg2;
return Qnil;
fail:
return Qnil;
}
Right margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_topage_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXuint) ((arg1)->topage);
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
On output, last page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_topage_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXuint 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topage", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
arg2 = NUM2UINT(argv[0]);
if (arg1) (arg1)->topage = arg2;
return Qnil;
fail:
return Qnil;
}
On output, last page to print [Integer]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_topmargin_get(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
result = (FXdouble) ((arg1)->topmargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Top margin [Float]
Source
SWIGINTERN VALUE
_wrap_FXPrinter_topmargin_set(int argc, VALUE *argv, VALUE self) {
FXPrinter *arg1 = (FXPrinter *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 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_FXPrinter, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXPrinter *","topmargin", 1, self ));
}
arg1 = reinterpret_cast< FXPrinter * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","topmargin", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->topmargin = arg2;
return Qnil;
fail:
return Qnil;
}
Top margin [Float]