Example #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)"));
 }
Example #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"));
 }
Example #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)"));
 }
Example #4
0
 public int GetChildCount()
 {
     return(CPP.ReturnInt("$q->childCount()"));
 }
Example #5
0
 public int GetBufferSize()
 {
     return(CPP.ReturnInt("$q->bufferSize()"));
 }
Example #6
0
 /** Returns DialogResult or ButtonType for MessageDialog. */
 public int Exec()
 {
     return(CPP.ReturnInt("$q->exec();"));
 }
Example #7
0
 public int GetWidth()
 {
     return(CPP.ReturnInt("$q->width()"));
 }
Example #8
0
 public int Count()
 {
     return(CPP.ReturnInt("$q->count()"));
 }
Example #9
0
 public int GetMaximum()
 {
     return(CPP.ReturnInt("$q->maximum()"));
 }
Example #10
0
 public int GetSize()
 {
     return(CPP.ReturnInt("$q->size()"));
 }
Example #11
0
 public int LastIndexOf(T t)
 {
     return(CPP.ReturnInt("$q->lastIndexOf(t)"));
 }
Example #12
0
 public static int Floor(double x)
 {
     return(CPP.ReturnInt("qFloor(x)"));
 }
Example #13
0
 public Orientation GetOrientation()
 {
     return((Orientation)CPP.ReturnInt("$q->orientation()"));
 }
Example #14
0
 public int RefreshRate()
 {
     return(CPP.ReturnInt("$q->refreshRate()"));
 }
Example #15
0
 public int GetSelectedColumn()
 {
     return(CPP.ReturnInt("$q->currentColumn()"));
 }
Example #16
0
 public int GetSelectedRow()
 {
     return(CPP.ReturnInt("$q->currentRow()"));
 }
Example #17
0
 public int RowCount()
 {
     return(CPP.ReturnInt("$q->rowCount()"));
 }
Example #18
0
 public int GetResult()
 {
     return(CPP.ReturnInt("$q->result()"));
 }
Example #19
0
 public static int Ceil(double x)
 {
     return(CPP.ReturnInt("qCeil(x)"));
 }
Example #20
0
 public int GetHour()
 {
     return(CPP.ReturnInt("$q->hour()"));
 }
Example #21
0
 public Alignment GetAlignment()
 {
     return((Alignment)CPP.ReturnInt("(int)$q->alignment()"));
 }
Example #22
0
 public int GetSecond()
 {
     return(CPP.ReturnInt("$q->second()"));
 }
Example #23
0
 public int GetMinimum()
 {
     return(CPP.ReturnInt("$q->minimum()"));
 }
Example #24
0
 public int GetMilliSecond()
 {
     return(CPP.ReturnInt("$q->msec()"));
 }
Example #25
0
 public int GetValue()
 {
     return(CPP.ReturnInt("$q->value()"));
 }
Example #26
0
 public int GetX()
 {
     return(CPP.ReturnInt("$q->x()"));
 }
Example #27
0
 public int GetSelectedIndex()
 {
     return(CPP.ReturnInt("$q->currentIndex()"));
 }
Example #28
0
 public int GetY()
 {
     return(CPP.ReturnInt("$q->y()"));
 }
Example #29
0
 public int GetHeight()
 {
     return(CPP.ReturnInt("$q->height()"));
 }
Example #30
0
 public int GetInterval()
 {
     return(CPP.ReturnInt("$q->notifyInterval()"));
 }