fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

fl_ask.cxx File Reference

Utility functions for common dialogs. More...

#include <stdio.h>
#include <stdarg.h>
#include "flstring.h"
#include <FL/Fl.H>
#include <FL/fl_ask.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Return_Button.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Secret_Input.H>
#include <FL/x.H>
#include <FL/fl_draw.H>
Include dependency graph for fl_ask.cxx:

Go to the source code of this file.

Functions

static void button_cb (Fl_Widget *, long val)
 
static Fl_Windowmakeform ()
 
static void resizeform ()
 
static int innards (const char *fmt, va_list ap, const char *b0, const char *b1, const char *b2)
 
void fl_beep (int type)
 
void fl_message (const char *fmt,...)
 
void fl_alert (const char *fmt,...)
 
int fl_ask (const char *fmt,...)
 
int fl_choice (const char *fmt, const char *b0, const char *b1, const char *b2,...)
 
Fl_Widgetfl_message_icon ()
 
static const char * input_innards (const char *fmt, va_list ap, const char *defstr, uchar type)
 
const char * fl_input (const char *fmt, const char *defstr,...)
 
const char * fl_password (const char *fmt, const char *defstr,...)
 
void fl_message_hotspot (int enable)
 
int fl_message_hotspot (void)
 
void fl_message_title (const char *title)
 
void fl_message_title_default (const char *title)
 

Variables

static Fl_Windowmessage_form
 
static Fl_Boxmessage
 
static Fl_Boxicon
 
static Fl_Buttonbutton [3]
 
static Fl_Inputinput
 
static int ret_val
 
static const char * iconlabel = "?"
 
static const char * message_title_default
 
Fl_Font fl_message_font_ = FL_HELVETICA
 
Fl_Fontsize fl_message_size_ = -1
 
static int enableHotspot = 1
 
static char avoidRecursion = 0
 
const char * fl_no = "No"
 string pointer used in common dialogs, you can change it to another language More...
 
const char * fl_yes = "Yes"
 string pointer used in common dialogs, you can change it to another language More...
 
const char * fl_ok = "OK"
 string pointer used in common dialogs, you can change it to another language More...
 
const char * fl_cancel = "Cancel"
 string pointer used in common dialogs, you can change it to another language More...
 
const char * fl_close = "Close"
 string pointer used in common dialogs, you can change it to another language More...
 

Detailed Description

Utility functions for common dialogs.

Definition in file fl_ask.cxx.

Function Documentation

◆ button_cb()

static void button_cb ( Fl_Widget ,
long  val 
)
static

Definition at line 69 of file fl_ask.cxx.

References Fl_Window::hide(), message_form, and ret_val.

Referenced by makeform().

◆ innards()

◆ makeform()

◆ resizeform()

Variable Documentation

◆ avoidRecursion

char avoidRecursion = 0
static

Definition at line 61 of file fl_ask.cxx.

Referenced by fl_alert(), fl_ask(), fl_choice(), fl_input(), fl_message(), fl_password(), and innards().

◆ button

Fl_Button* button[3]
static

Definition at line 49 of file fl_ask.cxx.

Referenced by innards(), makeform(), mouse_event(), and resizeform().

◆ enableHotspot

int enableHotspot = 1
static

Definition at line 56 of file fl_ask.cxx.

Referenced by fl_message_hotspot(), and innards().

◆ fl_message_font_

Fl_Font fl_message_font_ = FL_HELVETICA

Definition at line 54 of file fl_ask.cxx.

Referenced by fl_message_font(), and innards().

◆ fl_message_size_

Fl_Fontsize fl_message_size_ = -1

Definition at line 55 of file fl_ask.cxx.

Referenced by fl_message_font(), and innards().

◆ icon

◆ iconlabel

const char* iconlabel = "?"
static

Definition at line 52 of file fl_ask.cxx.

Referenced by fl_alert(), fl_message(), and innards().

◆ input

◆ message

◆ message_form

Fl_Window* message_form
static

Definition at line 46 of file fl_ask.cxx.

Referenced by button_cb(), fl_message_title(), innards(), input_innards(), makeform(), and resizeform().

◆ message_title_default

const char* message_title_default
static

Definition at line 53 of file fl_ask.cxx.

Referenced by fl_message_title_default(), and innards().

◆ ret_val

int ret_val
static

Definition at line 51 of file fl_ask.cxx.

Referenced by button_cb(), and innards().