示例#1
0
 public int Write(byte[] data, int offset = 0, int length = -1)
 {
     if (length == -1)
     {
         length = data.Length - offset;
     }
     CPP.Add("$check(data, offset, length);");
     return(CPP.ReturnInt("$q->write((char*)data->data() + offset, length)"));
 }
示例#2
0
 public int Write(short[] data, int offset = 0, int length = -1)
 {
     if (length == -1)
     {
         length = data.Length - offset;
     }
     CPP.Add("if ($io == nullptr) return -1;");
     CPP.Add("$check(data, offset, length);");
     return(CPP.ReturnInt("$io->write((char*)data->data() + offset, length * 2) / 2"));
 }
示例#3
0
 public int Read(byte[] data, int offset = 0, int length = -1)
 {
     if (length == -1)
     {
         length = data.Length - offset;
     }
     CPP.Add("if ($io == nullptr) return -1;");
     CPP.Add("$check(data, offset, length);");
     return(CPP.ReturnInt("$io->read((char*)data->data() + offset, length)"));
 }
示例#4
0
 public int GetChildCount()
 {
     return(CPP.ReturnInt("$q->childCount()"));
 }
示例#5
0
 public int GetBufferSize()
 {
     return(CPP.ReturnInt("$q->bufferSize()"));
 }
示例#6
0
 /** Returns DialogResult or ButtonType for MessageDialog. */
 public int Exec()
 {
     return(CPP.ReturnInt("$q->exec();"));
 }
示例#7
0
 public int GetWidth()
 {
     return(CPP.ReturnInt("$q->width()"));
 }
示例#8
0
 public int Count()
 {
     return(CPP.ReturnInt("$q->count()"));
 }
示例#9
0
 public int GetMaximum()
 {
     return(CPP.ReturnInt("$q->maximum()"));
 }
示例#10
0
 public int GetSize()
 {
     return(CPP.ReturnInt("$q->size()"));
 }
示例#11
0
 public int LastIndexOf(T t)
 {
     return(CPP.ReturnInt("$q->lastIndexOf(t)"));
 }
示例#12
0
 public static int Floor(double x)
 {
     return(CPP.ReturnInt("qFloor(x)"));
 }
示例#13
0
 public Orientation GetOrientation()
 {
     return((Orientation)CPP.ReturnInt("$q->orientation()"));
 }
示例#14
0
 public int RefreshRate()
 {
     return(CPP.ReturnInt("$q->refreshRate()"));
 }
示例#15
0
 public int GetSelectedColumn()
 {
     return(CPP.ReturnInt("$q->currentColumn()"));
 }
示例#16
0
 public int GetSelectedRow()
 {
     return(CPP.ReturnInt("$q->currentRow()"));
 }
示例#17
0
 public int RowCount()
 {
     return(CPP.ReturnInt("$q->rowCount()"));
 }
示例#18
0
 public int GetResult()
 {
     return(CPP.ReturnInt("$q->result()"));
 }
示例#19
0
 public static int Ceil(double x)
 {
     return(CPP.ReturnInt("qCeil(x)"));
 }
示例#20
0
 public int GetHour()
 {
     return(CPP.ReturnInt("$q->hour()"));
 }
示例#21
0
 public Alignment GetAlignment()
 {
     return((Alignment)CPP.ReturnInt("(int)$q->alignment()"));
 }
示例#22
0
 public int GetSecond()
 {
     return(CPP.ReturnInt("$q->second()"));
 }
示例#23
0
 public int GetMinimum()
 {
     return(CPP.ReturnInt("$q->minimum()"));
 }
示例#24
0
 public int GetMilliSecond()
 {
     return(CPP.ReturnInt("$q->msec()"));
 }
示例#25
0
 public int GetValue()
 {
     return(CPP.ReturnInt("$q->value()"));
 }
示例#26
0
 public int GetX()
 {
     return(CPP.ReturnInt("$q->x()"));
 }
示例#27
0
 public int GetSelectedIndex()
 {
     return(CPP.ReturnInt("$q->currentIndex()"));
 }
示例#28
0
 public int GetY()
 {
     return(CPP.ReturnInt("$q->y()"));
 }
示例#29
0
 public int GetHeight()
 {
     return(CPP.ReturnInt("$q->height()"));
 }
示例#30
0
 public int GetInterval()
 {
     return(CPP.ReturnInt("$q->notifyInterval()"));
 }