(svn r20222) -Add: Add functions to compute the row in a scrolled widget.

This commit is contained in:
alberth
2010-07-26 13:03:40 +00:00
parent 71aac2192f
commit 6734f083b0
2 changed files with 20 additions and 2 deletions

View File

@@ -305,6 +305,8 @@ public:
this->SetPosition(position - this->GetCapacity() + 1);
}
}
int GetScrolledRowFromWidget(int clickpos, const Window * const w, int widget, int padding = 0, int line_height = -1) const;
};
/**
@@ -528,7 +530,7 @@ public:
bool SetFocusedWidget(byte widget_index);
void HandleButtonClick(byte widget);
int GetRowFromWidget(int clickpos, int widget, int padding, int line_height) const;
int GetRowFromWidget(int clickpos, int widget, int padding, int line_height = -1) const;
void RaiseButtons(bool autoraise = false);
void CDECL SetWidgetsDisabledState(bool disab_stat, int widgets, ...);