Gtk_Styled
[ class tree: Gtk_Styled ] [ index: Gtk_Styled ] [ all elements ]

Class: Gtk_Styled_HAdjustment

Source Location: /Gtk_Styled-1.0.0/HAdjustment.php

Class Overview

Gtk_Styled_Adjustment
   |
   --Gtk_Styled_HAdjustment

A styleable adjustment pseudo widget.


Author(s):

Version:

  • @VER@

Copyright:

  • Copyright © 2005 Scott Mattocks

Methods


Inherited Variables

Inherited Methods

Class: Gtk_Styled_Adjustment

Gtk_Styled_Adjustment::Gtk_Styled_Adjustment()
Constructor.
Gtk_Styled_Adjustment::changed()
Notify the system that a change has been made.
Gtk_Styled_Adjustment::checkMouseBounds()
Check to see that the mouse is within the boundries of the bar.
Gtk_Styled_Adjustment::clamp_page()
Prevent the bound of the track from being exceeded by the bar.
Gtk_Styled_Adjustment::getLower()
Get the adjustments lower limit.
Gtk_Styled_Adjustment::getPageIncrement()
Get the adjustments page increment.
Gtk_Styled_Adjustment::getPageSize()
Get the adjustments page size.
Gtk_Styled_Adjustment::getStepIncrement()
Get the adjustments step increment.
Gtk_Styled_Adjustment::getUpper()
Get the adjustments upper limit.
Gtk_Styled_Adjustment::getValue()
Get the adjustments value.
Gtk_Styled_Adjustment::getWidget()
Get the final product that the user can use.
Gtk_Styled_Adjustment::setBarContents()
Set the contents of the bar to the given widget.
Gtk_Styled_Adjustment::setBarMask()
Set the pix mask for the bar.
Gtk_Styled_Adjustment::setLower()
Set the lower limit of the adjustment.
Gtk_Styled_Adjustment::setPageIncrement()
Set the size of one page movement.
Gtk_Styled_Adjustment::setPageSize()
Set the size of one page.
Gtk_Styled_Adjustment::setStepIncrement()
Set the size of one step.
Gtk_Styled_Adjustment::setStyle()
Set the style for a portion of the adjustment.
Gtk_Styled_Adjustment::setUpper()
Set the upper limit of the adjustment.
Gtk_Styled_Adjustment::setValue()
Set the current adjustment value.
Gtk_Styled_Adjustment::set_value()
Alias of setValue. Added for API consistency.
Gtk_Styled_Adjustment::value_changed()
Notify the system that a value has changed.

Class Details

[line 38]
A styleable adjustment pseudo widget.

The interface for this should mimic a GtkAdjustment.

  • Author: Scott Mattocks <scottmattocks@php.net>
  • Version: @VER@
  • Copyright: Copyright &copy; 2005 Scott Mattocks


[ Top ]


Method Detail

checkMouseBounds   [line 152]

boolean checkMouseBounds( none 0)

Check to see that the mouse is within the boundries of the bar.

Check the current mouse position to see if it is within the bounds of the adjustment bar. It is only necessary to check if the mouse is with in one direction of the bar's alloted space. For example, we only care if the mouse is within the y-range of a vertical adjustment.

  • Abstract:
  • Access: public

Overrides Gtk_Styled_Adjustment::checkMouseBounds() (Check to see that the mouse is within the boundries of the bar.)

Parameters:

none   0   — 

[ Top ]

getValueFromPosition   [line 111]

double getValueFromPosition( double $changeInPosition)

Get the adjustment value based on a new bar position.

Sometimes it is necessary to first set the position of the bar and then the value of the adjustment. This method calculates the value based on the current bar position and a change in the bar's position. This method is mostly used for dragging the bar within the track while scrolling.

  • Access: public

Parameters:

double   $changeInPosition   —  The amount the position should change

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:48:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.