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