Skip to content

Commit

Permalink
Added item_hscroll_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
MKadaner committed Jan 1, 2024
1 parent ae0a055 commit ee10f32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions far/vmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ namespace
return !(Item.Flags & (LIF_HIDDEN | LIF_FILTERED));
}

enum class item_hscroll_policy
{
Unbound,
ClingToEdge,
Bound,
BoundStickToLeft
};

std::pair<int, int> GetItemHPosLimits(const int ItemLength, const int MaxItemWidth, const bool Hanging, const bool StickToZero)
{
assert(ItemLength > 0);
Expand Down

0 comments on commit ee10f32

Please sign in to comment.