Skip to content

Commit

Permalink
fix remaining (fixable) lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Sep 22, 2023
1 parent bd9db0c commit e0e26bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion EventHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (eh *EventHandler) OnMouseReleased(mouseButton MouseButton, callback func()

// Build implements Widget interface
//
// nolint:,gocyclo // will fix later
//nolint:gocyclo // will fix later
func (eh *EventHandler) Build() {
isActive := IsItemActive()

Expand Down
2 changes: 1 addition & 1 deletion MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (w *MasterWindow) afterRender() {

func (w *MasterWindow) beforeDestroy() {
imgui.PlotDestroyContext()
//imgui.ImNodesDestroyContext() // TODO: after adding ImNodes (https://github.com/AllenDang/cimgui-go/issues/137)
// imgui.ImNodesDestroyContext() // TODO: after adding ImNodes (https://github.com/AllenDang/cimgui-go/issues/137)
}

func (w *MasterWindow) render() {
Expand Down
10 changes: 5 additions & 5 deletions Plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (p *PlotCanvasWidget) Build() {
imgui.AxisX1,
p.xTicksValue[0],
p.xTicksValue[1], // <- TODO: why is it so strangely saved?
-1, // TODO
-1, // TODO: implement
p.xTicksLabel,
p.xTicksShowDefault,
)
Expand All @@ -206,7 +206,7 @@ func (p *PlotCanvasWidget) Build() {
imgui.AxisY1,
p.xTicksValue[0],
p.xTicksValue[1], // <- TODO: why is it so strangely saved?
-1, // TODO
-1, // TODO: implement
p.xTicksLabel,
p.xTicksShowDefault,
)
Expand Down Expand Up @@ -292,7 +292,7 @@ func (p *BarPlot) Plot() {
p.shift,
0, // TODO: implement
int32(p.offset),
0, //TODO: implement
0, // TODO: implement
)
}

Expand Down Expand Up @@ -400,7 +400,7 @@ func (p *LinePlot) Plot() {

// TODO: no idea what should it be...
// imgui.PlotDragLineX(Context.FontAtlas.RegisterString(p.title), p.values, p.xScale, p.x0, p.offset)
//imgui.PlotDragLineX(
// imgui.PlotDragLineX(
// Context.FontAtlas.RegisterString(p.title),
// p.values,
// p.xScale,
Expand Down Expand Up @@ -443,7 +443,7 @@ func (p *LineXYPlot) Offset(offset int) *LineXYPlot {
func (p *LineXYPlot) Plot() {
// TODO: migrate this
// imgui.ImPlotSetPlotYAxis(imgui.ImPlotYAxis(p.yAxis))
//imgui.ImPlotLineXY(Context.FontAtlas.RegisterString(p.title), p.xs, p.ys, p.offset)
// imgui.ImPlotLineXY(Context.FontAtlas.RegisterString(p.title), p.xs, p.ys, p.offset)
}

// PieChartPlot represents a pie chart.
Expand Down

0 comments on commit e0e26bb

Please sign in to comment.