MCPcopy Create free account
hub / github.com/arteme/pod-ui / ProgramGridExt

Interface ProgramGridExt

gui/src/widgets/program_grid.rs:491–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491pub trait ProgramGridExt {
492 fn size_group(&self) -> gtk::SizeGroup;
493 fn join_radio_group(&self, group: Option<&impl IsA<gtk::RadioButton>>);
494
495 fn set_program_modified(&self, program_idx: usize, modified: bool);
496 fn program_modified(&self, program_idx: usize) -> Option<bool>;
497
498 fn set_program_name(&self, program_idx: usize, name: &str);
499 fn program_name(&self, program_idx: usize) -> Option<glib::GString>;
500
501 fn set_open(&self, is_open: bool);
502 fn open(&self) -> bool;
503
504 fn num_pages(&self) -> usize;
505 fn num_buttons(&self) -> usize;
506
507 fn connect_action<F>(&self, callback: F) -> glib::SignalHandlerId
508 where F: Fn(ProgramGridAction) + Sync + Send + 'static;
509}
510
511impl ProgramGridExt for ProgramGrid {
512 fn size_group(&self) -> gtk::SizeGroup {

Callers

nothing calls this directly

Implementers 1

program_grid.rsgui/src/widgets/program_grid.rs

Calls

no outgoing calls

Tested by

no test coverage detected