mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Merge pull request #15 from Tourahi/master
Ability to change the font of the columnlist rows.
This commit is contained in:
commit
b8a82b51a7
@ -980,5 +980,26 @@ function newobject:SetColumnOrder(curid, newid)
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetRowsFont(font)
|
||||
- desc: sets the font of the rows.
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetAllRowsFont(font)
|
||||
local list = self.internals[1]
|
||||
for k, v in ipairs(list.children) do
|
||||
v:SetFont(font)
|
||||
end
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetRowFont(font, id)
|
||||
- desc: sets the font of the row with the provided id.
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetRowFont(font, id)
|
||||
local list = self.internals[1]
|
||||
assert( id >= 1, "The id must be >= 1")
|
||||
list.children[id]:SetFont(font)
|
||||
end
|
||||
|
||||
---------- module end ----------
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user