get_resolution



For the below program I get the error get_resolution is not a member of Gdk::Screen.
What is the error ?

int main(int argc, char *argv[]) {
        Gtk::Main kit(argc, argv);
        mywindow window;
        Glib::RefPtr<Gdk::Screen> ptr;
        Gdk::Screen *screen;
        double resolution;

        window.set_decorated(true);
        ptr = window.get_screen();
      resolution = ptr->get_resolution();
        window.fullscreen();
        Gtk::Main::run(window);

        return 0;
}


--
We've Got Your Name at Mail.com
Get a FREE E-mail Account Today - Choose From 100+ Domains


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]