GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PADRE::WX::DISPLAY (3)

.ds Aq ’

NAME

Padre::Wx::Display - Utility functions for physical display geometry

CONTENTS

DESCRIPTION

This module provides a collection of utility functions relating to the physical display geometry of the host Padre is running on.

These functions help choose the most visually elegant default sizes and positions for Padre windows, and allow Padre to adapt when the screen geometry of the host changes (which can be fairly common in the case of powerful multi-screen developer computers).

FUNCTIONS

    perfect



  my $boolean = Padre::Wx::Display->perfect(
      Padre::Current->main
  );



The default Wx implementation of IsShownOnScreen is a bit weird, and while it may be technically correct as far as Wx is concerned it does not necesarily represent what a typical human expects, which is that the application is on an active plugged in monitor and that it is entirely on the monitor.

The perfect method takes a Wx::TopLevelWindow object (which incorporates either a Wx::Dialog or a Wx::Frame) and determines if the window meets the warm and fuzzy human criteria for a usable location.

Returns true if so, or false otherwise.

    primary

Locates and returns the primary display as a Wx::Display object.

    primary_default

Generate a Wx::Rect (primarily for the Padre::Wx::Main window) which is a landscape-orientation golden-ratio rectangle on the primary display with a 10% margin.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PADRE::WX::DISPLAY (3) 2013-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.