…lines 1–144 unchanged (144 lines)
145--- Set the size of a single icon.
146--
147-- If this is set to nil, then the size is picked dynamically based on the
148-- available space. Otherwise, any single icon has a size of `size`x`size`.
149--
150-- @property base_size
151-- @tparam[opt=nil] integer|nil base_size The base size
152-- @propemits true false
153
154function systray:set_base_size(size)
155 base_size = get_args(self, size)
156 if instance then
157 instance:emit_signal("widget::layout_changed")
158 instance:emit_signal("property::base_size", size)
159 end
160end
161
162--- Decide between horizontal or vertical display.
163--
164-- @property horizontal
165-- @tparam[opt=true] boolean horizontal Use horizontal mode?
166-- @propemits true false
167
168function systray:set_horizontal(horiz)
169 horizontal = get_args(self, horiz)
170 if instance then
171 instance:emit_signal("widget::layout_changed")
172 instance:emit_signal("property::horizontal", horiz)
173 end
174end
175
176--- Should the systray icons be displayed in reverse order?
177--
178-- @property reverse
179-- @tparam[opt=false] boolean reverse Display in reverse order.
180-- @propemits true false
181
182function systray:set_reverse(rev)
183 reverse = get_args(self, rev)
184 if instance then
185 instance:emit_signal("widget::redraw_needed")
…lines 186–190 unchanged (5 lines)
191--
192-- This can either be a screen, in which case the systray will be displayed on
193-- exactly that screen, or the string `"primary"`, in which case it will be
194-- visible on the primary screen. The default value is "primary".
195--
196-- @property screen
197-- @tparam[opt=nil] screen|"primary" screen The screen to display on.
198-- @propemits true false
199
200function systray:set_screen(s)
201 display_on_screen = get_args(self, s)
202 if instance then
203 instance:emit_signal("widget::layout_changed")
…lines 204–253 unchanged (50 lines)