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)")); }
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")); }
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)")); }
public int GetChildCount() { return(CPP.ReturnInt("$q->childCount()")); }
public int GetBufferSize() { return(CPP.ReturnInt("$q->bufferSize()")); }
/** Returns DialogResult or ButtonType for MessageDialog. */ public int Exec() { return(CPP.ReturnInt("$q->exec();")); }
public int GetWidth() { return(CPP.ReturnInt("$q->width()")); }
public int Count() { return(CPP.ReturnInt("$q->count()")); }
public int GetMaximum() { return(CPP.ReturnInt("$q->maximum()")); }
public int GetSize() { return(CPP.ReturnInt("$q->size()")); }
public int LastIndexOf(T t) { return(CPP.ReturnInt("$q->lastIndexOf(t)")); }
public static int Floor(double x) { return(CPP.ReturnInt("qFloor(x)")); }
public Orientation GetOrientation() { return((Orientation)CPP.ReturnInt("$q->orientation()")); }
public int RefreshRate() { return(CPP.ReturnInt("$q->refreshRate()")); }
public int GetSelectedColumn() { return(CPP.ReturnInt("$q->currentColumn()")); }
public int GetSelectedRow() { return(CPP.ReturnInt("$q->currentRow()")); }
public int RowCount() { return(CPP.ReturnInt("$q->rowCount()")); }
public int GetResult() { return(CPP.ReturnInt("$q->result()")); }
public static int Ceil(double x) { return(CPP.ReturnInt("qCeil(x)")); }
public int GetHour() { return(CPP.ReturnInt("$q->hour()")); }
public Alignment GetAlignment() { return((Alignment)CPP.ReturnInt("(int)$q->alignment()")); }
public int GetSecond() { return(CPP.ReturnInt("$q->second()")); }
public int GetMinimum() { return(CPP.ReturnInt("$q->minimum()")); }
public int GetMilliSecond() { return(CPP.ReturnInt("$q->msec()")); }
public int GetValue() { return(CPP.ReturnInt("$q->value()")); }
public int GetX() { return(CPP.ReturnInt("$q->x()")); }
public int GetSelectedIndex() { return(CPP.ReturnInt("$q->currentIndex()")); }
public int GetY() { return(CPP.ReturnInt("$q->y()")); }
public int GetHeight() { return(CPP.ReturnInt("$q->height()")); }
public int GetInterval() { return(CPP.ReturnInt("$q->notifyInterval()")); }