1.7 stuff
The master branch was reverted to 1.7 because it was very unstable (bugs and stuff that wasn't mentioned on the documentation page yet) - features will come back with 2.0 - fixed debug window - fixed flexbox not sending drag events to it's children - small docs updates for 1.7 - removed the examples because the are outdated
This commit is contained in:
28
docs/objects/Textfield/setOffset.md
Normal file
28
docs/objects/Textfield/setOffset.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## setOffset
|
||||
|
||||
### Description
|
||||
|
||||
Sets the offset within a Textfield object, allowing you to adjust the viewable portion of the text.
|
||||
|
||||
### Parameteres
|
||||
|
||||
1. `number` xOffset - The horizontal offset to set within the Textfield
|
||||
2. `number` yOffset - The vertical offset to set within the Textfield
|
||||
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
### Usage
|
||||
|
||||
```lua
|
||||
local basalt = require("basalt")
|
||||
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aTextfield = mainFrame:addTextfield()
|
||||
|
||||
-- Scroll 10 units down vertically
|
||||
aTextfield:setOffset(0, 10)
|
||||
|
||||
basalt.autoUpdate()
|
||||
```
|
||||
Reference in New Issue
Block a user