Skip to content

flag

Methods

new(...): flag

Type Name Description Default
number... ... Flags to add none

Constructor

1
local font_flag = flag.new(fontflags.antialias, fontflags.dropshadow)

add(flag)

Type Name Description Default
number flag Flag to append none

Appends flag to the list

1
font_flag:add(fontflags.additive)

remove(flag)

Type Name Description Default
number flag Flag to remove none

Removes flag from the list

1
font_flag:remove(fontflags.antialias)

contains(flag): bool

Type Name Description Default
number flag Flag to check none

Returns true if flag is present in the list

1
2
if font_flag:contains(fontflags.additive) then
end

shiftR(amt)

Type Name Description Default
number amt Amount to shift none

Shifts right current flag amt times

1
my_flag:shiftR(5)

shiftL(amt)

Type Name Description Default
number amt Amount to shift none

Shifts left current flag amt times

1
my_flag:shiftL(5)

get(): number

Returns number representation of current flag

1
print(tostring(my_flag:get()))