gtk.FileChooserButton.FileChooserButton Class Reference

Inheritance diagram for gtk.FileChooserButton.FileChooserButton:

gtk.HBox.HBox gtk.Box.Box gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkFileChooserButtongetFileChooserButtonStruct ()
 this (GtkFileChooserButton *gtkFileChooserButton)
 Sets our main struct and passes it to the parent class.
FileChooser getFileChooser ()
 this (char[] title, GtkFileChooserAction action)
 Creates a new file-selecting button widget.
 this (char[] title, GtkFileChooserAction action, char[] backend)
 Creates a new file-selecting button widget using backend.
 this (Widget dialog)
 Creates a GtkFileChooserButton widget which uses dialog as it's file-picking window.
char[] getTitle ()
 Retrieves the title of the browse dialog used by button.
void setTitle (char[] title)
 Modifies the title of the browse dialog used by button.
int getWidthChars ()
 Retrieves the width in characters of the button widget's entry and/or label.
void setWidthChars (int nChars)
 Sets the width (in characters) that button will use to n_chars.
int getFocusOnClick ()
 Returns whether the button grabs focus when it is clicked with the mouse.
void setFocusOnClick (int focusOnClick)
 Sets whether the button will grab focus when it is clicked with the mouse.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkFileChooserButtongtkFileChooserButton
 the main Gtk struct

Private Attributes

FileChooser fileChooser

Constructor & Destructor Documentation

gtk.FileChooserButton.FileChooserButton.this ( GtkFileChooserButton gtkFileChooserButton  ) 

Sets our main struct and passes it to the parent class.

gtk.FileChooserButton.FileChooserButton.this ( char[]  title,
GtkFileChooserAction  action 
)

Creates a new file-selecting button widget.

title: the title of the browse dialog. action: the open mode for the widget. Returns: a new button widget. Since 2.6

gtk.FileChooserButton.FileChooserButton.this ( char[]  title,
GtkFileChooserAction  action,
char[]  backend 
)

Creates a new file-selecting button widget using backend.

title: the title of the browse dialog. action: the open mode for the widget. backend: the name of the GtkFileSystem backend to use. Returns: a new button widget. Since 2.6

gtk.FileChooserButton.FileChooserButton.this ( Widget  dialog  ) 

Creates a GtkFileChooserButton widget which uses dialog as it's file-picking window.

Note that dialog must be a GtkFileChooserDialog (or subclass) and must not have GTK_DIALOG_DESTROY_WITH_PARENT set. dialog: the GtkFileChooserDialog widget to use. Returns: a new button widget. Since 2.6


Member Function Documentation

FileChooser gtk.FileChooserButton.FileChooserButton.getFileChooser (  ) 

GtkFileChooserButton* gtk.FileChooserButton.FileChooserButton.getFileChooserButtonStruct (  ) 

int gtk.FileChooserButton.FileChooserButton.getFocusOnClick (  ) 

Returns whether the button grabs focus when it is clicked with the mouse.

See gtk_file_chooser_button_set_focus_on_click(). button: a GtkFileChooserButton Returns: TRUE if the button grabs focus when it is clicked with the mouse. Since 2.10

void* gtk.FileChooserButton.FileChooserButton.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.HBox.HBox.

char [] gtk.FileChooserButton.FileChooserButton.getTitle (  ) 

Retrieves the title of the browse dialog used by button.

The returned value should not be modified or freed. button: the button widget to examine. Returns: a pointer to the browse dialog's title. Since 2.6

int gtk.FileChooserButton.FileChooserButton.getWidthChars (  ) 

Retrieves the width in characters of the button widget's entry and/or label.

button: the button widget to examine. Returns: an integer width (in characters) that the button will use to size itself. Since 2.6

void gtk.FileChooserButton.FileChooserButton.setFocusOnClick ( int  focusOnClick  ) 

Sets whether the button will grab focus when it is clicked with the mouse.

Making mouse clicks not grab focus is useful in places like toolbars where you don't want the keyboard focus removed from the main area of the application. button: a GtkFileChooserButton focus_on_click: whether the button grabs focus when clicked with the mouse Since 2.10 Property Details The "dialog" property "dialog" GtkFileChooserDialog : Write / Construct Only Instance of the GtkFileChooserDialog associated with the button. Since 2.6

void gtk.FileChooserButton.FileChooserButton.setTitle ( char[]  title  ) 

Modifies the title of the browse dialog used by button.

button: the button widget to modify. title: the new browse dialog title. Since 2.6

void gtk.FileChooserButton.FileChooserButton.setWidthChars ( int  nChars  ) 

Sets the width (in characters) that button will use to n_chars.

button: the button widget to examine. n_chars: the new width, in characters. Since 2.6


Member Data Documentation

FileChooser gtk.FileChooserButton.FileChooserButton.fileChooser [private]

GtkFileChooserButton* gtk.FileChooserButton.FileChooserButton.gtkFileChooserButton [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo