mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 19:48:01 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
26
LogViewer/src/StatusBar.bf
Normal file
26
LogViewer/src/StatusBar.bf
Normal file
|
@ -0,0 +1,26 @@
|
|||
using Beefy.widgets;
|
||||
using Beefy.gfx;
|
||||
|
||||
namespace LogViewer
|
||||
{
|
||||
class StatusBar : Widget
|
||||
{
|
||||
public override void Draw(Graphics g)
|
||||
{
|
||||
base.Draw(g);
|
||||
|
||||
g.SetFont(gApp.mFont);
|
||||
|
||||
uint32 bkgColor = 0xFF404040;
|
||||
using (g.PushColor(bkgColor))
|
||||
g.FillRect(0, 0, mWidth, mHeight);
|
||||
|
||||
var lineAndColumn = gApp.mBoard.mDocEdit.mEditWidgetContent.CursorLineAndColumn;
|
||||
g.DrawString(StackStringFormat!("Ln {0}", lineAndColumn.mLine + 1), mWidth - 160, 2);
|
||||
g.DrawString(StackStringFormat!("Col {0}", lineAndColumn.mColumn + 1), mWidth - 80, 2);
|
||||
|
||||
if ((gApp.mBoard.mFilterDirtyCountdown != 0) || (gApp.mBoard.mRefreshing))
|
||||
g.DrawString("Refreshing", 8, 2);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue