Κουμπιά
Η gtkmm παρέχει τέσσερις βασικούς τύπους κουμπιών:
- Push buttons
-
Gtk::Button. Τυπικά κουμπιά, συνήθως σημειωμένα με μια ετικέτα ή εικόνα. Πιέζοντας ένα προκαλεί μια ενέργεια. Δείτε την ενότητα Κουμπί.
- Κουμπιά εναλλαγής
-
Gtk::ToggleButton. Αντίθετα με ένα κανονικό κουμπί, που αναπηδά πίσω, ένα ToggleButton παραμένει κάτω μέχρι να το ξαναπήσετε. Μπορεί να είναι χρήσιμο ως ένας διακόπτης ναι/όχι. Δείτε την ενότητα ToggleButton.
- Check buttons
-
Gtk::CheckButton. These act like ToggleButtons, but show their state in small squares, with their label at the side. They should be used in most situations which require an on/off setting. See the CheckButton section.
- Ραδιοπλήκτρα
-
Named after the station selectors on old car radios, these buttons are used in groups for options which are mutually exclusive. Pressing one causes all the others in its group to turn off. They are similar to ToggleButtons or CheckButtons (a small widget with a label at the side), but usually look different. There is no separate radio button class. Check buttons and toggle buttons can act as radio buttons. See the Radio Button section.
Note that, due to GTK's theming system, the appearance of these widgets will vary. In the case of check buttons and radio buttons, they may vary considerably.
- 6.1. Κουμπί
- 6.2. Κουμπί εναλλαγής
- 6.3. Κουμπί ελέγχου
- 6.4. Radio Button