![]() | ![]() | ![]() | Cuiterm Reference Manual | ![]() |
---|
#include <history.h> CuiFileMenu; CuiWidget* cui_file_menu_new (void); CuiFileMenu* cui_file_menu_new_for_filename (CuiWindow *window, Background *background, CuiFilename *file, GtkTextMark *begin, GtkTextMark *end); void cui_file_menu_set_filename (CuiFileMenu *file_menu, CuiFilename *filename); CuiFilename* cui_file_menu_get_filename (CuiFileMenu *file_menu); void cui_file_menu_popup (CuiFileMenu *cui_file_menu, GtkWidget *parent_widget, GdkEventButton *event);
CuiWidget* cui_file_menu_new (void);
Creates a new use menu.
Returns : | a new CuiUserMenu |
CuiFileMenu* cui_file_menu_new_for_filename (CuiWindow *window, Background *background, CuiFilename *file, GtkTextMark *begin, GtkTextMark *end);
Creates a new CuiFileMenu for the given begin/end points.
window : | this CuiWindow will contain the new CuiFileMenu |
background : | the |
file : | the CuiFilename for the menu |
begin : | the begin mark for the new widgets active area |
end : | the end mark for the new widgets active area |
Returns : | a new CuiFileMenu |
void cui_file_menu_set_filename (CuiFileMenu *file_menu, CuiFilename *filename);
Sets the file for this CuiFileMenu.
file_menu : | |
filename : | the CuiFilename |
CuiFilename* cui_file_menu_get_filename (CuiFileMenu *file_menu);
Returns the filename belongs to this filemenu.
file_menu : | |
Returns : | the CuiFilename of the menu |
void cui_file_menu_popup (CuiFileMenu *cui_file_menu, GtkWidget *parent_widget, GdkEventButton *event);
Starts up a CuiFileMenu on the given location of the screen. This function is very important since there are a lot of file names on the screen and the file menu is a rather complicated and powerfull user interface element.
cui_file_menu : | a CuiFileMenu to pop-up |
parent_widget : | the parent widget of the menu |
event : | the event that caused this opertaion |
<<< CuiPopupMenu | CuiModeMenu >>> |