Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

prima::fontdialog(3) [debian man page]

Prima::FontDialog(3)					User Contributed Perl Documentation				      Prima::FontDialog(3)

NAME
Prima::FontDialog - standard font dialog SYNOPSIS
use Prima::FontDialog; my $f = Prima::FontDialog-> create; return unless $f-> execute == mb::OK; $f = $f-> logFont; print "$_:$f->{$_} " for sort keys %$f; DESCRIPTION
The dialog provides selection of font by name, style, size, and encoding. The font selected is returned by logFont property. API
Properties fixedOnly BOOLEAN Selects whether only the fonts of fixed pitch ( 1 ) or all fonts ( 0 ) are displayed in the selection list. Default value: 0 logFont FONT Provides access to the interactive font selection as a hash reference. FONT format is fully compatible with "Prima::Drawable::font". showHelp BOOLEAN Create-only property. Specifies if the help button is displayed in the dialog. Default value: 0 Events BeginDragFont Called when the user starts dragging a font from the font sample widget by left mouse button. Default action reflects the status in the dialog title EndDragFont $WIDGET Called when the user releases the mouse drag over a Prima widget. Default action applies currently selected font to $WIDGET. AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima, Prima::Window, Prima::Drawable. perl v5.14.2 2009-02-24 Prima::FontDialog(3)

Check Out this Related Man Page

Prima::noX11(3) 					User Contributed Perl Documentation					   Prima::noX11(3)

NAME
Prima::noX11 - Use Prima without X11 SYNOPSIS
use Prima::noX11; use Prima; my $error = Prima::XOpenDisplay(); if ( defined $error) { print "not connected to display: $error "; } else { print "connected to display "; } DESCRIPTION
Prima will by default connect to X11 server on unix. To use Prima functionality in modules or programs where this default behavior is undesired, please follow the guidelines below. No connection In the beginning of a script or a module that is never intended to connect to X11 display, add this: use Prima::noX11; use Prima; It will be possible to connect to X11 server later on manually. Manual connect to X11 If connection to X11 is optional, use this code after "use Prima::noX11" was invoked: my $error = Prima::XOpenDisplay(); if ( defined $error) { print "not connected to display: $error "; } else { print "connected to display "; } Checking if GUI functionality is accesiible. Without X11 connection, no GUI functionality such as screen grabbing will be accessible. In addition to that functionality, windowing functions will only become accessible after Prima::Application creates a single instance $::application. Therefore, if $::application is defined, then all GUI functions can be safely used. If, on the contrary, it is not defined, initiate it as this: unless ( $::application) { my $error = Prima::XOpenDisplay(); die $error if defined $error; require Prima::Application; import Prima::Application; } AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima::X11 perl v5.14.2 2009-02-24 Prima::noX11(3)
Man Page

We Also Found This Discussion For You

1. Shell Programming and Scripting

Default fonts with Tcl and Tk

Our SAs just rebuilt all of our SunOS and Linux boxes. All the TCL tools I had developed will come up but the font is the dingbat font set. Unless I explicitly set each button, label, radiobutton, etc. with "-font = $font" (which I defint at the top to "helvetica 9"), I get the funky characters.... (0 Replies)
Discussion started by: scottwevans
0 Replies