extend setSheetOffset to accept an optional 2nd offset
This commit is contained in:
parent
eaacbc86c7
commit
7d93642f42
4 changed files with 7 additions and 16 deletions
|
@ -371,12 +371,10 @@ std::vector<int> Window::GetMaximumSize() {
|
|||
return result;
|
||||
}
|
||||
|
||||
void Window::SetSheetOffset(double offsetY) {
|
||||
window_->SetSheetOffset(offsetY);
|
||||
}
|
||||
|
||||
void Window::SetSheetOffsets(double offsetX, double offsetY) {
|
||||
window_->SetSheetOffsets(offsetX, offsetY);
|
||||
void Window::SetSheetOffset(double offsetY, mate::Arguments* args) {
|
||||
double offsetX = 0.0;
|
||||
args->GetNext(&offsetX);
|
||||
window_->SetSheetOffset(offsetX, offsetY);
|
||||
}
|
||||
|
||||
void Window::SetResizable(bool resizable) {
|
||||
|
@ -686,7 +684,6 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("setMaximumSize", &Window::SetMaximumSize)
|
||||
.SetMethod("getMaximumSize", &Window::GetMaximumSize)
|
||||
.SetMethod("setSheetOffset", &Window::SetSheetOffset)
|
||||
.SetMethod("setSheetOffsets", &Window::SetSheetOffsets)
|
||||
.SetMethod("setResizable", &Window::SetResizable)
|
||||
.SetMethod("isResizable", &Window::IsResizable)
|
||||
.SetMethod("setMovable", &Window::SetMovable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue