差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
fltk:example-app-countdown_timer [2025/05/27 18:20] – [プログラムのソースコード] Update main.cpp, replace 'countdown_digits' with 'digits' freemikanfltk:example-app-countdown_timer [2025/06/12 11:45] (現在) – [スクリーンショット] Remove imagebox freemikan
行 1: 行 1:
-====== サンプルアプリケーション: カウントダウンタイマー ====== +====== : カウントダウンタイマー ====== 
-{{:fltk:fltk_shadow.png?200|FLTK}}+[[fltk:|{{:fltk:fltk_shadow.png?200|}}]]
  
  
 ===== スクリーンショット ===== ===== スクリーンショット =====
- +{{ :fltk:countdown_timer_app.gif |カウントダウンタイマー}}
-{{ :fltk:countdown_timer_app.gif |}}+
 ===== プロジェクトレイアウト ===== ===== プロジェクトレイアウト =====
  
行 82: 行 81:
 void start_button_cb(Fl_Widget *w, void *data) { void start_button_cb(Fl_Widget *w, void *data) {
   if (!Fl::has_timeout(timeout_cb, data)) {   if (!Fl::has_timeout(timeout_cb, data)) {
-    // Start pressed+    // Start button pressed
     Fl::add_timeout(1.0, timeout_cb, data);     Fl::add_timeout(1.0, timeout_cb, data);
     w->label("一時停止");     w->label("一時停止");
   } else {   } else {
-    // Pause pressed+    // Pause button pressed
     Fl::remove_timeout(timeout_cb, data);     Fl::remove_timeout(timeout_cb, data);
     w->label("スタート");     w->label("スタート");
文書の先頭へ