Re: full screen graphics display



Hi Robert,

just call pWindow->fullscreen() (Gtk::Window::fullscreen)

the window will try to become fullscreen, so the decoration get removed, and the window will expand, but make sure to track the state of your window may the windowmanager don't put you to fullscreen mode, use :

   on_window_state_event(GdkEventWindowState* stateevent){

          ...
      switch(stateevent->changed_mask)
         ...
           case Gdk::WINDOW_STATE_FULLSCREEN:

          ...
   }
to check if your window is in fullscreen mode, beside that you don't need to care about other things, everything should work as intended

Regards Alex


Robert Caryl wrote:
Greetings everyone,

My boss wants me to port an application that currently runs on windows
in a full screen mode to linux.  I have done a fair amount of gtkmm
programming, but have not attempted anything full screen.

Basically, I will need to display an image and then get information on
the mouse coordinates when the user presses the left button (or in
reality touches the screen).

I would appreciate someone pointing me towards the documentation that
deals with this.

Thanks!


--
Alexander Gehlert - Intern
reply to : alexander gehlert raritan com

Raritan Zwickau
Software Development
Scheringerstrasse 1
08056 Zwickau
Germany






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