Documentation ¶
Index ¶
- func MustPressedButton(label string, imageFileName string, pressed func(), speed time.Duration) *gtk.Button
- func ToolImageFileName(index int) string
- func ToolName(index int) string
- func TurnAllHeatersOff(client *octoprintApis.Client)
- type AmountToExtrudeStepButton
- type AmountToMoveStepButton
- type CommandButton
- type ControlButton
- type CoolDownButton
- type FanButton
- type FilamentExtrudeButton
- type FilamentLoadButton
- type FlowRateStepButton
- type HomeAllButton
- type HomeButton
- type IncreaseZOffsetButton
- type ManualZCalibrationStepButton
- type MoveButton
- type NotificationsBox
- type NotificationsHook
- type OctoPrintInfoBox
- type OctoScreenInfoBox
- type OctoScreenPluginInfoBox
- type SelectToolStepButton
- type Step
- type StepButton
- type SystemCommandButton
- type SystemInfoBox
- type SystemInformationInfoBox
- type TemperatureAmountStepButton
- type TemperatureIncreaseButton
- type TemperaturePresetButton
- type TemperatureStatusBox
- type ToolButton
- type ToolPrintingButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPressedButton ¶
func ToolImageFileName ¶
func TurnAllHeatersOff ¶
func TurnAllHeatersOff( client *octoprintApis.Client, )
Types ¶
type AmountToExtrudeStepButton ¶
type AmountToExtrudeStepButton struct {
*StepButton
}
func CreateAmountToExtrudeStepButton ¶
func CreateAmountToExtrudeStepButton() *AmountToExtrudeStepButton
func (*AmountToExtrudeStepButton) Value ¶
func (this *AmountToExtrudeStepButton) Value() int
type AmountToMoveStepButton ¶
type AmountToMoveStepButton struct {
*StepButton
}
func CreateAmountToMoveStepButton ¶
func CreateAmountToMoveStepButton() *AmountToMoveStepButton
func (*AmountToMoveStepButton) Value ¶
func (this *AmountToMoveStepButton) Value() float64
type CommandButton ¶
func CreateCommandButton ¶
func CreateCommandButton( client *octoprintApis.Client, parentWindow *gtk.Window, commandDefinition *dataModels.CommandDefinition, iconName string, ) *CommandButton
type ControlButton ¶
func CreateControlButton ¶
func CreateControlButton( client *octoprintApis.Client, parentWindow *gtk.Window, controlDefinition *dataModels.ControlDefinition, iconName string, ) *ControlButton
type CoolDownButton ¶
func CreateCoolDownButton ¶
func CreateCoolDownButton( client *octoprintApis.Client, callback func(), ) *CoolDownButton
type FanButton ¶
func CreateFanButton ¶
func CreateFanButton( client *octoprintApis.Client, amount int, ) *FanButton
type FilamentExtrudeButton ¶
func CreateFilamentExtrudeButton ¶
func CreateFilamentExtrudeButton( parentWindow *gtk.Window, client *octoprintApis.Client, amountToExtrudeStepButton *AmountToExtrudeStepButton, flowRateStepButton *FlowRateStepButton, selectExtruderStepButton *SelectToolStepButton, isForward bool, ) *FilamentExtrudeButton
type FilamentLoadButton ¶
func CreateFilamentLoadButton ¶
func CreateFilamentLoadButton( parentWindow *gtk.Window, client *octoprintApis.Client, flowRateStepButton *FlowRateStepButton, selectExtruderStepButton *SelectToolStepButton, isForward bool, length int, ) *FilamentLoadButton
type FlowRateStepButton ¶
type FlowRateStepButton struct { *StepButton // contains filtered or unexported fields }
func CreateFlowRateStepButton ¶
func CreateFlowRateStepButton( client *octoprintApis.Client, ) *FlowRateStepButton
func (*FlowRateStepButton) SendChangeFlowRate ¶
func (this *FlowRateStepButton) SendChangeFlowRate() error
func (*FlowRateStepButton) Value ¶
func (this *FlowRateStepButton) Value() int
type HomeAllButton ¶
func CreateHomeAllButton ¶
func CreateHomeAllButton( client *octoprintApis.Client, ) *HomeAllButton
type HomeButton ¶
func CreateHomeButton ¶
func CreateHomeButton( client *octoprintApis.Client, buttonLabel string, imageFileName string, axes ...dataModels.Axis, ) *HomeButton
type IncreaseZOffsetButton ¶
func CreateIncreaseZOffsetButton ¶
func CreateIncreaseZOffsetButton( isIncrease bool, ) *IncreaseZOffsetButton
type ManualZCalibrationStepButton ¶
type ManualZCalibrationStepButton struct {
*StepButton
}
func CreateManualZCalibrationStepButton ¶
func CreateManualZCalibrationStepButton() *ManualZCalibrationStepButton
func (*ManualZCalibrationStepButton) IsCalibrating ¶
func (this *ManualZCalibrationStepButton) IsCalibrating() bool
func (*ManualZCalibrationStepButton) Value ¶
func (this *ManualZCalibrationStepButton) Value() bool
The value returned represents if it is running (true) or if idle (false).
type MoveButton ¶
func CreateMoveButton ¶
func CreateMoveButton( client *octoprintApis.Client, amountToMoveStepButton *AmountToMoveStepButton, label string, image string, axis dataModels.Axis, direction float64, ) *MoveButton
type NotificationsBox ¶
func NewNotificationsBox ¶
func NewNotificationsBox() *NotificationsBox
type NotificationsHook ¶
type NotificationsHook struct {
// contains filtered or unexported fields
}
func NewNotificationsHook ¶
func NewNotificationsHook(notificationsBox *NotificationsBox) *NotificationsHook
func (NotificationsHook) Levels ¶
func (this NotificationsHook) Levels() []logrus.Level
type OctoPrintInfoBox ¶
type OctoPrintInfoBox struct {
*SystemInfoBox
}
func CreateOctoPrintInfoBox ¶
func CreateOctoPrintInfoBox( client *octoprintApis.Client, logoWidth int, ) *OctoPrintInfoBox
type OctoScreenInfoBox ¶
type OctoScreenInfoBox struct {
*SystemInfoBox
}
func CreateOctoScreenInfoBox ¶
func CreateOctoScreenInfoBox( client *octoprintApis.Client, octoScreenVersion string, ) *OctoScreenInfoBox
type OctoScreenPluginInfoBox ¶
type OctoScreenPluginInfoBox struct {
*SystemInfoBox
}
func CreateOctoScreenPluginInfoBox ¶
func CreateOctoScreenPluginInfoBox( client *octoprintApis.Client, uiState string, octoPrintPluginIsInstalled bool, ) *OctoScreenPluginInfoBox
type SelectToolStepButton ¶
type SelectToolStepButton struct {
*StepButton
}
func CreateSelectExtruderStepButton ¶
func CreateSelectExtruderStepButton( client *octoprintApis.Client, includeBed bool, ) *SelectToolStepButton
func CreateSelectHotendStepButton ¶
func CreateSelectHotendStepButton( client *octoprintApis.Client, includeBed bool, ) *SelectToolStepButton
func (*SelectToolStepButton) Index ¶
func (this *SelectToolStepButton) Index() int
func (*SelectToolStepButton) Value ¶
func (this *SelectToolStepButton) Value() string
type StepButton ¶
func CreateStepButton ¶
func CreateStepButton(colorVariation int, steps ...Step) (*StepButton, error)
func (*StepButton) AddStep ¶
func (this *StepButton) AddStep(step Step)
func (*StepButton) Value ¶
func (this *StepButton) Value() interface{}
type SystemCommandButton ¶
func CreateSystemCommandButton ¶
func CreateSystemCommandButton( client *octoprintApis.Client, parentWindow *gtk.Window, name string, action string, style string, ) *SystemCommandButton
type SystemInfoBox ¶
func CreateSystemInfoBox ¶
func CreateSystemInfoBox( client *octoprintApis.Client, image *gtk.Image, str1 string, str2 string, str3 string, ) *SystemInfoBox
type SystemInformationInfoBox ¶
func CreateSystemInformationInfoBox ¶
func CreateSystemInformationInfoBox( parentWindow *gtk.Window, uiScaleFactor int, ) *SystemInformationInfoBox
func (*SystemInformationInfoBox) Refresh ¶
func (this *SystemInformationInfoBox) Refresh()
type TemperatureAmountStepButton ¶
type TemperatureAmountStepButton struct {
*StepButton
}
func CreateTemperatureAmountStepButton ¶
func CreateTemperatureAmountStepButton() *TemperatureAmountStepButton
func (*TemperatureAmountStepButton) Value ¶
func (this *TemperatureAmountStepButton) Value() float64
type TemperatureIncreaseButton ¶
func CreateTemperatureIncreaseButton ¶
func CreateTemperatureIncreaseButton( client *octoprintApis.Client, temperatureAmountStepButton *TemperatureAmountStepButton, selectHotendStepButton *SelectToolStepButton, isIncrease bool, ) *TemperatureIncreaseButton
type TemperaturePresetButton ¶
func CreateTemperaturePresetButton ¶
func CreateTemperaturePresetButton( client *octoprintApis.Client, selectHotendStepButton *SelectToolStepButton, imageFileName string, temperaturePreset *dataModels.TemperaturePreset, callback func(), ) *TemperaturePresetButton
type TemperatureStatusBox ¶
type TemperatureStatusBox struct { *gtk.Box interfaces.ITemperatureDataDisplay // contains filtered or unexported fields }
func CreateTemperatureStatusBox ¶
func CreateTemperatureStatusBox( client *octoprintApis.Client, includeHotends bool, includeBed bool, ) *TemperatureStatusBox
func (*TemperatureStatusBox) UpdateTemperatureData ¶
func (this *TemperatureStatusBox) UpdateTemperatureData(currentTemperatureData map[string]dataModels.TemperatureData)
interfaces.ITemperatureDataDisplay
type ToolButton ¶
func CreateToolButton ¶
func CreateToolButton( index int, printer *octoprintApis.Client, ) *ToolButton
func (*ToolButton) GetProfileTemperature ¶
func (this *ToolButton) GetProfileTemperature() float64
func (*ToolButton) SetTemperatures ¶
func (this *ToolButton) SetTemperatures(temperatureData dataModels.TemperatureData)
func (*ToolButton) UpdateStatus ¶
func (this *ToolButton) UpdateStatus(heating bool)
type ToolPrintingButton ¶
func CreateToolPrintingButton ¶
func CreateToolPrintingButton( index int, ) *ToolPrintingButton
Source Files ¶
- AmountToExtrudeStepButton.go
- AmountToMoveStepButton.go
- CommandButton.go
- ControlButton.go
- CoolDownButton.go
- FanButton.go
- FilamentExtrudeButton.go
- FilamentLoadButton.go
- FlowRateStepButton.go
- HomeAllButton.go
- HomeButton.go
- IncreaseZOffsetButton.go
- ManualZCalibrationStepButton.go
- MoveButton.go
- MustPressedButton.go
- NotificatinsBox.go
- NotificationsHook.go
- OctoPrintInfoBox.go
- OctoScreenInfoBox.go
- OctoScreenPluginInfoBox.go
- SelectToolStepButton.go
- StepButton.go
- SystemCommandButton.go
- SystemInfoBox.go
- SystemInformationInfoBox.go
- TemperatureAmountStepButton.go
- TemperatureIncreaseButton.go
- TemperaturePresetButton.go
- TemperatureStatusBox.go
- ToolButton.go
- ToolPrintingButon.go
Click to show internal directories.
Click to hide internal directories.