DVUI

ninepatch

Parameters

#
self:*const Options
*const Options
ask:NinepatchAsk
NinepatchAsk

Source

Implementation

#
pub fn ninepatch(self: *const Options, ask: NinepatchAsk) ?*const Ninepatch {
    const np_opt = switch (ask) {
        .fill => self.ninepatch_fill,
        .hover => self.ninepatch_hover orelse self.ninepatch_fill,
        .press => self.ninepatch_press orelse self.ninepatch_fill,
    };
    if (np_opt) |np| return np;

    return self.themeGet().ninepatch(self.styleGet(), ask);
}