Talk:GUIVariable

From The Battle for Wesnoth Wiki
Revision as of 05:36, 5 November 2024 by White haired uncle (talk | contribs) (Created page with "resize_mode lists three values - perhaps they are the only ones actually used? <syntaxhighlight lang="cpp"> enum class resize_mode { scal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

resize_mode lists three values - perhaps they are the only ones actually used?

    enum class resize_mode {
        scale,
        scale_sharp,
        stretch,
        tile,
        tile_center,
        tile_highres,
    };

grow_direction looks like it was just copied from resize_mode. Would that be this?

struct grow_direction_defines
{
    static constexpr const char* const horizontal = "horizontal";
    static constexpr const char* const vertical = "vertical";

    ENUM_AND_ARRAY(horizontal, vertical)
};
using grow_direction = string_enums::enum_base<grow_direction_defines>;

Both of the above speak of acting on an image, which I guess is kind of true but perhaps there's a better word to avoid confusion with [image]. White haired uncle (talk) 05:36, 5 November 2024 (UTC)