![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | hyperlink_pressed (void *w_, void *button_, void *user_data) |
void | draw_hyperlink (void *w_, void *user_data) |
Widget_t * | create_hyperlink (Widget_t *w, char *label, int x, int y, int width, int height) |
void | radio_box_set_active (Widget_t *w) |
Widget_t * | open_message_dialog (Widget_t *w, int style, const char *title, const char *message, const char *choices) |
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been INFO_BOX - a message dialog display a info text WARNING_BOX - a message dialog display a warning ERROR_BOX - a message dialog display a error message QUESTION_BOX - a no/yes dialog message SELECTION_BOX - a dialog to select between multiple options ENTRY_BOX - a dialog to get text input | |
Definition at line 57 of file xmessage-dialog.c.
References Widget_t::app, ASPECT, Func_t::button_press_callback, create_widget(), Xputty::dpy, draw_hyperlink(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, hyperlink_pressed(), Widget_t::label, Func_t::leave_callback, Widget_t::scale, transparent_draw(), and Widget_t::widget.
void draw_hyperlink | ( | void * | w_, |
void * | user_data | ||
) |
Definition at line 40 of file xmessage-dialog.c.
References Widget_t::app, Resize_t::ascale, Widget_t::crb, get_color_state(), Metrics_t::height, Widget_t::label, Xputty::normal_font, os_get_window_metrics(), Widget_t::scale, use_fg_color_scheme(), and Metrics_t::width.
Referenced by create_hyperlink().
void hyperlink_pressed | ( | void * | w_, |
void * | button_, | ||
void * | user_data | ||
) |
Definition at line 23 of file xmessage-dialog.c.
References asprintf(), XEvent::button, ERROR_BOX, Widget_t::label, and open_message_dialog().
Referenced by create_hyperlink().
Widget_t * open_message_dialog | ( | Widget_t * | w, |
int | style, | ||
const char * | title, | ||
const char * | message, | ||
const char * | choices | ||
) |
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been
INFO_BOX - a message dialog display a info text
WARNING_BOX - a message dialog display a warning
ERROR_BOX - a message dialog display a error message
QUESTION_BOX - a no/yes dialog message
SELECTION_BOX - a dialog to select between multiple options
ENTRY_BOX - a dialog to get text input
Definition at line 386 of file xmessage-dialog.c.
References add_button(), Widget_t::app, CENTER, MessageDialog::choices, create_window(), ENTRY_BOX, ERROR_BOX, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, MessageDialog::height, Widget_t::image, INFO_BOX, IS_WINDOW, Widget_t::label, MessageDialog::lin, Func_t::mem_free_callback, MessageDialog::message, MessageDialog::message_type, os_get_root_window(), Widget_t::parent, Widget_t::parent_struct, QUESTION_BOX, MessageDialog::response, Widget_t::scale, MessageDialog::sel, SELECTION_BOX, Func_t::value_changed_callback, WARNING_BOX, widget_get_png(), widget_set_icon_from_surface(), widget_set_title(), widget_show_all(), and MessageDialog::width.
Referenced by hyperlink_pressed().
void radio_box_set_active | ( | Widget_t * | w | ) |
Definition at line 235 of file xmessage-dialog.c.
References Widget_t::adj, adj_set_value(), Widget_t::adj_y, Widget_t::childlist, Childlist_t::childs, Childlist_t::elem, Widget_t::flags, IS_RADIO, Widget_t::parent, Widget_t::parent_struct, and MessageDialog::response.