Class Index | File Index

Classes


Class gtk.WindowBase


Extends gtk.Widget.

Defined in: jsgtk_merge_for_doc.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
A method to close or remove window
 
A method to disable and hide close button
 
A method to disable and hide all control buttons
 
A method to disable and hide maximize button
 
A method to disable and hide minimize button
 
A method to disable resizeable of the window.
 
A method to enable and display close button
 
A method to enable and display all control buttons
 
A method to enable and display maximize button
 
A method to enable and display minimize button
 
A method to enable resizeable of the window.
 
A method to get or return the current state of window
 
A method to hide minimize button
 
move(left, top)
A method to move or set position of window given left and top values in pixel
 
A method to set the title of the window to be bold
 
setCloseButton(isCloseButtonActive)
A method to set or show close button give a boolean value
 
setPosition(position)
A method to set position of the window
 
setState(state)
A method to set state of the window
 
setTitle(title)
 
A method to show maximize header
 
A method to show minimize header
 
A method to show restore header
Methods borrowed from class gtk.Widget:
activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideLoading, hideTooltip, isHidden, refresh, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showLoading, showTooltip, sizeRequest
Methods borrowed from class gobject.GObject:
connect, disconnect, emit
Class Detail
gtk.WindowBase()
Method Detail
close()
A method to close or remove window

disableCloseButton()
A method to disable and hide close button

disableControl()
A method to disable and hide all control buttons

disableMaximizeButton()
A method to disable and hide maximize button

disableMinimizeButton()
A method to disable and hide minimize button

disableResize()
A method to disable resizeable of the window. It will not allow user to resize the window.

enableCloseButton()
A method to enable and display close button

enableControl()
A method to enable and display all control buttons

enableMaximizeButton()
A method to enable and display maximize button

enableMinimizeButton()
A method to enable and display minimize button

enableResize()
A method to enable resizeable of the window. The window will be resisizeable.

{String} getState()
A method to get or return the current state of window
Returns:
{String} The constant state value of the window
These are the constant values to be returned:
- gtk.WINDOW_RESTORED The flag constant value to set as restored state
- gtk.WINDOW_MAXIMIZED The flag constant value to set as maximized state
- gtk.WINDOW_MINIMIZED The flag constant value to set as minimixed state

hideMinimizeButton()
A method to hide minimize button

move(left, top)
A method to move or set position of window given left and top values in pixel
Parameters:
{Integer} left
The left value in pixel
{Integer} top
The top value in pixel

setBoldTitle(bold)
A method to set the title of the window to be bold
Parameters:
{Boolean} bold
The boolean value true is bold, fasle it not bold

setCloseButton(isCloseButtonActive)
A method to set or show close button give a boolean value
Parameters:
{Boolean} isCloseButtonActive
The boolean value true is to show, or false to hide

setPosition(position)
A method to set position of the window
Parameters:
{String} position
The constant value to be passed.
This is the constant value to be passed:
- gtk.JUSTIFY_CENTER The flag constant value to set as center screen

setState(state)
A method to set state of the window
Parameters:
{String} state
The constant value to be passed.
These are the constant values to be passed:
- gtk.WINDOW_RESTORED The flag constant value to set as restored state
- gtk.WINDOW_MAXIMIZED The flag constant value to set as maximized state
- gtk.WINDOW_MINIMIZED The flag constant value to set as minimixed state

setTitle(title)
Parameters:
title

showMaximizedHeader()
A method to show maximize header

showMinimizedHeader()
A method to show minimize header

showRestoredHeader()
A method to show restore header

Documentation generated by JsDoc Toolkit 2.1.0 on Tue Jul 06 2010 11:13:57 GMT+0700 (ICT)